Skip to content

Conversation

@liamcervante
Copy link
Member

This PR adds the concept of a RemovedStackCall into the stacks runtime. Essentially, a removed block can now target an entire embedded stack and mark everything inside as being removed.

To enable this, Stack objects now accept a plans.Mode as part of their constructor which the removed stack call sets to be plans.Destroy while regular stack calls inherit from their stack. The behaviour of the removed stack call within the stack is otherwise fairly similar.

This PR also refactors the dynamic walk logic to extract the now fairly complicated logic for handling components and embedded stacks into dedicated functions to tidy everything up a bit.

@liamcervante liamcervante requested a review from a team as a code owner April 1, 2025 14:07
@liamcervante liamcervante added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Apr 1, 2025
@liamcervante liamcervante force-pushed the liamcervante/stacks/removed-chain-2/unknown-stack-instances branch from c87fbdb to 6f07866 Compare April 2, 2025 13:29
@liamcervante liamcervante force-pushed the liamcervante/stacks/removed-stack branch from 2f0f925 to 864b92c Compare April 2, 2025 13:35
@liamcervante liamcervante force-pushed the liamcervante/stacks/removed-chain-2/unknown-stack-instances branch from 6f07866 to 6846081 Compare April 3, 2025 08:30
Base automatically changed from liamcervante/stacks/removed-chain-2/unknown-stack-instances to main April 3, 2025 08:40
@liamcervante liamcervante force-pushed the liamcervante/stacks/removed-stack branch from 864b92c to ec7fed5 Compare April 3, 2025 08:49
@liamcervante liamcervante merged commit a06f827 into main Apr 4, 2025
8 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/removed-stack branch April 4, 2025 13:01
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants