Skip to content

Commit

Permalink
update changelog and add identifers
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-catfritz committed Nov 1, 2022
1 parent 038fa0f commit a83a061
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dbt_github_source v0.6.0
## 🚨 Breaking Changes 🚨:
[PR #26](https://github.com/fivetran/dbt_github_source/pull/26) includes the following breaking changes:
## 🚨 Breaking Changes 🚨:
- Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically `{{ dbt_utils.<macro> }}` have been updated to `{{ dbt.<macro> }}` for the below macros:
- `any_value`
- `bool_or`
Expand Down Expand Up @@ -35,6 +35,11 @@
- `dbt.current_timestamp_backcompat`
- `dbt.current_timestamp_in_utc_backcompat`
- Dependencies on `fivetran/fivetran_utils` have been upgraded, previously `[">=0.3.0", "<0.4.0"]` now `[">=0.4.0", "<0.5.0"]`.

## 🎉 Documentation and Feature Updates 🎉:
- Updated README documentation for easier navigation and dbt package setup.
- Included the `github_[source_table_name]_identifier` variables for easier flexibility of the package models to refer to differently named sources tables.

# dbt_github_source v0.5.0

## 🚨 Breaking Changes 🚨
Expand Down
28 changes: 14 additions & 14 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ config-version: 2
profile: 'integration_tests'
vars:
github_source:
issue_assignee: "{{ ref('github_issue_assignee_data') }}"
issue_closed_history: "{{ ref('github_issue_closed_history_data') }}"
issue_comment: "{{ ref('github_issue_comment_data') }}"
issue_label: "{{ ref('github_issue_label_data') }}"
label: "{{ ref('github_label_data') }}"
issue_merged: "{{ ref('github_issue_merged_data') }}"
issue: "{{ ref('github_issue_data') }}"
pull_request_review: "{{ ref('github_pull_request_review_data') }}"
pull_request: "{{ ref('github_pull_request_data') }}"
repository: "{{ ref('github_repository_data') }}"
repo_team: "{{ ref('github_repo_team_data') }}"
requested_reviewer_history: "{{ ref('github_requested_reviewer_history_data') }}"
team: "{{ ref('github_team_data') }}"
user: "{{ ref('github_user_data') }}"
github_schema: github_source_integration_tests
github_issue_assignee_identifier: "github_issue_assignee_data"
github_issue_closed_history_identifier: "github_issue_closed_history_data"
github_issue_comment_identifier: "github_issue_comment_data"
github_issue_label_identifier: "github_issue_label_data"
github_label_identifier: "github_label_data"
github_issue_merged_identifier: "github_issue_merged_data"
github_issue_identifier: "github_issue_data"
github_pull_request_review_identifier: "github_pull_request_review_data"
github_pull_request_identifier: "github_pull_request_data"
github_repository_identifier: "github_repository_data"
github_repo_team_identifier: "github_repo_team_data"
github_requested_reviewer_history_identifier: "github_requested_reviewer_history_data"
github_team_identifier: "github_team_data"
github_user_identifier: "github_user_data"
seeds:
+quote_columns: "{{ true if target.type == 'redshift' else false }}"
github_source_integration_tests:
Expand Down
14 changes: 14 additions & 0 deletions models/src_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sources:
tables:
- name: issue_assignee
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_assignee_identifier', 'issue_assignee')}}"
description: Table with the current user(s) assigned to an issue
columns:
- name: issue_id
Expand All @@ -22,6 +23,7 @@ sources:
description: Foreign key that references the user table

- name: label
identifier: "{{ var('github_label_identifier', 'label')}}"
description: Table that contains labels that are used across your Github account within individual repositories.
freshness: null
columns:
Expand All @@ -42,6 +44,7 @@ sources:

- name: issue_closed_history
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_closed_history_identifier', 'issue_closed_history')}}"
description: Table to track when an issue is closed or re-opened
columns:
- name: issue_id
Expand All @@ -53,6 +56,7 @@ sources:

- name: issue_label
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_label_identifier', 'issue_label')}}"
description: The current labels attached to an issue
columns:
- name: issue_id
Expand All @@ -62,6 +66,7 @@ sources:

- name: issue_comment
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_comment_identifier', 'issue_comment')}}"
description: Table that contains comments made on issues
columns:
- name: id
Expand All @@ -73,6 +78,7 @@ sources:

- name: issue_merged
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_merged_identifier', 'issue_merged')}}"
description: Table that tracks when an issue (always a pull request) is merged
columns:
- name: issue_id
Expand All @@ -82,6 +88,7 @@ sources:

- name: issue
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_issue_identifier', 'issue')}}"
description: Table that contains 1 entry for every issue created. Pull Requests also create an entry in this table, and there is a boolean field to determine if an entry is a pull request.
columns:
- name: id
Expand Down Expand Up @@ -113,6 +120,7 @@ sources:

- name: pull_request_review
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_pull_request_review_identifier', 'pull_request_review')}}"
description: Table containing reviews made to pull requests
columns:
- name: id
Expand All @@ -128,6 +136,7 @@ sources:

- name: pull_request
loaded_at_field: _fivetran_synced
dentifier: "{{ var('github_pull_request_identifier', 'pull_request')}}"
description: A special type of issue that is created when a user wants to merge one branch of code into another
columns:
- name: id
Expand All @@ -140,6 +149,7 @@ sources:
description: Foreign key that references the user table, referencing who created the current branch.

- name: repo_team
identifier: "{{ var('github_repo_team_identifier', 'repo_team')}}"
description: Table representing the mapping relationships between repositories and teams
meta:
is_enabled: "{{ var('github__using_repo_team', true) }}"
Expand All @@ -150,6 +160,7 @@ sources:
description: Reference to the respective team for the record.

- name: repository
identifier: "{{ var('github_repository_identifier', 'repository')}}"
description: Table representing the file structure of a directory under git control
freshness: null
columns:
Expand All @@ -164,6 +175,7 @@ sources:

- name: requested_reviewer_history
loaded_at_field: _fivetran_synced
identifier: "{{ var('github_requested_reviewer_history_identifier', 'requested_reviewer_history')}}"
description: Table containing when a user requests another user to review a pull request
columns:
- name: pull_request_id
Expand All @@ -176,6 +188,7 @@ sources:
description: Boolean variable indicating if the requester was removed from the PR (true) or added to the PR (false).

- name: team
identifier: "{{ var('github_team_identifier', 'team')}}"
description: Table containing teams and team details
columns:
- name: id
Expand All @@ -192,6 +205,7 @@ sources:
description: Url friendly version of the team name.

- name: user
identifier: "{{ var('github_user_identifier', 'user')}}"
description: Table representing contributors to a git project
freshness: null
columns:
Expand Down

0 comments on commit a83a061

Please sign in to comment.