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

[DbtProject] Rename --use-experimental-dbt-project flag to --use-dbt-project in dbt scaffold CLI #22794

Merged

Conversation

maximearmstrong
Copy link
Contributor

@maximearmstrong maximearmstrong commented Jul 1, 2024

Summary & Motivation

This PR renames the --use-experimental-dbt-project flag to --use-dbt-project in the dbt scaffold CLI, now that DbtProject is no more experimental.

This is the first step in making DbtProject the default and only strategy when scaffolding a dbt project. The goal is to facilitate the transition from the previous default strategy to that of DbtProject in our tutorials, courses and docs.

Once this is merged, next steps will be to

  • update tutorials, courses and docs to use DbtProject.
    • Since our examples heavily rely on the scaffold command, we'll be able to use dagster-dbt project scaffold --use-dbt-project with the updated flag
  • make the DbtProject strategy the default and only one when using dagster-dbt project scaffold
  • update tutorials, courses and docs to remove the flag

Tickets are listed here.

How I Tested These Changes

BK with updated tests

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @maximearmstrong and the rest of your teammates on Graphite Graphite

@maximearmstrong maximearmstrong changed the title Rename --use-experimental-dbt-project flag by --use-dbt-project in dbt scaffold CLI [DbtProject] Rename --use-experimental-dbt-project flag by --use-dbt-project in dbt scaffold CLI Jul 1, 2024
@maximearmstrong maximearmstrong self-assigned this Jul 1, 2024
@maximearmstrong maximearmstrong changed the title [DbtProject] Rename --use-experimental-dbt-project flag by --use-dbt-project in dbt scaffold CLI [DbtProject] Rename --use-experimental-dbt-project flag to --use-dbt-project in dbt scaffold CLI Jul 1, 2024
@maximearmstrong maximearmstrong marked this pull request as ready for review July 1, 2024 18:15
Copy link
Contributor

@rexledesma rexledesma left a comment

Choose a reason for hiding this comment

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

this also needs an internal PR

Comment on lines 249 to 253
use_experimental_dbt_project: Annotated[
use_dbt_project: Annotated[
bool,
typer.Option(
...,
"--use-experimental-dbt-project",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can also just keep --use-experimental-dbt-project as a flag so things that use that flag won't break (e.g. extraneous docs, internal).

@maximearmstrong
Copy link
Contributor Author

this also needs an internal PR

@rexledesma It's ready for review here

Copy link
Contributor

Sweet thanks

@maximearmstrong maximearmstrong force-pushed the maxime/ds-334/update-flag-to-use-dbt-project branch from b3a685a to de0a2ad Compare July 2, 2024 14:52
@maximearmstrong maximearmstrong merged commit 8116206 into master Jul 2, 2024
1 check passed
@maximearmstrong maximearmstrong deleted the maxime/ds-334/update-flag-to-use-dbt-project branch July 2, 2024 15:26
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