-
Notifications
You must be signed in to change notification settings - Fork 0
documentation for core staging tables #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
KasiaHinkson
wants to merge
24
commits into
v1.1.14-tmc
Choose a base branch
from
v1.1.15-tmc
base: v1.1.14-tmc
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ed0b533
documentation for core staging tables
KasiaHinkson 5484924
fix yaml
KasiaHinkson ebc88fb
fix references
KasiaHinkson 160f094
add test
KasiaHinkson ffdd258
fix variable names
KasiaHinkson eafb22c
try to fix codes
KasiaHinkson 6935ebd
fix typo
KasiaHinkson 1caa9ad
fine we get rid of it
KasiaHinkson 36b805e
just get rid of all of them
KasiaHinkson d6243be
add docs paths
KasiaHinkson 9f2df9f
remove blocks
KasiaHinkson 3ddfcfc
not none
KasiaHinkson 92fb25f
more nulls
KasiaHinkson 1ab71a6
add space
KasiaHinkson 56557e4
move punctuation
KasiaHinkson c77c307
one more fix
KasiaHinkson b27767d
fix missing docs
KasiaHinkson db21adf
fix doc name
KasiaHinkson ccdcb0b
for christs sake
KasiaHinkson dcd6488
add missing descriptions
KasiaHinkson 4eb28a8
add more defs
KasiaHinkson fd3ec42
fix a couple descriptions
KasiaHinkson 6c3d24b
remove one bad row (#24)
KasiaHinkson 8cfbc7b
Adding more join keys to intermediate models (#25)
hannah-marcus28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs avvan_source_relation %} | ||
| Concatenated string of America Votes source database, schema and table. Null for values unrelated to America Votes data | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs code_id %} | ||
| Unique ID for Code | ||
| {% enddocs %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs committee_id %} | ||
| Committee in which record lives | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs bonterra_missing %} | ||
| Documentation for this column is not provided by Bonterra. | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs database_mode %} | ||
| Boolean to indicate if this row was synced via database | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs is_myvoters %} | ||
| Boolean to indicate if this row was synced via database | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs segment_by %} | ||
| The value used for segmentation | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs segment_by_key %} | ||
| Surrogate key identifying the segment of which this record is a part. Segments are then exposed to members according to data ownership and sharing arrangements. | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs source_schema %} | ||
| Denotes the schema component of the _dbt_source_relation field | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs source_table %} | ||
| Denotes the table component of the _dbt_source_relation field | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs vendor %} | ||
| Denotes the name of the vendor as it relates to TMC's segmentation processes | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| {% docs vendor_unique_id %} | ||
| Surrogate primary key uniquely identifying this record across all members data. | ||
| {% enddocs %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| {% test table_fully_documented(model) %} | ||
| {% set table_name = model.identifier %} | ||
| SELECT | ||
| column_name | ||
| FROM | ||
| {{ model.database }}.{{ model.schema }}.INFORMATION_SCHEMA.COLUMN_FIELD_PATHS | ||
| WHERE | ||
| (description IS NULL OR description = '') | ||
| AND table_name = '{{ table_name }}' | ||
| UNION ALL | ||
| SELECT '{{ table_name }}' | ||
| FROM UNNEST([1]) AS dummy | ||
| WHERE NOT EXISTS ( | ||
| SELECT 1 | ||
| FROM {{ model.database }}.{{ model.schema }}.INFORMATION_SCHEMA.TABLE_OPTIONS | ||
| WHERE option_name = 'description' | ||
| AND table_name = '{{ table_name }}' | ||
| ) | ||
| {% endtest %} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question about if we wanna add some disclaimer about multiple committees