Repository navigation
fix(v6.52.3): update_set keeps the set in its collection (ADR-259) - #316
Merged
Merged
Conversation
MCP update_set and CLI `iris update set` left collection_id out of the
PUT body, and the backend stored the missing field as NULL, so a plain
name or description edit un-grouped the set.
- MCP and CLI send the set's current collection_id back. A
caller-supplied collection_id is still ignored (moves are move_set).
- PUT /api/sets/{id}: description, thumbnail fields, collection_id and
the two prompts keep their stored value when missing from the body.
An explicit null still clears them.
- CLI `update set` now sends --hierarchy-sort and the tab-default
options, which it accepted but dropped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CGz89TSr9RHvWuGQtgcjFv
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.
Fixes #314.
Problem
Editing a set's name or description through MCP
update_set(or CLIiris update set) dropped the set out of its collection. Both leftcollection_idout of the PUT body, and the backend stored a missing field asNULL. A laterupdate_collectioncould then fail with "Thumbnail diagram does not belong to a set in this collection".Fix
update_setandiris update setsend the set's currentcollection_idback. They still refuse to move a set: acollection_idsupplied by the caller is dropped, and moves stay withmove_set.PUT /api/sets/{id}, a missingdescription,thumbnail_source,thumbnail_diagram_id,collection_id,system_promptormcp_system_contextkeeps its stored value. An explicitnullstill clears it, somove_setwith no collection still un-groups a set. The web UI sends every field, so it is unaffected.iris update set --hierarchy-sort,--package-tab-defaultand--view-tab-defaultwere accepted but never sent. They are now.Tests
cli/tests/test_integration_smoke.py::TestSetUpdateEndToEnd): MCPupdate_set,update_collectionandmove_setagainst a real backend, with no mocked responses. It fails without the fix (collection_idcomes backNone) and passes with it.collection_idwas absent from the body, which is what hid the bug. They now assert it is present.🤖 Generated with Claude Code
https://claude.ai/code/session_01CGz89TSr9RHvWuGQtgcjFv