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 refs in vars in projects being rendered (#1047) #1048

Merged
merged 2 commits into from
Oct 12, 2018

Conversation

beckjake
Copy link
Contributor

@beckjake beckjake commented Oct 9, 2018

In #1035 I added logic that uses jinja to render all fields with a context containing vars/env_vars. This was a mistake, since apparently you can ref() models in there, and rendering will always fail if you do that.

I also added a test that reproduces the issue.

An alternative to consider: should nothing under models/seeds get rendered until execution time?

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 LGTM. I kind of like this idea:

An alternative to consider: should nothing under models/seeds get rendered until execution time?

I'm trying to enumerate all of the things that can be configured for models and seeds. The only thing I can imagine would be problematic is the enabled: config. If a model is disabled, then the actual shape of the graph is different, and it's unclear to me if there would be any negative impact of delaying the rendering until execution time.

@beckjake beckjake merged commit c233caf into dev/guion-bluford Oct 12, 2018
@beckjake beckjake deleted the fix/refs-in-vars-in-projects-not-rendered branch October 12, 2018 20:41
@beckjake
Copy link
Contributor Author

Fixes #1047

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

Successfully merging this pull request may close these issues.

2 participants