Skip to content
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

Fix object usage from modifier builtins #430

Merged

Conversation

douglasjacobsen
Copy link
Collaborator

Previously, modifier builtins that referenced self would cause an issue (because the application instance was passed as self instead of the modifier instance). This merge fixes this issue by forcing the object (application / modifier) extraction to happen later than it happened previously.

A test is also added to capture this in the future (and if tested before the last commit it fails).

Previously, builtins defined within modifiers were called with an
application instance in place of the `self` argument. This commit
updates the executable graph to track the modifier object, and extract
the builtin from the modifier when it will be used instead of at
directive time.
@douglasjacobsen douglasjacobsen added bug Something isn't working testing Modifications to testing labels Mar 6, 2024
@rfbgo rfbgo merged commit 918bf9e into GoogleCloudPlatform:develop Mar 6, 2024
5 checks passed
@douglasjacobsen douglasjacobsen deleted the fix_modifier_builtins branch March 8, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing Modifications to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants