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

feat: allow self reference #121

Merged
merged 4 commits into from
Jul 9, 2022
Merged

Conversation

joelluijmes
Copy link
Contributor

@joelluijmes joelluijmes commented Jul 7, 2022

New approach of #110. This logic now allows the self reference / circular reference.

I made this logic based on my initial work (i.e., before refactor of @gouline). By removing the set, it's now possible to have a self reference. In addition, as some assumptions are made I added some warning logger if in future dbt manifest changes.

Resolves #74

Copy link
Owner

@gouline gouline left a comment

Choose a reason for hiding this comment

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

Your PRs are still failing formatter check, run make check test before pushing.

When you say it allows self-referencing, does that mean it implements #74?

dbtmetabase/parsers/dbt_manifest.py Outdated Show resolved Hide resolved
dbtmetabase/parsers/dbt_manifest.py Outdated Show resolved Hide resolved
dbtmetabase/parsers/dbt_manifest.py Outdated Show resolved Hide resolved
dbtmetabase/parsers/dbt_manifest.py Outdated Show resolved Hide resolved
@joelluijmes
Copy link
Contributor Author

Your PRs are still failing formatter check, run make check test before pushing.

I swear I ran black manually, but then didn't commit the changes... 🙈

When you say it allows self-referencing, does that mean it implements #74?

Yes this PR properly fixes #74. That is why I had to remove the set logic 🙂

@joelluijmes joelluijmes requested a review from gouline July 7, 2022 17:41
@gouline
Copy link
Owner

gouline commented Jul 8, 2022

Yes this PR properly fixes #74. That is why I had to remove the set logic 🙂

Excellent, adding a resolve hook to the description 🎉

@gouline gouline merged commit de5574c into gouline:master Jul 9, 2022
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.

Add support for self-referencing tables
2 participants