Skip to content

Add SDK and CLI commands to edit and redact case notes - #453

Merged
maximelb merged 2 commits into
masterfrom
starwatch/cases/note-edit-redact
Nov 8, 2026
Merged

maximelb merged 2 commits into
masterfrom
starwatch/cases/note-edit-redact

Conversation

@maximelb

@maximelb maximelb commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Add case note editing and irreversible redaction to the Python SDK and CLI. Editing trims surrounding whitespace to match add-note and accepts inline text, a UTF-8 file or stdin. Redaction requires --confirm and reports images still awaiting deletion.

Both SDK methods preserve organization and staging routing and encode note IDs as URL segments. Command discovery, extended help and the CLI reference explain the 8192-byte limit, 100 actual edits per note, immutable redaction, recovery-copy retention and external copies that cannot be recalled. The backend API changes are released separately.

Validation: pytest tests/unit/ tests/microbenchmarks/ — 5302 passed, 5 skipped. New contract and regression tests fail with the corresponding implementation reverted. A fresh independent review of a pristine copy approved the final head and reran 1229 affected tests with 2 skipped. CI is green.

StarWatch cases XO via StarForge

lcbill
lcbill previously approved these changes Nov 7, 2026
@maximelb
maximelb merged commit 52601cf into master Nov 8, 2026
7 checks passed
@maximelb
maximelb deleted the starwatch/cases/note-edit-redact branch November 8, 2026 00:03
@maximelb

maximelb commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Release hold: do not publish a Python release containing this PR until the Cases backend from refractionPOINT/ext-cases#145 is verified live in production. The Release Chief owns the sequence: backend staging and production checks first, then push the next numeric Python version tag from master containing this PR and verify the PyPI publication. Merging this PR did not publish it; the latest successful package remains 5.12.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants