Skip to content

feat(confluence): copy the requested template, and delete storage that is deleted - #245

Merged
Jamyn merged 2 commits into
mainfrom
fix/confluence-copy-and-delete
Aug 20, 2026
Merged

Jamyn merged 2 commits into
mainfrom
fix/confluence-copy-and-delete

Conversation

@Jamyn

@Jamyn Jamyn commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Two gaps the live instance made testable. Stacked on #244 — the diff rests on it and conflicts with main alone.

copy_file ignored file_id and copied one configured page, so every executive report and form export was a copy of the incident template.

delete_file was never implemented, so deleting storage left the pages behind. Neither client removes a subtree: Cloud re-parents the children onto their grandparent, stranding an incident’s sub-pages on the storage root, so both paths now walk the tree.

Operators: the unused template_id field is gone; no action needed.

Jamyn added 2 commits August 20, 2026 21:18
copy_file ignored file_id and read one configured page instead, so every
executive report and form export was a copy of the incident template. Dispatch
resolves a different template per document type and passes it in; which one it
is was never the plugin's decision.

That configured page was the only reader of `template_id`, so the field goes
with it. An existing instance keeps working: the key is simply ignored.
delete_file was never implemented, so delete_storage logged NotImplementedError
and the pages stayed.

Neither client removes a subtree on its own. Cloud trashes the page it is given
and re-parents the children onto their grandparent, leaving an incident's Logs,
Screengrabs and documents on the storage root -- observed against a real site,
and the reason both paths walk the tree depth-first.

Server's remove_page issues its DELETE in advanced mode, which skips
raise_for_status, so its own error handling never runs and a refusal arrives as
an unread status code. The wrapper reads it and raises.
@Jamyn Jamyn added the enhancement New feature or request label Aug 20, 2026
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Base automatically changed from fix/242-confluence-page-ids to main August 20, 2026 22:06
@Jamyn
Jamyn merged commit c6d2b0e into main Aug 20, 2026
12 of 13 checks passed
@Jamyn
Jamyn deleted the fix/confluence-copy-and-delete branch August 20, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant