fix: cases CLI/SDK alignment with ext-cases backend#274
Merged
Conversation
- Fix export --with-data using wrong field name (detection_id -> detect_id), which caused all detection fetches to silently fail - Add is_public parameter to add_note SDK method and --is-public flag to CLI add-note command - Add update_note_visibility SDK method and CLI update-note command for toggling note public/private visibility - Add list_orgs SDK method and CLI orgs command for discovering ext-cases-subscribed organizations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
export --with-datauseddetection_idinstead ofdetect_idwhen reading detection records from the API response, causing all detection fetches to silently fail (every detection was skipped)is_publicparameter toadd_noteSDK method and--is-public/--no-is-publicflag to CLIadd-notecommand (backend supports it, was not exposed)update_note_visibilitySDK method andupdate-noteCLI command forPATCH /cases/{n}/notes/{id}endpoint (toggle note public/private visibility)list_orgsSDK method andorgsCLI command forGET /orgsendpoint (discover ext-cases-subscribed organizations)Test plan
add_notewithis_public(true, false, None)update_note_visibility(set public, set private)list_orgs(path, no query params)add-note --is-public/--no-is-publicupdate-note(public, private, missing flags)orgscommanddetect_idfield name🤖 Generated with Claude Code