Repository navigation
Conversation
Plane added a color to Select / Multi select options (makeplane/plane-ee#11125): option.settings = {"color": "#RRGGBB"}, upper-cased by the server, cleared with {"color": null}. The SDK's option request models ignore unknown fields, so a color passed on create or update was silently dropped and the request still succeeded. - v2: add `settings` to WorkItemPropertyOption, CreateWorkItemPropertyOption (also the inline `options` on property create/update), UpdateWorkItemPropertyOption and WorkItemPropertyContextOptionInput. - v1: add `settings` to WorkItemPropertyOption, CreateWorkItemPropertyOption and UpdateWorkItemPropertyOption. - `settings` is a dict, not a typed model: writes dump with exclude_none, which would strip `color=None` from a model and turn a clear into a no-op. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
dheeru0198
approved these changes
Nov 27, 2026
dheeru0198
left a comment
Member
There was a problem hiding this comment.
Checked against the server: the merge and {"color": null} rules match the docstrings, and None survives the exclude_none dump. Merge after makeplane/plane-ee#11125.
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.
What
settingspassed on create or update was silently dropped, and the request still returned success.settings = {"color": "#RRGGBB"}on v1 and v2: on reads, on create and update, on the inlineoptionsof a property create/update, and on context option inputs.{"color": None}clears a color.Merge order
Where to look
plane/models/v2/work_item_properties.py:settingsonWorkItemPropertyOption,CreateWorkItemPropertyOption,UpdateWorkItemPropertyOptionandWorkItemPropertyContextOptionInput.plane/models/work_item_properties.py:settingson the v1WorkItemPropertyOption,CreateWorkItemPropertyOptionandUpdateWorkItemPropertyOption.Watch out for:
settingsis typeddict[str, Any], not a typedOptionSettingsmodel, on purpose. Every write dumps withexclude_none=True, which stripscolor=Nonefrom a nested model and sends{"settings": {}}, so clearing a color would quietly do nothing. A dict keeps theNone. The update docstrings note thatsettings=Noneis dropped, not sent.No change needed for the generated constants: regenerating from #11125's golden and from its merge base on
previewgives identical output (the option operations have no?fields=table).Proof
{"color": None}reaches the request body asnullpytest tests/v2 --ignore=tests/v2/integration: 1085 passed, 2 skipped. The offline tests intests/unit/test_work_item_properties.pypass; the live suites are skipped (no env).mainare unchanged: black on the unit test file, 3 ruff errors in the unit test file, 56 mypy errors.Not in this PR (follow-ups)
CreateCustomerPropertyOption): #11125 doesn't touch them.previewgives about 12k lines of unrelated changes, which need a separate catch-up.🤖 Generated with Claude Code