dbt-labs / dbt-labs/dbt-docs

yaml selector in manifest json and dbt docs visualization

Open
#533 2 comments 0 reactions 0 assignees View on GitHub
enhancement Stale triage
Dominant language
JavaScript
Stars
161
Forks
91
PR merge metrics
No merged PRs in 30d

Description

### Describe the feature
As the number of models grow increasingly we are relying more and more on yaml selectors instead of the command line select . we are able to list is but it is not so easy to visualize these selectors from dbt docs . Adding a visual dag for yaml selector will be very useful for all growing dbt projects in terms of number of models

### Describe alternatives you've considered
dbt list

### Additional context
the search ended up taking to different links , but as of now this is what we observe currently
https://github.com/dbt-labs/dbt-docs/issues/119
https://github.com/dbt-labs/dbt-core/issues/2693
https://github.com/dbt-labs/dbt-core/issues/3873

yaml selector

```selectors:
- name: foo
definition:
method: path
value: models/staging
```

list in command line works

```dbt ls --selector foo
12:43:57 Running with dbt=1.8.3
12:43:58 Registered adapter: snowflake=1.8.3
...
dbt_reference_implementation.staging.test_model
```

but cannot visualize in dag
also selector is empty in manifest json
``` "groups": {},
"selectors": {},
"disabled": {`
```
### Who will this benefit?
All dbt projects with growing number of models

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.