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 change detection #643

Closed
wants to merge 1 commit into from
Closed

Fix change detection #643

wants to merge 1 commit into from

Conversation

grahamhar
Copy link

@grahamhar grahamhar commented Nov 18, 2020

The change detection failed on maps, this introduces the use of go-cmp
which is better suited to this purpose.

It should fix #617 and the related aws provider issue hashicorp/terraform-provider-aws#15952

Credit to @gdavison for providing the tests.

The change detection failed on maps, this introduces the use of go-cmp
which is better suited to this purpose.

Credit to https://github.com/gdavison for providing the tests.
@lijok
Copy link

lijok commented Dec 17, 2020

Can this get reviewed and merged in?
The bug this fixes has us version locked to 3.12.0 aws provider

@dcu
Copy link

dcu commented Jan 15, 2021

any news on this one? thanks

@lijok
Copy link

lijok commented Jan 28, 2021

This is very concerning
A community contribution that fixes a bug which has people locked to an outdated version of the aws provider, is completely ignored by hashicorp for more than 2 months now
@apparentlymart @bflad is there anything the community can help with to get such pr's progressed further?

@IvDoorn
Copy link

IvDoorn commented Feb 11, 2021

This is very concerning
A community contribution that fixes a bug which has people locked to an outdated version of the aws provider, is completely ignored by hashicorp for more than 2 months now
@apparentlymart @bflad is there anything the community can help with to get such pr's progressed further?

Redirecting question to @paddycarver who seems to be most active last couple of months in this repository. :)

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

deyvsh commented Apr 21, 2021

@kmruddy @pkolyvas-hashicorp Hi gents, I really enjoyed your Terraform 0.15 presentation today, so I hope you don't mind me tagging you here. As you will see from the comments above, it looks like merging this PR would unblock #617, which would in turn unblock hashicorp/terraform-provider-aws#15952, which is causing us a lot of pain every day. Is there anything you can do to help? Thanks!

@grahamhar
Copy link
Author

grahamhar commented Apr 21, 2021

@kmruddy @pkolyvas-hashicorp Hi gents, I really enjoyed your Terraform 0.15 presentation today, so I hope you don't mind me tagging you here. As you will see from the comments above, it looks like merging this PR would unblock #617, which would in turn unblock hashicorp/terraform-provider-aws#15952, which is causing us a lot of pain every day. Is there anything you can do to help? Thanks!

@deyvsh I’ve been reading more about go-cmp and I don’t think it’s the correct approach due to its performance implications. I think this is why the PR is not getting reviewed. I have tried an alternate approach to fix the issue in the AWS provider itself see hashicorp/terraform-provider-aws#17610

@bflad
Copy link
Contributor

bflad commented Oct 14, 2021

Hi @grahamhar 👋 Thank you for submitting this and apologies for the delayed review.

I apologize that I did not see this pull request was similar to #711 before merging that in recently. Looking at the two sets of changes, #711 also updated Set to use cmp.Equal(), which could further help this situation with deeply nested schemas. I also verified that the two test cases here are passing, however since they essentially cover the same exact situations, it is probably best to not include these just to prevent any confusion.

The fix should be included in the next Terraform Plugin SDK release 🔜 . Thanks again for the contribution.

@bflad bflad closed this 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HasChange always return true for type map[string] Set
6 participants