From f5add648758134c7d871a9f5ee44454f0de100c6 Mon Sep 17 00:00:00 2001 From: Maxime Armstrong Date: Mon, 17 Jun 2024 16:36:42 -0400 Subject: [PATCH] Update quickstart.mdx --- docs/content/integrations/dbt/quickstart.mdx | 13 ++----------- .../integrations/dbt/quickstart/with_project.py | 2 +- .../integrations/dbt/quickstart/with_single_file.py | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/docs/content/integrations/dbt/quickstart.mdx b/docs/content/integrations/dbt/quickstart.mdx index 7741653187bef..eca01cca072e0 100644 --- a/docs/content/integrations/dbt/quickstart.mdx +++ b/docs/content/integrations/dbt/quickstart.mdx @@ -5,15 +5,6 @@ description: Get started swiftly with this simple dbt & Dagster example. # Quickstart: Run your dbt project with Dagster - - Note: This guide uses the DbtProject class, - which is an experimental feature. Visit the{" "} - - dagster-dbt library API reference - {" "} - for more info. - - --- ## Setup your environment @@ -63,7 +54,7 @@ my_project = DbtProject( project_dir=Path(__file__) .joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT) .resolve(), -) +).ensure_prepared() @dbt_assets(manifest=my_project.manifest_path) @@ -139,7 +130,7 @@ my_dagster_project project_dir=Path(__file__) .joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT) .resolve(), - ) + ).ensure_prepared() ``` 3. In your `assets.py` file, add the following code. Using the `dbt_assets` decorator allows Dagster to create a definition for how to compute a set of dbt resources, described by a `manifest.json`. diff --git a/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_project.py b/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_project.py index a607bf304178d..423c121ea7c5c 100644 --- a/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_project.py +++ b/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_project.py @@ -12,7 +12,7 @@ project_dir=Path(__file__) .joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT) .resolve(), -) +).ensure_prepared() # end_dbt_project_example diff --git a/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_single_file.py b/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_single_file.py index c40fb2c703f2d..9f4d0eabe9528 100644 --- a/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_single_file.py +++ b/examples/docs_snippets/docs_snippets/integrations/dbt/quickstart/with_single_file.py @@ -18,7 +18,7 @@ project_dir=Path(__file__) .joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT) .resolve(), -) +).ensure_prepared() @dbt_assets(manifest=my_project.manifest_path)