Skip to content

Commit 7b41b31

Browse files
Merge pull request #58 from fivetran/release/v0.8.1
[Release] Version 0.8.1: Current_timestamp macro updates, pull request join fix
2 parents e34740a + 2c15471 commit 7b41b31

16 files changed

Lines changed: 205 additions & 51 deletions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ logs/
55
keyfile.json
66
.DS_Store
77
develop/
8-
dbt_packages/
8+
dbt_packages/
9+
env/
10+
package-lock.yml

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
# dbt_github v0.8.1
2+
This release contains the following updates:
3+
4+
## Bug Fixes
5+
- Replaced the deprecated `dbt_current_timestamp.backcompat()` macro with the up-to-date `dbt_current_timestamp`. The deprecated macro occasionally returned the system timezone instead of the expected UTC timestamp, leading to incorrect downstream metrics like negative values for `days_issue_open`. [PR #58](https://github.com/fivetran/dbt_github/pull/58)
6+
- Updated the join type in `int_github__pull_request_times` to ensure pull requests without explicitly requested reviewers are no longer dropped. [PR #57](https://github.com/fivetran/dbt_github/pull/57)
7+
8+
## Under the Hood:
9+
- Added consistency tests for `github__issues` and `github__pull_requests` to ensure new changes don't change the output of either model. (Some measures are omitted from the comparison tests, since they're measures based on the `current_timestamp`, which differs between validation test runs). [PR #58](https://github.com/fivetran/dbt_github/pull/58)
10+
11+
## Contributors
12+
- [@samkessaram](https://github.com/samkessaram) ([PR #57](https://github.com/fivetran/dbt_github/pull/57))
13+
114
# dbt_github v0.8.0
2-
[PR #53](https://github.com/fivetran/dbt_jira/dbt_github/53) contains the following updates:
15+
[PR #53](https://github.com/fivetran/dbt_github/pull/53) contains the following updates:
316

417
## 🚨 Breaking Change 🚨
518
- For consistency with other Fivetran packages, added default target schemas in `dbt_project.yml`. This is a breaking change since the model outputs will now be stored in a schema called `<your target schema>_github` by default. You will need to update any of your downstream use cases to point to the new schema.
@@ -80,6 +93,7 @@
8093

8194
## Contributors
8295
- [@jackiexsun](https://github.com/jackiexsun) ([#31](https://github.com/fivetran/dbt_github/pull/31))
96+
8397
# dbt_github v0.5.0
8498
## 🚨 Breaking Changes 🚨
8599
- The addition of the `label` source model results in the reference within `int_github__issue_label` to break. As a result, with the addition of upstream changes within `dbt_github_source` and the new `int_github__issue_label_join` model this issue has been resolved. ([#26](https://github.com/fivetran/dbt_github/pull/26))

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config-version: 2
22
name: 'github'
3-
version: '0.8.0'
3+
version: '0.8.1'
44
require-dbt-version: [">=1.3.0", "<2.0.0"]
55
models:
66
github:

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/index.html

Lines changed: 5 additions & 32 deletions
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/run_results.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

integration_tests/ci/sample.profiles.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ integration_tests:
1616
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
1717
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
1818
port: 5439
19-
schema: github_integration_tests
19+
schema: github_integration_tests_1
2020
threads: 8
2121
bigquery:
2222
type: bigquery
2323
method: service-account-json
2424
project: 'dbt-package-testing'
25-
schema: github_integration_tests
25+
schema: github_integration_tests_1
2626
threads: 8
2727
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
2828
snowflake:
@@ -33,7 +33,7 @@ integration_tests:
3333
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
3434
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
3535
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
36-
schema: github_integration_tests
36+
schema: github_integration_tests_1
3737
threads: 8
3838
postgres:
3939
type: postgres
@@ -42,13 +42,13 @@ integration_tests:
4242
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
4343
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
4444
port: 5432
45-
schema: github_integration_tests
45+
schema: github_integration_tests_1
4646
threads: 8
4747
databricks:
4848
catalog: null
4949
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
5050
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
51-
schema: github_integration_tests
51+
schema: github_integration_tests_1
5252
threads: 2
5353
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
5454
type: databricks

integration_tests/dbt_project.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: 'github_integration_tests'
2-
version: '0.8.0'
2+
version: '0.8.1'
33
config-version: 2
44
profile: 'integration_tests'
55
vars:
66
github_source:
7-
github_schema: github_integration_tests
7+
github_schema: github_integration_tests_1
88
github_issue_assignee_identifier: "github_issue_assignee_data"
99
github_issue_closed_history_identifier: "github_issue_closed_history_data"
1010
github_issue_comment_identifier: "github_issue_comment_data"
@@ -19,6 +19,10 @@ vars:
1919
github_requested_reviewer_history_identifier: "github_requested_reviewer_history_data"
2020
github_team_identifier: "github_team_data"
2121
github_user_identifier: "github_user_data"
22+
23+
models:
24+
+schema: "github_{{ var('directed_schema','dev') }}"
25+
2226
seeds:
2327
github_integration_tests:
2428
+quote_columns: "{{ true if target.type == 'redshift' else false }}"

integration_tests/packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
packages:
2-
- local: ../
2+
- local: ../

0 commit comments

Comments
 (0)