pulumi/proto/pulumi
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
..
codegen Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
testing Add SupportPack to schemas to write out in the new style (#15713) 2024-03-22 09:25:46 +00:00
alias.proto feat(engine): Adds structured alias support to the engine 2022-10-11 17:56:32 -04:00
analyzer.proto Policy remediations feature (#14080) 2023-10-09 18:31:17 +00:00
callback.proto Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
converter.proto Clean up unused import warnings (#15581) 2024-03-04 13:01:25 +00:00
engine.proto Fix the go_package option on the .proto files 2022-09-20 09:31:03 +01:00
errors.proto Fix the go_package option on the .proto files 2022-09-20 09:31:03 +01:00
language.proto [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
plugin.proto Allow language plugins to return plugin checksums (#13776) 2023-08-25 15:26:25 +00:00
provider.proto Document news ignore changes processing in the provider protocol (#16725) 2024-07-29 14:28:39 +00:00
resource.proto Add parameterized `Call` support to the engine (#16813) 2024-07-26 15:36:53 +00:00
source.proto [engine] Add support for source positions 2023-07-10 14:35:40 -07:00