-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat!: Improve support for custom property defaults #3906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1db98bf to
3adae47
Compare
Signed-off-by: Steve Hipwell <[email protected]>
3adae47 to
3e0f027
Compare
|
@gmlewis this should be ready for review now. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
gmlewis
left a comment
There was a problem hiding this 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 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. |
|
@gmlewis I've pushed up the tests. |
gmlewis
left a comment
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // 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. |
BREAKING CHANGE:
CustomProperty.DefaultValueis now typeanyand.ValueTypeis now typePropertyValueType.Closes #3692