Skip to content

Commit

Permalink
Merge pull request #101 from fivetran/fixes/mainfest-rendering
Browse files Browse the repository at this point in the history
fixes/mainfest-rendering
  • Loading branch information
fivetran-joemarkiewicz authored Jun 27, 2023
2 parents e48922b + 3e8cbce commit 6870431
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# dbt_zendesk v0.10.2
[PR #101](https://github.com/fivetran/dbt_zendesk/pull/101) includes the following updates:
## Fixes
- Updated the `group` variable in the `dbt_project.yml` to have properly closed quotes within the variable declaration.
- Adjusted the `in_zendesk__calendar_spine` to set the return result of `dbt.current_timestamp_backcompat()` as a variable. This ensures that when the variable is being called within the model it can properly establish a dependency within the manifest.

# dbt_zendesk v0.10.1
## Bug Fixes
- Modified the `int_zendesk__ticket_schedules` model to have the execute statement reference the source `schedule` table as opposed to the `stg_zendesk__schedule` model so the package may successfully compile before being run for the first time. ([#90](https://github.com/fivetran/dbt_zendesk/pull/90))
Expand Down
4 changes: 2 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'zendesk'
version: '0.10.1'
version: '0.10.2'

config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
Expand Down Expand Up @@ -29,7 +29,7 @@ vars:
zendesk:
ticket_field_history_columns: ['assignee_id', 'status', 'priority']
ticket_field_history_updater_columns: []
group: "{{ ref('stg_zendesk__group) }}"
group: "{{ ref('stg_zendesk__group') }}"
brand: "{{ ref('stg_zendesk__brand') }}"
domain_name: "{{ ref('stg_zendesk__domain_name') }}"
organization_tag: "{{ ref('stg_zendesk__organization_tag') }}"
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'zendesk_integration_tests'
version: '0.10.1'
version: '0.10.2'


profile: 'integration_tests'
Expand Down
3 changes: 2 additions & 1 deletion models/utils/int_zendesk__calendar_spine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
with spine as (

{% if execute %}
{% set current_ts = dbt.current_timestamp_backcompat() %}
{% set first_date_query %}
select min( created_at ) as min_date from {{ source('zendesk', 'ticket') }}
-- by default take all the data
where cast(created_at as date) >= {{ dbt.dateadd('year', - var('ticket_field_history_timeframe_years', 50), dbt.current_timestamp_backcompat() ) }}
where cast(created_at as date) >= {{ dbt.dateadd('year', - var('ticket_field_history_timeframe_years', 50), current_ts ) }}
{% endset %}

{% set first_date = run_query(first_date_query).columns[0][0]|string %}
Expand Down

0 comments on commit 6870431

Please sign in to comment.