pulumi/pkg/backend/diy
Will Jones 41b967d451
Rewrite `DeletedWith` properties when renaming stacks (#16216)
When renaming a stack, we need to rewrite URN references to use the new
stack name instead of the old one. Presently such references can occur
as:

* `Parent` references
* `Provider` references
* `Dependencies`
* `PropertyDependencies`
* `DeletedWith` references

The current renaming implementation fails to rewrite `DeletedWith`
references. Previously this went unnoticed since such references were
also omitted when checking snapshot integrity. Now that integrity checks
correctly inspect `DeletedWith` properties, the omission during rename
has been surfaced. This commit fixes renaming to handle `DeletedWith`
correctly. A follow-up should also ensure that renaming checks integrity
itself prior to operation completion.

Fixes #16215
2024-05-16 15:09:32 +00:00
..
backend.go Report snapshot write errors as actual errors (#16090) 2024-04-30 17:23:18 +00:00
backend_legacy_test.go Lift context parameter to SerializeDeployment/Resource/Operations/Properties (#15929) 2024-04-15 07:45:46 +00:00
backend_test.go Rewrite `DeletedWith` properties when renaming stacks (#16216) 2024-05-16 15:09:32 +00:00
bucket.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
bucket_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
doc.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
lock.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
meta_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
pool_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
snapshot.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
stack.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
state.go Always use the snapshot secret manager (#15768) 2024-03-25 10:30:14 +00:00
store.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
store_test.go Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00