From 762a5cf30011310a38bdee8c6dfc0c76e2b62b06 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 19 Jul 2024 19:04:35 -0600 Subject: [PATCH 1/5] Fix rendering of snippet for run results JSON file --- website/docs/reference/artifacts/run-results-json.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 192b34a85f3..68730955087 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -36,6 +36,7 @@ Each entry in `results` is a [`Result` object](/reference/dbt-classes#result-obj - `execution_time`: Total time spent executing this node - `timing`: Array that breaks down execution time into steps (often `compile` + `execute`) - `message`: How dbt will report this result on the CLI, based on information returned from the database + import RowsAffected from '/snippets/_run-result.md'; From a69801092a8f55661a44847f86a1988bff29dc62 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Mon, 22 Jul 2024 08:32:50 -0600 Subject: [PATCH 2/5] Try moving snippet import near top of file --- website/docs/reference/artifacts/run-results-json.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 68730955087..33db412d9a1 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -3,6 +3,8 @@ title: "Run results JSON file" sidebar_label: "Run results" --- +import RowsAffected from '/snippets/_run-result.md'; + **Current schema**: [`v5`](https://schemas.getdbt.com/dbt/run-results/v5/index.html) **Produced by:** @@ -37,8 +39,6 @@ Each entry in `results` is a [`Result` object](/reference/dbt-classes#result-obj - `timing`: Array that breaks down execution time into steps (often `compile` + `execute`) - `message`: How dbt will report this result on the CLI, based on information returned from the database -import RowsAffected from '/snippets/_run-result.md'; - From e513fa7314300c7e4c83693d15bec36f2bf5b2d6 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:50:03 -0600 Subject: [PATCH 3/5] Try to eliminate extra newline whitespace --- website/docs/reference/artifacts/run-results-json.md | 1 - 1 file changed, 1 deletion(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 33db412d9a1..c9cbb031b33 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -38,7 +38,6 @@ Each entry in `results` is a [`Result` object](/reference/dbt-classes#result-obj - `execution_time`: Total time spent executing this node - `timing`: Array that breaks down execution time into steps (often `compile` + `execute`) - `message`: How dbt will report this result on the CLI, based on information returned from the database - From 1a81f1aa728742ded121814adc58a6ed403eba4f Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:23:23 -0600 Subject: [PATCH 4/5] Try to eliminate extra newline whitespace without adding indentation --- website/docs/reference/artifacts/run-results-json.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index c9cbb031b33..155c59db9c2 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -37,8 +37,7 @@ Each entry in `results` is a [`Result` object](/reference/dbt-classes#result-obj - `thread_id`: Which thread executed this node? E.g. `Thread-1` - `execution_time`: Total time spent executing this node - `timing`: Array that breaks down execution time into steps (often `compile` + `execute`) -- `message`: How dbt will report this result on the CLI, based on information returned from the database - +- `message`: How dbt will report this result on the CLI, based on information returned from the database From 0d712beb48797feede04b2fc1cb8d6056c342e10 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:51:14 -0600 Subject: [PATCH 5/5] Go back to the approach in 762a5cf30011310a38bdee8c6dfc0c76e2b62b06 --- website/docs/reference/artifacts/run-results-json.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/website/docs/reference/artifacts/run-results-json.md b/website/docs/reference/artifacts/run-results-json.md index 155c59db9c2..75ff3412bfc 100644 --- a/website/docs/reference/artifacts/run-results-json.md +++ b/website/docs/reference/artifacts/run-results-json.md @@ -3,8 +3,6 @@ title: "Run results JSON file" sidebar_label: "Run results" --- -import RowsAffected from '/snippets/_run-result.md'; - **Current schema**: [`v5`](https://schemas.getdbt.com/dbt/run-results/v5/index.html) **Produced by:** @@ -37,7 +35,11 @@ Each entry in `results` is a [`Result` object](/reference/dbt-classes#result-obj - `thread_id`: Which thread executed this node? E.g. `Thread-1` - `execution_time`: Total time spent executing this node - `timing`: Array that breaks down execution time into steps (often `compile` + `execute`) -- `message`: How dbt will report this result on the CLI, based on information returned from the database +- `message`: How dbt will report this result on the CLI, based on information returned from the database + +import RowsAffected from '/snippets/_run-result.md'; + +