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

Parse model hooks for refs (#1957) #2025

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

beckjake
Copy link
Contributor

Fixes #1957

Add a parse pass for model hooks, parse them like models, attach the hook refs as if they were on the model.
Add a test exercising refs in model hooks.

Add a parse pass for model hooks, parse them like models
Attach the hook refs as if they were on the model
Add a test exercising refs
@cla-bot cla-bot bot added the cla:yes label Dec 25, 2019
Copy link
Contributor

@drewbanin drewbanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! I do think it means that pre/post-hooks now need to be executable at parse-time. For typical uses of hooks, that shouldn't be a problem. I do wonder if there aren't folks doing wacky stuff with statements in hooks that are going to have a bad time.

I'll be sure to document this as a breaking change so that folks can add an if execute if required

@beckjake
Copy link
Contributor Author

beckjake commented Jan 6, 2020

Good point! I hadn't considered that.

@beckjake beckjake merged commit f850153 into dev/barbara-gittings Jan 6, 2020
@beckjake beckjake deleted the fix/parse-refs-in-hooks branch January 6, 2020 22:05
@Gunnnn
Copy link

Gunnnn commented Sep 15, 2024

Hello! How can i know if this PR was merged into master and to which Release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants