-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
filter computed attrs from ignore_changes=all
#31747
Conversation
When handling ignore_changes=all, we must filter computed attributes from the prior state to prevent them showing in the configuration. Since it's not valid for the user to have set computed attributes in the config, the provider should expect to never see any values there. The oversight has only now become apparent, as more providers adopt the plugin-framework which has direct access to the plan-time configuration value.
112eb04
to
3e281e1
Compare
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.
Looks good to me. Is there an associated issue? I thought I saw something recently that seemed related but I can't find it now.
This was reported internally by the SDK team, I don't think there was a specific GH issue. |
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
This might be the associated issue you are looking for: hashicorp/terraform-provider-random#302 Similarly down in the comments, hashicorp/terraform-provider-random#325. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
When handling
ignore_changes=all
, we must filter computed attributesfrom the prior state to prevent them showing in the configuration. Since
it's not valid for the user to have set computed attributes in the
config, the provider should expect to never see any values there. The
oversight has only now become apparent, as more providers adopt the
plugin-framework which has direct access to the plan-time configuration
value.