pulumi/pkg/resource/deploy
Luke Hoban c3f5177f22
Fix rendering of diffs for resource without DetailedDiffs (#7500)
The diff rendering logic tests whether the DetailedDiff is nil to determine whether to use it for rendering or defer to older older supported approaches to computing diffs.

The new logic added in https://github.com/pulumi/pulumi/pull/7226 could lead to replacing a nil DetailedDiff with an empty DetailedDiff, whcih would make the rendering logic believe that a DetailedDiff was present but empty, instead of missing entirely.

This change ensures that we maintain nil-ness of the DetailedDiff when we transform it for handling of replaceOnChanges.

Also adds tests for this and other cases on applyReplaceOnChanges.

Fixes #7486.
2021-07-13 08:39:48 -06:00
..
deploytest Add methods lifecycle tests (#7488) 2021-07-12 15:51:11 -07:00
providers Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
builtins.go Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
deployment.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deployment_executor.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deployment_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
snapshot.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source.go Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
source_error.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_eval.go Add replaceOnChanges resource option (#7226) 2021-07-01 13:32:08 -06:00
source_eval_test.go Add replaceOnChanges resource option (#7226) 2021-07-01 13:32:08 -06:00
source_fixed.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_null.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_query.go [query] Do not access config with a nil Target. (#7460) 2021-07-08 19:57:47 -07:00
source_query_test.go Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
step.go Reify Input and Optional types in the schema type system. (#7059) 2021-06-24 09:17:55 -07:00
step_executor.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
step_generator.go Fix rendering of diffs for resource without DetailedDiffs (#7500) 2021-07-13 08:39:48 -06:00
step_generator_test.go Fix rendering of diffs for resource without DetailedDiffs (#7500) 2021-07-13 08:39:48 -06:00
target.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00