pulumi/proto
Anton Tayanovskyy 70b144d8c3
Document news ignore changes processing in the provider protocol (#16725)
This change adds comments in the protobuf definitions of the
Engine<->Provider protocol to highlight that the `news` value passed to
the provider may be influenced by the state, specifically the old inputs
stored in the state, in an Update scenario, and pre-processed to
implement ignoreChanges at the engine level. This was not entirely
obvious when analyzing provider behavior, and it helps having this
documented in the proto files.

Note that this is especially confusing since the engine is also passing
ignoreChanges to the provider as if to say "please implement it on your
end". This is indeed something that is used to suppress any residual
diffs, say in Terraform-bridged providers, but what's not obvious is
that the engine performs a bit of processing here already.

The relevant implementation seems to be around
https://github.com/pulumi/pulumi/blame/master/pkg/resource/deploy/step.go#L1407

---------

Co-authored-by: Ian Wahbe <ian@wahbe.com>
2024-07-29 14:28:39 +00:00
..
build-container Update node sdk to use typescript definitions for grpc and protobufs. (#14415) 2023-12-04 15:22:44 +00:00
google/protobuf Compile protobufs with "pulumi" namespace (#10074) 2022-07-12 14:45:03 +01:00
pulumi Document news ignore changes processing in the provider protocol (#16725) 2024-07-29 14:28:39 +00:00
.checksum.txt Document news ignore changes processing in the provider protocol (#16725) 2024-07-29 14:28:39 +00:00
generate.sh Update node sdk to use typescript definitions for grpc and protobufs. (#14415) 2023-12-04 15:22:44 +00:00
grpc_version.txt Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00