-
Notifications
You must be signed in to change notification settings - Fork 50
Required properties with default will now project as optional for SDKv1 providers #3101
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
Required properties with default will now project as optional for SDKv1 providers #3101
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
11f23c8 to
ba5a08d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3101 +/- ##
==========================================
- Coverage 68.74% 68.68% -0.06%
==========================================
Files 336 336
Lines 43610 43645 +35
==========================================
- Hits 29979 29978 -1
- Misses 11920 11957 +37
+ Partials 1711 1710 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d0ef58b to
5fa7b74
Compare
ba5a08d to
6259947
Compare
| return s.tf.DefaultValue() | ||
| } | ||
|
|
||
| func (s v1Schema) HasDefault() bool { |
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.
This is a behavior change for SDK-v1 providers right? Perhaps worth calling out? Or am I missing something?
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.
Yeah, fair.
pkg/pf/proto/attribute.go
Outdated
|
|
||
| func (a attribute) SetHash(v interface{}) int { panic("UNIMPLIMENTED") } | ||
| func (a attribute) SetHash(v interface{}) int { panic("UNIMPLIMENTED") } | ||
| func (a attribute) SetElementHash(v interface{}) (int, error) { panic("UNIMPLIMENTED") } |
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.
How do we know this is not getting called? Perhaps a quick comment?
8d6a25c to
f6dce5d
Compare
|
This PR has been shipped in release v3.110.0. |
Pure refactor.Now that adding methods to theshiminterfaces is no longer breaking we can remove some of the unnecessary interface clutter.The only effective change here is that the SDKv1 now implements
HasDefault, which means #3035 will apply to it as well. This is unlikely to have a meaningful impact.