-
Notifications
You must be signed in to change notification settings - Fork 50
Fix PF dynamic type diff error #3098
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
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3098 +/- ##
==========================================
- Coverage 68.80% 68.78% -0.03%
==========================================
Files 335 335
Lines 43560 43560
==========================================
- Hits 29971 29962 -9
- Misses 11877 11887 +10
+ Partials 1712 1711 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ed7bd76 to
23a824c
Compare
8a2ff40 to
0939cb1
Compare
| if err != nil { | ||
| return nil, fmt.Errorf("[pf/tfbridge] Error calling EncodePropertyMap: %w", err) | ||
| } | ||
| rawState, err := pfutils.NewRawState(tfType, value) |
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.
Subtle! Thank you!
|
This PR has been shipped in release v3.109.0. |
In #2945 we accidentally changed the behaviour for providers where RawStateDeltas were not enabled. After 2945 we would unconditionally produce the JSON serialization of the state even if it isn't used.
It is only used for upgrading state and for RawStateDeltas. The unintended effect here is that we exposed #3078 to all users of attributes of DynamicType even if no upgrades or RawStateDeltas are used.
This PR changes that to not produce the JSON serialization if not necessary. I've also added some tests for both the behaviour fixed here and the behaviour which needs #3078
fixes #3095