Skip to content

Commit b383b19

Browse files
Merge pull request #55 from everettttt/main
Allow exclusion of priority data
2 parents 428b613 + eb117ba commit b383b19

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
cd integration_tests
3434
dbt deps
3535
dbt seed --target postgres --full-refresh
36-
dbt run --vars '{jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target postgres --full-refresh
36+
dbt run --vars '{jira_using_priorities: false, jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target postgres --full-refresh
3737
dbt run --target postgres --full-refresh
3838
dbt run --target postgres
3939
dbt test --target postgres
@@ -45,7 +45,7 @@ jobs:
4545
cd integration_tests
4646
dbt deps
4747
dbt seed --target snowflake --full-refresh
48-
dbt run --vars '{jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target snowflake --full-refresh
48+
dbt run --vars '{jira_using_priorities: false, jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target snowflake --full-refresh
4949
dbt run --target snowflake --full-refresh
5050
dbt run --target snowflake
5151
dbt test --target snowflake
@@ -60,7 +60,7 @@ jobs:
6060
cd integration_tests
6161
dbt deps
6262
dbt seed --target bigquery --full-refresh
63-
dbt run --vars '{jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target bigquery --full-refresh
63+
dbt run --vars '{jira_using_priorities: false, jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target bigquery --full-refresh
6464
dbt run --target bigquery --full-refresh
6565
dbt run --target bigquery
6666
dbt test --target bigquery
@@ -72,7 +72,7 @@ jobs:
7272
cd integration_tests
7373
dbt deps
7474
dbt seed --target redshift --full-refresh
75-
dbt run --vars '{jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target redshift --full-refresh
75+
dbt run --vars '{jira_using_priorities: false, jira_using_sprints: false, jira_using_components: false, jira_using_versions: false}' --target redshift --full-refresh
7676
dbt run --target redshift --full-refresh
7777
dbt run --target redshift
7878
dbt test --target redshift

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
# dbt_jira v0.8.1
2+
## Features
3+
- Makes priority data optional. Allows new env var `jira_using_priorities`. Models `jira__issue_enhanced` and `int_jira__issue_join` won't require source `jira.priority` or contain priority-related columns if `jira_using_priorities: false`. ([#55](https://github.com/fivetran/dbt_jira/pull/55))
4+
5+
## Contributors
6+
- @everettttt ([#55](https://github.com/fivetran/dbt_jira/pull/55))
7+
18
# dbt_jira v0.8.0
29
## 🚨 Breaking Changes 🚨
310
- Previously the `jira__daily_field_history` and `jira__issue_enhanced` models allowed for users to leverage the `issue_field_history_columns` to bring through custom `field_id`s. However, the `field_id` was not very intuitive to report off. Therefore, the package has been updated to bring through the `field_name` values in the variable and persist through to the final models. ([#54](https://github.com/fivetran/dbt_jira/pull/54))
411
- Please note, if you leveraged this variable in the past then you will want to update the `field_id` (customfield_000123) to be the `field_name` (Cool Custom Field) now. Further, a `dbt run --full-refresh` will be required as well.
512

613
## Features
714
- Multi-select fields that are populated within the `jira__daily_issue_field_history` and `jira__issue_enhanced` models are automatically joined with `stg_jira__field_option` to ensure the field names are populated. ([#54](https://github.com/fivetran/dbt_jira/pull/54))
15+
816
# dbt_jira v0.7.0
917
🎉 dbt v1.0.0 Compatibility 🎉
1018
## 🚨 Breaking Changes 🚨

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ config-version: 2
9292
9393
vars:
9494
jira_using_sprints: false # Disable if you do not have the sprint table, or if you do not want sprint related metrics reported
95-
jira_using_versions: true # Disable if you do not have the version table, or if you do not want version related metrics reported
95+
jira_using_versions: false # Disable if you do not have the version table, or if you do not want version related metrics reported
9696
jira_using_components: false # Disable if you do not have the component table, or if you do not want component related metrics reported
97+
jira_using_priorities: false # disable if you are not using priorities in Jira
9798
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.
9899
```
99100

dbt_project.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'jira'
2-
version: '0.8.0'
2+
version: '0.8.1'
33
config-version: 2
44
require-dbt-version: [">=1.0.0", "<2.0.0"]
55

@@ -28,6 +28,7 @@ vars:
2828
jira_include_comments: true # 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.
2929
jira_using_sprints: true # disable if you are not using sprints in Jira
3030
jira_using_versions: true # disable if you are not using versions in Jira
31+
jira_using_priorities: true # disable if you are not using priorities in Jira
3132
jira_issue_history_buffer: 1 # in months
3233

3334
models:

integration_tests/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'jira_integration_tests'
2-
version: '0.8.0'
2+
version: '0.8.1'
33
config-version: 2
44
profile: 'integration_tests'
55

models/intermediate/int_jira__issue_join.sql

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ resolution as (
3535
from {{ var('resolution') }}
3636
),
3737

38+
{% if var('jira_using_priorities', True) %}
3839
priority as (
3940

4041
select *
4142
from {{ var('priority') }}
4243
),
44+
{% endif %}
4345

4446
{% if var('jira_using_sprints', True) %}
4547
issue_sprint as (
@@ -82,7 +84,9 @@ join_issue as (
8284
,status.status_name as current_status
8385
,status_category.status_category_name as current_status_category
8486
,resolution.resolution_name as resolution_type
87+
{% if var('jira_using_priorities', True) %}
8588
,priority.priority_name as current_priority
89+
{% endif %}
8690

8791
{% if var('jira_using_sprints', True) %}
8892
,issue_sprint.sprint_id
@@ -115,7 +119,9 @@ join_issue as (
115119
left join status on status.status_id = issue.status_id
116120
left join status_category on status.status_category_id = status_category.status_category_id
117121
left join resolution on resolution.resolution_id = issue.resolution_id
122+
{% if var('jira_using_priorities', True) %}
118123
left join priority on priority.priority_id = issue.priority_id
124+
{% endif %}
119125
left join issue_assignments_and_resolutions on issue_assignments_and_resolutions.issue_id = issue.issue_id
120126

121127
{% if var('jira_using_versions', True) %}
@@ -132,4 +138,4 @@ join_issue as (
132138
)
133139

134140
select *
135-
from join_issue
141+
from join_issue

packages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
22
- package: fivetran/jira_source
3-
version: [">=0.4.0", "<0.5.0"]
3+
version: [">=0.4.0", "<0.5.0"]

0 commit comments

Comments
 (0)