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 unexplained detailed diffs #1696

Merged
merged 3 commits into from
Feb 23, 2024
Merged

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Feb 22, 2024

Fixes pulumi/pulumi-aws#3439

makeDetailedDiff does not report collection changes. It instead hopes that elements of the collection will produce diff entries. When changes involve collections all the way down and there are no element entries, makeDetailedDiff produces no records.

However we have some workarounds now that produce a DIFF_SOME even when there are no entries per
#1501

	if p.info.XSkipDetailedDiffForChanges && len(diff.Attributes()) > 0 {
		changes = pulumirpc.DiffResponse_DIFF_SOME

The change in this PR embellishes this case with collection-level diffs so there is at least something to show.

Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@t0yv0 t0yv0 merged commit afedecf into master Feb 23, 2024
7 checks passed
@t0yv0 t0yv0 deleted the t0yv0/fix-unexplained-detailed-diffs branch February 23, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting an Update without a Diff on BucketReplicationConfig when update package from v5 to v6
2 participants