Remove all patches related to tagsAll #4219
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes all patches related to the
tagsAll
implementation and restores the upstream implementation. The new (newer than our hack) upstream tagging implementation utilizes a combination of storingdefaultTags
in context and utilizing a provider interceptorapplyTags
PreCheckCallback
to only remove "__defaults" items from tags (see Error on refresh after import for pf based resources with tags #4204)In the current implementation there is a breaking change. Previously
tags
always equaledtagsAll
so you could reference thetags
output value to get all the tags on the resource. Now these are two separate fields and you would need to reference thetagsAll
output to get all the tags. I'm not sure how many people will reference thetags
output, but if we wanted to avoid this breaking change until the next major version we could utilize theTransformOutputs
callback to always settags=tagsAll
.Remaining Issues
PlanResourceChange
needs to be enabledPlanResourceChange
doesn't work when trying to import legacy bucket.