Skip to content

Commit

Permalink
add nodes to project state doc (#5654)
Browse files Browse the repository at this point in the history
this pr continue's @dbeatty10 's
[pr](#5641) and adds
Analysis Saved query, and Unit tests to the nodes table.

Resolves #5648

---------

Co-authored-by: Matt Shaver <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
  • Loading branch information
3 people authored Jul 10, 2024
1 parent d8b1426 commit 4197c55
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions website/docs/docs/dbt-cloud-apis/project-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,24 @@ Most Discovery API use cases will favor the _applied state_ since it pertains to

## Affected states by node type

The following table shows the states of dbt nodes and how they are affected by the Discovery API.

| Node | Executed in DAG | Created by execution | Exists in database | Lineage | States |
|-----------------------------------------------|------------------|----------------------|--------------------|-----------------------|----------------------|
| [Model](/docs/build/models) | Yes | Yes | Yes | Upstream & downstream | Applied & definition |
| [Source](/docs/build/sources) | Yes | No | Yes | Downstream | Applied & definition |
| [Seed](/docs/build/seeds) | Yes | Yes | Yes | Downstream | Applied & definition |
| [Snapshot](/docs/build/snapshots) | Yes | Yes | Yes | Upstream & downstream | Applied & definition |
| [Analysis](/docs/build/analyses) | No | No | No | Upstream | Definition |
| [Data test](/docs/build/data-tests) | Yes | Yes | No | Upstream | Applied & definition |
| [Exposure](/docs/build/exposures) | No | No | No | Upstream | Definition |
| [Metric](/docs/build/metrics-overview) | No | No | No | Upstream & downstream | Definition |
| [Semantic model](/docs/build/semantic-models) | No | No | No | Upstream & downstream | Definition |
| [Group](/docs/build/groups) | No | No | No | Downstream | Definition |
| [Macro](/docs/build/jinja-macros) | Yes | No | No | N/A | Definition |
| [Metric](/docs/build/metrics-overview) | No | No | No | Upstream & downstream | Definition |
| [Model](/docs/build/models) | Yes | Yes | Yes | Upstream & downstream | Applied & definition |
| [Saved queries](/docs/build/saved-queries) <br /> (not in API) | N/A | N/A | N/A | N/A | N/A |
| [Seed](/docs/build/seeds) | Yes | Yes | Yes | Downstream | Applied & definition |
| [Semantic model](/docs/build/semantic-models) | No | No | No | Upstream & downstream | Definition |
| [Snapshot](/docs/build/snapshots) | Yes | Yes | Yes | Upstream & downstream | Applied & definition |
| [Source](/docs/build/sources) | Yes | No | Yes | Downstream | Applied & definition |
| [Unit tests](/docs/build/unit-tests) | Yes | Yes | No | Downstream | Definition |


## Caveats about state/metadata updates

Expand Down

0 comments on commit 4197c55

Please sign in to comment.