Repository navigation
LT-21672: Add Tables to Word Export - #14
Merged
Merged
Conversation
This adds the basic table data, without styling. Styling will be added in a separate change. Tables cannot be added to a paragraph, they need to be added directly to a Body. So, the majority of this change was to not create paragraphs until the end of the process; when we are in AddEntryData(). What previously was a single paragraph for the Entry, could now be multiple paragraphs if there are one or more tables not at the end of the Entry. Change-Id: I4923a87c014c2c4f51159d37d22404fceb64e5f9
aror92
approved these changes
Mar 22, 2024
aror92
left a comment
Contributor
There was a problem hiding this comment.
Looks really nice! Generalizes well to include tables, and the paragraph handling seems flexible too--there may be other situations in future, in addition to table handling, where we'll want to use the forceNewParagraph option in AppendToParagraph.
aror92
approved these changes
Mar 22, 2024
aror92
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @mark-sil)
johnml1135
added a commit
that referenced
this pull request
Aug 29, 2026
Three corrections to this branch, one of them code. jira_projects raised NotFoundError at :179 without importing it. Unlike the eight modules this branch already fixed, that one does not fail at import time, so "all nine modules import" was true and still insufficient: the module broke only when a project was absent. Ablation confirms the import is load-bearing -- removing it again turns a clean NotFoundError response into "NameError: name 'NotFoundError' is not defined". Found with pyflakes, which is now named in PROVENANCE.md as the check that catches this class of bug. Also dropped ValidationError from jira_issues, where stripping the write functions left nothing to raise it. The recorded cause was wrong. Both PROVENANCE.md files blamed a generator here that prunes imports while stripping write functions -- hedged as "appears to be", and never verified. What actually happened is that upstream shipped the bug in cdd1823f6 (2025-12-20) and fixed it in 0fafb48e7, "Fix missing imports in readonly variant scripts" (2026-02-10). Our files are byte-identical to upstream at cdd1823f6, and d1a9bc6 vendored that pre-fix state on 2026-06-11, four months after the fix existed. So this was a stale snapshot, and the note claiming "a re-sync will reintroduce it" had it backwards: a re-sync would have fixed it. Upstream issue #14 was filed against the stale copy and is closed as already-fixed. What does still hold upstream is the relative import in the four bitbucket modules, which is moot here now that they are gone. Two local modifications were unlisted, in a section that opens by asking for them to be listed. _common.py turns TLS verification off in three places where upstream leaves it on -- deliberate, because jira.sil.org's certificate chain does not validate here, so the reason is now recorded rather than left as a silent diff. And the write variant claimed "no script changes" while this branch strips Confluence and Bitbucket plumbing out of its _common.py and __init__.py. Verified: pyflakes reports nothing at all across both variants, all sixteen modules import, and jira_get_project_versions was called against live Jira for both a real project and an absent one.
johnml1135
added a commit
that referenced
this pull request
Sep 10, 2026
The jira_projects fix this commit used to carry is now in main: #1100 landed the same NotFoundError import, so nothing about that module changes here any more. What remains is one unused import and the provenance record. Drop ValidationError from the read-only jira_issues. Stripping the write functions left nothing that raises it. The recorded cause was wrong. Both PROVENANCE.md files blamed a local generator that prunes imports while stripping write functions, hedged as "appears to be" and never verified. Upstream shipped the bug in cdd1823f6 (2025-12-20) and fixed it in 0fafb48e7 (2026-02-10); d1a9bc6 vendored the pre-fix state on 2026-06-11, four months after the fix existed. Our files were byte-identical to upstream at cdd1823f6, so this was a stale snapshot and the note claiming "a re-sync will reintroduce it" had it backwards: a re-sync would have fixed it. Upstream issue #14 is closed as already-fixed. Two local modifications went unlisted, in a section that opens by asking for them. _common.py turns TLS verification off in three places where upstream leaves it on, deliberate because jira.sil.org's certificate chain does not validate here. And the write variant claimed "no script changes" while this branch strips Confluence and Bitbucket plumbing out of its _common.py and __init__.py. Verified: pyflakes reports nothing across both variants and all nineteen modules import. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012GyNexW3GcQVGDMLHivr3h
johnml1135
added a commit
that referenced
this pull request
Sep 14, 2026
) * Fix eight unusable modules in atlassian-readonly-skills confluence_comments, confluence_labels, confluence_pages, jira_agile, jira_links, jira_projects, jira_workflow and jira_worklog all raised NameError on import: Optional or AtlassianCredentials was referenced by a surviving function signature but missing from the import lines. Eight of the twelve read-only modules were therefore unreachable, and callers had to fall back to the write skill for reads. The read-only variant looks generated from the write variant by stripping write functions, with the stripper also pruning those two names. The fix restores them and nothing else. It is an upstream bug and a re-sync will reintroduce it until reported. Verified: all twelve modules in both skills now import, and jira_get_transitions returns live data through the read-only skill. Both skills gain a PROVENANCE.md recording the upstream repository, the MIT declaration, the local modifications, and the Data Center behaviours that upstream's Cloud-oriented docstrings get wrong. Upstream declares MIT in its README but ships no LICENSE file and no copyright line, so the frontmatter reference to LICENSE dangles there as well as here; it is left unchanged to keep this copy diffable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Replace the duplicated utility catalogue with a function index atlassian-readonly-skills/SKILL.md restated all 48 function signatures that REFERENCE.md already documents in the same folder, 237 lines of it, copied from the write variant. It now carries a module-to-function table naming every function the variant has, and points at REFERENCE.md for signatures. 560 lines to 265. The delegation is narrower than it first looked. Only Response Data Structures, Error Handling and Dependencies are byte-identical between the two variants and safe to document once; Configuration, Core Workflow and Philosophy differ, because the write variant carries write examples. Those first two are kept here verbatim rather than delegated, and the file says which is which. Verified: every one of the 48 functions named here is documented in REFERENCE.md, and the list is generated from the scripts themselves rather than from the prose it replaces. Refs LT-22723 * Correct the provenance note the restructure invalidated PROVENANCE.md said this skill had deliberately not been compressed. It has been, in the commit before this one, so the note now records what changed and warns that a re-sync must re-apply it alongside the import fix and the SIL section. The read-only note also cites the upstream issue for the import bug now that one exists: langpingxue/atlassian-skills#14. Refs LT-22723 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Remove Confluence and Bitbucket from both Atlassian skills FieldWorks uses Jira and nothing else. Nothing in the repository referenced a Confluence or Bitbucket helper, yet both skills carried full support for them: eight script modules each, their documentation, their configuration blocks, and their plumbing in _common.py. Removed across both variants: the confluence_* and bitbucket_* modules, their SKILL.md and REFERENCE.md sections, the CQL query reference, the partial-service configuration guidance, and in _common.py the dataclass fields, is_*_available checks, get_*_client factories and the service branches in AtlassianConfig.from_credentials. Streamlined what remained rather than leaving holes. Configuration is now two short modes, SIL Data Center first, with Jira Cloud kept only for completeness. Core Workflow, the agent-mode example and the credentials reference were rewritten around Jira instead of having their other two thirds cut out. Both frontmatter descriptions claimed Confluence and Bitbucket support, so they are rewritten too. A description that overstates what a skill does is how the wrong skill gets loaded. Verified: zero Confluence or Bitbucket references remain outside the provenance notes. All 9 modules in each skill import, and a live read against SIL Jira through the read-only skill still works. Refs LT-22723 * Record the real cause of the missing imports and two omissions The jira_projects fix this commit used to carry is now in main: #1100 landed the same NotFoundError import, so nothing about that module changes here any more. What remains is one unused import and the provenance record. Drop ValidationError from the read-only jira_issues. Stripping the write functions left nothing that raises it. The recorded cause was wrong. Both PROVENANCE.md files blamed a local generator that prunes imports while stripping write functions, hedged as "appears to be" and never verified. Upstream shipped the bug in cdd1823f6 (2025-12-20) and fixed it in 0fafb48e7 (2026-02-10); d1a9bc6 vendored the pre-fix state on 2026-06-11, four months after the fix existed. Our files were byte-identical to upstream at cdd1823f6, so this was a stale snapshot and the note claiming "a re-sync will reintroduce it" had it backwards: a re-sync would have fixed it. Upstream issue #14 is closed as already-fixed. Two local modifications went unlisted, in a section that opens by asking for them. _common.py turns TLS verification off in three places where upstream leaves it on, deliberate because jira.sil.org's certificate chain does not validate here. And the write variant claimed "no script changes" while this branch strips Confluence and Bitbucket plumbing out of its _common.py and __init__.py. Verified: pyflakes reports nothing across both variants and all nineteen modules import. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012GyNexW3GcQVGDMLHivr3h --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the basic table data, without styling. Styling
will be added in a separate change.
Tables cannot be added to a paragraph, they need to be added
directly to a Body. So, the majority of this change was to
not create paragraphs until the end of the process; when we
are in AddEntryData().
What previously was a single paragraph for
the Entry, could now be multiple paragraphs if there are one or
more tables not at the end of the Entry.
This change is