Skip to content
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

Fix issue #710 #711

Merged
merged 4 commits into from
Oct 12, 2021
Merged

Fix issue #710 #711

merged 4 commits into from
Oct 12, 2021

Conversation

oliver-schoenherr
Copy link
Contributor

@oliver-schoenherr oliver-schoenherr commented Feb 20, 2021

Currently the hasChanged function does not take in consideration that the special case comparing a Set can happen on any level of the tree, not only on the top.

Instead of copy the reflect.DeepEqual function I just use the go-cmp library, which is already used in the code base, but for testing purpose only.

Compare resource attribute values more reliable. Use Equal method from Set even if Set is not on the top of the tree.
@hashicorp-cla
Copy link

hashicorp-cla commented Feb 20, 2021

CLA assistant check
All committers have signed the CLA.

Base automatically changed from master to main March 22, 2021 14:01
@bagedevimo
Copy link

Is there anything I can do to help get this merged/released? It'd be great as the solve for hashicorp/terraform-provider-aws#13658.

Copy link
Contributor

@bflad bflad 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 for this, @oliver-schoenherr 🚀 I'm going to pull this in, after double checking it against terraform-provider-corner, with the two testing adjustments noted below.

helper/schema/resource_data_test.go Outdated Show resolved Hide resolved
helper/schema/resource_data_test.go Show resolved Hide resolved
@bflad bflad added the bug Something isn't working label Oct 12, 2021
@bflad bflad added this to the v2.8.1 milestone Oct 12, 2021
@bflad bflad merged commit 5f6ea40 into hashicorp:main Oct 12, 2021
bflad added a commit that referenced this pull request Oct 12, 2021
@bflad bflad modified the milestones: v2.8.1, v2.9.0 Oct 14, 2021
@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants