Skip to content

Overhaul current path reconstruction in eager execution - #1205

Merged
jasmith-hs merged 7 commits into
masterfrom
fix-macro-child-scope-reconstruction
Sep 23, 2024
Merged

Overhaul current path reconstruction in eager execution#1205
jasmith-hs merged 7 commits into
masterfrom
fix-macro-child-scope-reconstruction

Conversation

@jasmith-hs

Copy link
Copy Markdown
Contributor

This PR takes the newer way of reconstructing the current_path, introduced in #1177 and applies it to more places where we reconstruct the path by wrapping the initial and new path.

It also adds a new class for tracking the meta context variables MetaContextVariables, specifically causing the temporary variables for current_path and import resource alias to be considered as meta context variables.

This is a more comprehensive way of solving #1199 and it also doesn't change non-eager execution code. It does that by wrapping the partially evaluated macro function output in a child scope (with {% for __ignored__ in [0] %})

Several minor QOL improvements are made here too.

Base automatically changed from cleanup-eager-fixtures to masterSeptember 12, 2024 12:43
@jasmith-hs
jasmith-hs merged commit c392aac into masterSep 23, 2024
@jasmith-hs
jasmith-hs deleted the fix-macro-child-scope-reconstruction branch September 23, 2024 17:23
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jasmith-hs