Repository navigation
Conversation
- SLIDER parses on v1 (PropertyType, PropertyTypeEnum) and on both v2 WorkItemPropertyType Literals; one slider property no longer fails a whole property listing with ValidationError. - WorkItemPropertyValueDetail.value gains int, so a slider value reads back as an int (7, not 7.0; 0, not False). - CreateWorkItemPropertyValue documents sliders: whole number 0-10, 0 is a value, clear with DELETE. - CustomerPropertyType docstring and refusal test cover SLIDER. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
dheeru0198
left a comment
There was a problem hiding this comment.
Checked against the server: slider values come back as integers, and 0 is sent. Merge after makeplane/plane-ee#10995.
What
property_type: "SLIDER". Listing or retrieving properties, or a work item type's properties, raisedValidationErrorin any workspace that had a slider property. A v1 slider value of7read back as7.0.SLIDERparses on v1 (PropertyType,PropertyTypeEnum) and on v2 (bothWorkItemPropertyTypeLiterals), and a slider value stays anint, including0.Merge order
This PR is independent of #89 and #90. It repeats #90's
intaddition toWorkItemPropertyValueDetail.value, so whichever merges second has one-line conflicts in the type lists, thevalueunion and its docstring, plus a duplicatedtest_a_decimal_value_stays_a_float. Keep both sides, and one copy of that test.Where to look
plane/models/enums.py,plane/models/v2/work_item_properties.py,plane/models/v2/work_item_types.py: the new enum and Literal member.plane/models/work_item_properties.py:WorkItemPropertyValueDetail.valuegainsint, and theCreateWorkItemPropertyValuedocstring documents sliders (whole number 0–10, 0 is a value, cleared with DELETE).No change needed for:
CreateWorkItemPropertyValue.valuealready takesint, andvalue=0is sent as{"value": 0}.{"min": 0, "max": 10}and refuses any sent on create. SDK create models omitsettingswhen unset, and v1 reads the shape as a plain dict (v2settingsisAny).custom_fieldsand the type schema'sminimum/maximum.Proof
int, and a decimal staysfloatvalue=0is sentsettingsCustomerPropertyTypeEnumexcludes it)pytest tests/v2: 1083 passed, 430 skipped (live, no env). The offline tests in the two changed unit files pass.mainare unchanged: black would reformat 2 files, ruff has 3 errors, and mypy has 56.Not in this PR (follow-ups)
EXTERNAL_DROPDOWN; both v2 Literals lackCASCADING/EXTERNAL_DROPDOWN. One property of a missing type makes the wholelistpage fail. Generating the (duplicated) v2 Literal from the golden inscripts/generate_v2_constants.pywould close this.settings,default_valueoris_multi). The server already returns a clear 400.🤖 Generated with Claude Code
Summary by CodeRabbit