Skip to content

Conversation

@stevehipwell
Copy link
Contributor

@stevehipwell stevehipwell commented Jan 8, 2026

BREAKING CHANGE: CustomProperty.DefaultValue is now type any and .ValueType is now type PropertyValueType.

Closes #3692

@stevehipwell stevehipwell force-pushed the custom-property-default branch from 3adae47 to 3e0f027 Compare January 13, 2026 12:28
@stevehipwell stevehipwell marked this pull request as ready for review January 13, 2026 12:28
@stevehipwell
Copy link
Contributor Author

@gmlewis this should be ready for review now.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Jan 13, 2026
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.45%. Comparing base (a427207) to head (844b8ce).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3906      +/-   ##
==========================================
+ Coverage   92.44%   92.45%   +0.01%     
==========================================
  Files         203      203              
  Lines       14927    14950      +23     
==========================================
+ Hits        13799    13822      +23     
  Misses        926      926              
  Partials      202      202              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @stevehipwell!
Please add unit tests that exercise each path in each of the newly-added helpers.

@gmlewis gmlewis changed the title feat: Improve support for custom property defaults feat!: Improve support for custom property defaults Jan 13, 2026
@gmlewis gmlewis added the Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). label Jan 13, 2026
@stevehipwell
Copy link
Contributor Author

@gmlewis sorry for the oversight, I checked my notes which said fix tests and I just assumed it was just the failing ones. Will add tests ASAP.

@stevehipwell
Copy link
Contributor Author

@gmlewis I've pushed up the tests.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @stevehipwell!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @alexandear - @zyfy29

}
}

// DefaultValueStrings returns the DefaultValue as a slice of string if the ValueType is string or multi_select.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// DefaultValueStrings returns the DefaultValue as a slice of string if the ValueType is string or multi_select.
// DefaultValueStrings returns the DefaultValue as a slice of string if the ValueType is multi_select.

}
}

// DefaultValueBool returns the DefaultValue as a string if the ValueType is string or true_false.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// DefaultValueBool returns the DefaultValue as a string if the ValueType is string or true_false.
// DefaultValueBool returns the DefaultValue as a string if the ValueType is true_false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The DefaultValue of a CustomProperty is incorrect type

3 participants