-
-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime: improve variable parsing and Builder array plucking #5902
Runtime: improve variable parsing and Builder array plucking #5902
Conversation
@JohnathonKoster I ran into this issue when using
|
That seems like it may be a separate item entirely - I can do some testing on my end to see what may be going on - do you have any additional details about the issue? Thanks! |
Hey @JohnathonKoster |
@mikemartin Is this the kind of behavior your are seeing/referring to? If so, this is not related (and is consistent across both parser implementations). |
Assets in the wrong order is a weird one, and it happens to me too, but is separate from this issue 👍 |
@mikemartin I'm fixing that in #5381 |
This PR improves variable parsing (which allowed for some cleanup/simplifying of the NodeProcessor 🎉), which made it easier to correct a few issues with array plucking and query builders.
When
assets
is a Builder, this will now work as expected (the Builder instances are not sent through the query tag since they are treated as arrays)If the final part of the variable path returned a Builder instance (regardless of how many parts/nested the variable path was), those instances are now sent through the query tag, making the following work:
To reproduce the issues resolved:
{{ field.0 }} {{ /field.0 }}
{{ nested.field.builder }} {{ /nested.field.builder }}
)More information that lead to this PR is here: #5881