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

Extended validations for the project names #5620

Merged
merged 7 commits into from
Aug 10, 2022

Conversation

Goodkat
Copy link
Contributor

@Goodkat Goodkat commented Aug 5, 2022

resolves #5379

Description

In response to the issue #5379
We need to check that the user-provided project name doesn't match dbt, a.k.a.GLOBAL_PROJECT_NAME as well as the user-provided name also doesn't collide with one of the installed plugins' reserved package names (dbt_snowflake, dbt_bigquery, etc).

Checklist

@Goodkat Goodkat requested review from a team and stu-k August 5, 2022 20:08
@cla-bot cla-bot bot added the cla:yes label Aug 5, 2022
@Goodkat Goodkat requested a review from a team as a code owner August 5, 2022 20:12
@jtcohen6 jtcohen6 added Team:Execution ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering labels Aug 8, 2022
@Goodkat
Copy link
Contributor Author

Goodkat commented Aug 10, 2022

Please, review this.

Copy link
Contributor

@stu-k stu-k left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! Apologies for the slow response. Just one comment that has to do with when adapters are loaded.

core/dbt/task/init.py Outdated Show resolved Hide resolved
Co-authored-by: Stu Kilgore <stuart.kilgore@gmail.com>
@Goodkat
Copy link
Contributor Author

Goodkat commented Aug 10, 2022

@stu-k Thank you for the review. For me it does also make sense. Since we are facing the issue with getting adapter plugins during the init process.

@stu-k
Copy link
Contributor

stu-k commented Aug 10, 2022

Looks good to me!

@Goodkat
Copy link
Contributor Author

Goodkat commented Aug 10, 2022

Looks good to me!

Can you merge it?

@ChenyuLInx ChenyuLInx merged commit a3b018f into dbt-labs:main Aug 10, 2022
@ChenyuLInx
Copy link
Contributor

@Goodkat Merged!! Thanks for contributing this!!

@Goodkat Goodkat deleted the issue/5379 branch August 11, 2022 05:58
agoblet pushed a commit to BigDataRepublic/dbt-core that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-750] [Bug] Raise helpful error if user provides "dbt" as project name during dbt init
4 participants