Repository navigation
Add SDK and CLI commands to edit and redact case notes - #453
Merged
Merged
Conversation
lcbill
previously approved these changes
Nov 7, 2026
lcbill
approved these changes
Nov 7, 2026
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. |
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.
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