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

core: Address some issues with ignore_changes #5635

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Mar 15, 2016

The ignore_changes diff filter was stripping out attributes on Create
but the diff was still making it down to the provider, so Create would
end up missing attributes, causing a full failure if any required
attributes were being ignored.

In addition, any changes that required a replacement of the resource
were causing problems with ignore_chages, which didn't properly filter
out the replacement when the triggering attributes were filtered out.

Refs #5627

@joshuaspence
Copy link
Contributor

Awesome! Looking forward to this.

@phinze
Copy link
Contributor Author

phinze commented Mar 15, 2016

Noting here that this is insufficient to fix the required attr case - since ChangeType() is unreliable at that point in the execution. Will follow up with more as I dig in further.

@phinze phinze force-pushed the phinze/fixup-ignore-changes branch from 4cd96ec to 97c0901 Compare March 21, 2016 17:51
@phinze phinze changed the title core: Don't filter ignore_changes on create core: Address issues with ignore_changes Mar 21, 2016
@phinze phinze force-pushed the phinze/fixup-ignore-changes branch 2 times, most recently from 73fcfff to 1dda0fe Compare March 21, 2016 18:59
The ignore_changes diff filter was stripping out attributes on Create
but the diff was still making it down to the provider, so Create would
end up missing attributes, causing a full failure if any required
attributes were being ignored.

In addition, any changes that required a replacement of the resource
were causing problems with `ignore_chages`, which didn't properly filter
out the replacement when the triggering attributes were filtered out.

Refs #5627
@phinze phinze force-pushed the phinze/fixup-ignore-changes branch from 1dda0fe to f480ae3 Compare March 21, 2016 19:20
@jen20
Copy link
Contributor

jen20 commented Mar 21, 2016

This LGTM, but we may want to revisit in future - definitely better than what we have now though!

@phinze
Copy link
Contributor Author

phinze commented Mar 21, 2016

Discussed with @jen20 - while I'm not sure if this addresses all ignore_changes issues, it does definitely address some of them - enough to warrant including it and moving forward from there.

@phinze phinze changed the title core: Address issues with ignore_changes core: Address some issues with ignore_changes Mar 21, 2016
phinze added a commit that referenced this pull request Mar 21, 2016
core: Address some issues with ignore_changes
@phinze phinze merged commit 25d5b6d into master Mar 21, 2016
@phinze phinze deleted the phinze/fixup-ignore-changes branch March 21, 2016 20:08
@tehmaspc
Copy link

fixes my current ignore_changes issues; thanks!

@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants