Skip to content
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

Merged
merged 14 commits into from
Feb 18, 2025

Conversation

fivetran-avinash
Copy link
Contributor

PR Overview

This PR will address the following Issue/Feature: See issue #36 in dbt_asana

This PR will result in the following new package version: v0.9.0

We are introducing variable configuration (entire models could be disabled if selected), so a breaking change seems like the best approach here.

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

Breaking Changes

  • Introduces variables asana__using_tags and asana__using_task_tags to disable the stg_asana__tag and stg_asana__task_tag models respectively. This allows the downstream models to run even if the respective source tag and task_tag tables don't exist. For more information on how to configure refer to the README.

Documentation

  • Corrected references to connectors and connections in the README. (#36)

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • [NA] dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates)
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

Tested the new variable configurations and confirmed the above models disabled when the variables were set to false.

If you had to summarize this PR in an emoji, which would it be?

🪄

@fivetran-avinash fivetran-avinash self-assigned this Feb 5, 2025
Copy link
Contributor

@fivetran-jamie fivetran-jamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good -- can you also adjust the source.yml to disable the tag and task_tag source tables based if their respective variables are set to False?

DECISIONLOG.md Outdated
@@ -0,0 +1,13 @@
# Decision Log
Copy link
Contributor

@fivetran-jamie fivetran-jamie Feb 14, 2025

Choose a reason for hiding this comment

The 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()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@fivetran-avinash
Copy link
Contributor Author

Looks pretty good -- can you also adjust the source.yml to disable the tag and task_tag source tables based if their respective variables are set to False?

Done!

Copy link
Contributor Author

@fivetran-avinash fivetran-avinash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fivetran-jamie Ready for re-review!

Copy link
Contributor

@fivetran-jamie fivetran-jamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@fivetran-catfritz fivetran-catfritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some minor comments.

CHANGELOG.md Outdated
@@ -1,7 +1,16 @@
# dbt_asana_source version.version
# dbt_asana_source v0.8.1
This release introduces the following updates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This release introduces the following updates.
This release introduces the following updates:

CHANGELOG.md Outdated

## Documentation
- Corrected references to connectors and connections in the README. ([#36](https://github.com/fivetran/dbt_asana_source/pull/36))
- Updated `src_asana.yml` with the above variable configurations to the source tables `tag` and `task_tag`. ([#37](https://github.com/fivetran/dbt_asana_source/pull/37))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this in Under the hood since it is functional.

@fivetran-avinash fivetran-avinash merged commit 1700c47 into main Feb 18, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants