-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Feature] Add tag
and task_tag
variable configs
#37
Changes from 10 commits
8821348
4820c4c
68e9f23
e4bfcd5
633db80
d137cd5
409db8e
b9f5725
ec59488
10e1745
f0b03e2
dc24124
17190ca
12f6797
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ target/ | |
dbt_modules/ | ||
logs/ | ||
.DS_Store | ||
dbt_packages/ | ||
dbt_packages/ | ||
env/ | ||
package-lock.yml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Decision Log | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should remove the decision log now that we're just using the variables instead of does_table_exist() There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed. |
||
|
||
## Tags and Ticket Tags Source Configurations | ||
This package takes into consideration that not all users of Asana will utilize tags or ticket tags. | ||
|
||
The below variables control the respective behaviors and may be overridden if desired in your `dbt_project.yml`. If overridden and configured to `false`, the models will still be materialized, but it will return no rows (or one for Redshift due to maintaining data types). This ensures the package does not generate records from the source, but still materializes the schema to ensure there is no run failure. The intention is that these variables are not needed to be configured, but if necessary they are available. | ||
|
||
|
||
```yml | ||
vars: | ||
using_asana_tags: false ## Dynamically checks the source at runtime to set as either true or false. May be overridden using this variable if desired. | ||
using_asana_task_tags: false ## Dynamically checks the source at runtime to set as either true or false. May be overridden using this variable if desired. | ||
``` |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
{{ config(enabled=var('asana__using_tags', True)) }} | ||
|
||
select * | ||
from {{ var('tag') }} | ||
from {{ var('tag') }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
{{ config(enabled=var('asana__using_task_tags', True)) }} | ||
|
||
select * | ||
from {{ var('task_tag') }} | ||
from {{ var('task_tag') }} |
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.