You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+15
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,18 @@
1
+
# dbt_jira v0.19.0
2
+
[PR #133](https://github.com/fivetran/dbt_jira/pull/133) contains the following updates:
3
+
4
+
## Breaking Changes
5
+
- This change is marked as breaking due to its impact on Redshift configurations.
6
+
- For Redshift users, comment data aggregated under the `conversations` field in the `jira__issue_enhanced` table is now disabled by default to prevent consistent errors related to Redshift's varchar length limits.
7
+
- If you wish to re-enable `conversations` on Redshift, set the `jira_include_conversations` variable to `true` in your `dbt_project.yml`.
8
+
9
+
## Under the Hood
10
+
- Updated the `comment` seed data to ensure conversations are correctly disabled for Redshift by default.
11
+
- Renamed the `jira_is_databricks_sql_warehouse` macro to `jira_is_incremental_compatible`, which was updated to return `true` if the Databricks runtime is an all-purpose cluster (previously it checked only for a SQL warehouse runtime) or if the target is any other non-Databricks-supported destination.
12
+
- This update addresses Databricks runtimes (e.g., endpoints and external runtimes) that do not support the `insert_overwrite` incremental strategy used in the `jira__daily_issue_field_history` and `int_jira__pivot_daily_field_history` models.
13
+
- For Databricks users, the `jira__daily_issue_field_history` and `int_jira__pivot_daily_field_history` models will now apply the incremental strategy only if running on an all-purpose cluster. All other Databricks runtimes will not utilize an incremental strategy.
14
+
- Added consistency tests for the `jira__project_enhanced` and `jira__user_enhanced` models.
15
+
1
16
# dbt_jira v0.18.0
2
17
[PR #131](https://github.com/fivetran/dbt_jira/pull/131) contains the following updates:
Copy file name to clipboardexpand all lines: README.md
+22-6
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Include the following jira package version in your `packages.yml` file:
66
66
```yaml
67
67
packages:
68
68
- package: fivetran/jira
69
-
version: [">=0.18.0", "<0.19.0"]
69
+
version: [">=0.19.0", "<0.20.0"]
70
70
71
71
```
72
72
### Step 3: Define database and schema variables
@@ -82,14 +82,30 @@ vars:
82
82
Your Jira connector may not sync every table that this package expects. If you do not have the `SPRINT`, `COMPONENT`, or `VERSION` tables synced, add the respective variables to your root `dbt_project.yml` file. Additionally, if you want to remove comment aggregations from your `jira__issue_enhanced` model, add the `jira_include_comments` variable to your root `dbt_project.yml`:
83
83
```yml
84
84
vars:
85
-
jira_using_sprints: false # Disable if you do not have the sprint table or do not want sprint-related metrics reported
86
-
jira_using_components: false # Disable if you do not have the component table or do not want component-related metrics reported
87
-
jira_using_versions: false # Disable if you do not have the versions table or do not want versions-related metrics reported
88
-
jira_using_priorities: false # disable if you are not using priorities in Jira
89
-
jira_include_comments: false # This package aggregates issue comments so that you have a single view of all your comments in the jira__issue_enhanced table. This can cause limit errors if you have a large dataset. Disable to remove this functionality.
85
+
jira_using_sprints: false # Enabled by default. Disable if you do not have the sprint table or do not want sprint-related metrics reported.
86
+
jira_using_components: false # Enabled by default. Disable if you do not have the component table or do not want component-related metrics reported.
87
+
jira_using_versions: false # Enabled by default. Disable if you do not have the versions table or do not want versions-related metrics reported.
88
+
jira_using_priorities: false # Enabled by default. Disable if you are not using priorities in Jira.
89
+
jira_include_comments: false # Enabled by default. Disabling will remove the aggregation of comments via the `count_comments` and `conversations` columns in the `jira__issue_enhanced` table.
90
90
```
91
+
91
92
### (Optional) Step 5: Additional configurations
92
93
94
+
#### Controlling conversation aggregations in `jira__issue_enhanced`
95
+
96
+
The `dbt_jira` package offers variables to enable or disable conversation aggregations in the `jira__issue_enhanced` table. These settings allow you to manage the amount of data processed and avoid potential performance or limit issues with large datasets.
97
+
98
+
-`jira_include_conversations`: Controls only the `conversation`[column](https://github.com/fivetran/dbt_jira/blob/main/models/jira.yml#L125-L127) in the `jira__issue_enhanced` table.
99
+
- Default: Disabled for Redshift due to string size constraints; enabled for other supported warehouses.
100
+
- Setting this to `false` removes the `conversation` column but retains the `count_comments` field if `jira_include_comments` is still enabled. This is useful if you want a comment count without the full conversation details.
101
+
102
+
In your `dbt_project.yml` file:
103
+
104
+
```yml
105
+
vars:
106
+
jira_include_conversations: false/true # Disabled by default for Redshift; enabled for other supported warehouses.
107
+
```
108
+
93
109
#### Define daily issue field history columns
94
110
The `jira__daily_issue_field_history` model generates historical data for the columns specified by the `issue_field_history_columns` variable. By default, the only columns tracked are `status`, `status_id`, and `sprint`, but all fields found in the Jira `FIELD` table's `field_name` column can be included in this model. The most recent value of any tracked column is also captured in `jira__issue_enhanced`.
{# Exclude columns that depend on calculations involving the current time in seconds or aggregate strings in a random order, as they will differ between runs. #}
8
+
{% set exclude_columns = ['open_duration_seconds', 'any_assignment_duration_seconds', 'last_assignment_duration_seconds'] %}
{# Exclude columns that depend on calculations involving the current time in seconds or aggregate strings in a random order, as they will differ between runs. #}
{# Exclude columns that depend on calculations involving the current time in seconds or aggregate strings in a random order, as they will differ between runs. #}
8
+
{% set exclude_columns = ['avg_age_currently_open_seconds', 'median_age_currently_open_seconds', 'projects'] %}
0 commit comments