-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...g/pending/20240516--backend-diy--rewrite-deletedwith-references-when-renaming-stacks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: fix | ||
scope: backend/diy | ||
description: Rewrite DeletedWith references when renaming stacks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters