Skip to content

Include open tasks in asana__tag - #64

Open
porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/tag-open-tasks
Open

porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/tag-open-tasks

Conversation

@porkedchop

Copy link
Copy Markdown

Resolves #63

Please provide your name and company

Bishop Kammeraad

Describe what this PR changes and how it addresses the linked issue or feature request.

Removes is_completed from the task CTE filter in asana__tag, leaving where tags is not null. Open tasks now reach the aggregation, so number_of_open_tasks and number_of_assigned_open_tasks are populated. number_of_tasks_completed, avg_days_open and avg_days_assigned already filter on is_completed and are unchanged.

How did you validate the changes introduced within this PR, and what warehouse did you use for testing?

DuckDB with the integration test data. The stock seeds have no tagged open tasks, so I added one open, assigned task with 4 tags to task_data and tagged the existing completed task (seed change not included in this PR). sum(number_of_open_tasks) goes from 0 to 4 and sum(number_of_assigned_open_tasks) from 0 to 4. sum(number_of_tasks_completed) stays 1. dbt build passes on both the stock and modified seeds.

This branch has not been deployed

No deployments
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.

[Bug] asana__tag open task counts are always 0

1 participant