dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.25k stars 1.53k forks source link

[Backport 1.6.latest] Add most recent dbt-docs changes #10346

Closed aranke closed 1 week ago

aranke commented 1 week ago

Backport https://github.com/dbt-labs/dbt-core/commit/8ee8b2560a1ff05f2451855cc6c9c93aa6388309 from https://github.com/dbt-labs/dbt-core/pull/10307.

MichelleArk commented 1 week ago

🎩

(dbt-core) ❯ git checkout backport-10307-to-1.6.latest

(dbt-core) ❯ make dev 
...
(dbt-core) ❯ cd ../jaffle-shop

(jaffle-shop) ❯ dbt --version
Core:
  - installed: 1.6.16
  - latest:    1.8.2  - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:

(jaffle-shop) ❯ dbt docs generate
18:05:46  Running with dbt=1.6.16
18:05:46  target not specified in profile 'postgres', using 'default'
18:05:46  Registered adapter: postgres=1.6.16
18:05:47  PydanticMetric revenue_growth_mom has multiple identical input measures specifications for measure revenue. This might be hiding a semantic error. Input measure specification: name='revenue' filter=None alias=None join_to_timespine=False fill_nulls_with=None.
18:05:47  Found 18 models, 6 seeds, 20 tests, 6 sources, 0 exposures, 13 metrics, 650 macros, 0 groups, 6 semantic models
18:05:47
18:05:47  Concurrency: 1 threads (target='default')
18:05:47
18:05:47  Building catalog
18:05:47  Catalog written to /Users/michelleark/src/jaffle-shop/target/catalog.json

(jaffle-shop) ❯ dbt docs serve
18:05:51  Running with dbt=1.6.16
18:05:51  target not specified in profile 'postgres', using 'default'
Serving docs at 8080
To access from your browser, navigate to: http://localhost:8080

Press Ctrl+C to exit.
127.0.0.1 - - [20/Jun/2024 14:05:52] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [20/Jun/2024 14:05:52] "GET /manifest.json?cb=1718906752298 HTTP/1.1" 200 -
127.0.0.1 - - [20/Jun/2024 14:05:52] "GET /catalog.json?cb=1718906752298 HTTP/1.1" 200 -
...

poked around the docs site, no warnings / errors + graph viz screenshot:

Screenshot 2024-06-20 at 2 05 58 PM