Skip to content

Commit d3ad025

Browse files
Merge pull request #7 from fivetran/satisfaction-removal
satisfaction removal commit
2 parents 8e3b9e9 + 095b5ba commit d3ad025

8 files changed

+6
-151
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@ vars:
3333
```
3434
3535
### Disabling Models
36-
This package takes into consideration that not every Zendesk account utilizes the `schedule`, `domain_name`, `user_tag`, `organization_tag`, `ticket_form_history`, or `satisfaction_rating` features, and allows you to disable the corresponding functionality. By default, all variables' values are assumed to be `true`. Add variables for only the tables you want to disable:
36+
This package takes into consideration that not every Zendesk account utilizes the `schedule`, `domain_name`, `user_tag`, `organization_tag`, or `ticket_form_history` features, and allows you to disable the corresponding functionality. By default, all variables' values are assumed to be `true`. Add variables for only the tables you want to disable:
3737
```yml
3838
# dbt_project.yml
3939
4040
...
4141
vars:
42-
using_schedules: False
43-
using_domain_names: False
44-
using_user_tags: False
45-
using_ticket_form_history: False
46-
using_organization_tags: False
47-
using_satisfaction_ratings: False
42+
using_schedules: False #Disable if you are not using schedules
43+
using_domain_names: False #Disable if you are not using domain names
44+
using_user_tags: False #Disable if you are not using user tags
45+
using_ticket_form_history: False #Disable if you are not using ticket form history
46+
using_organization_tags: False #Disable if you are not using organization tags
4847
```
4948

5049
## Contributions

integration_tests/data/satisfaction_rating_data.csv

Lines changed: 0 additions & 16 deletions
This file was deleted.

integration_tests/dbt_project.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ vars:
2222
ticket_form_history: "{{ ref('ticket_form_history_data') }}"
2323
domain_name: "{{ ref('domain_name_data') }}"
2424
organization_tag: "{{ fivetran_utils.snowflake_seed_data('organization_tag_data') }}"
25-
satisfaction_rating: "{{ ref('satisfaction_rating_data') }}"
2625
user: "{{ fivetran_utils.snowflake_seed_data('user_data') }}"
2726

2827
using_schedules: True
2928
using_domain_names: True
3029
using_user_tags: True
3130
using_ticket_form_history: True
3231
using_organization_tags: True
33-
using_satisfaction_ratings: True
3432

3533
seeds:
3634
+quote_columns: "{{ true if target.type == 'redshift' else false }}"
@@ -113,10 +111,6 @@ seeds:
113111
+column_types:
114112
organization_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
115113
_fivetran_synced: timestamp
116-
satisfaction_rating_data:
117-
+column_types:
118-
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
119-
_fivetran_synced: timestamp
120114
user_data_snowflake:
121115
+column_types:
122116
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"

macros/get_satisfaction_rating_columns.sql

Lines changed: 0 additions & 20 deletions
This file was deleted.

models/src_zendesk.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -214,30 +214,6 @@ sources:
214214
- name: ticket_restriction
215215
description: Specifies which tickets the user has access to. Possible values are organization, groups, assigned, requested and null
216216

217-
- name: satisfaction_rating
218-
description: If you have enabled satisfaction ratings for your account, this table allows you to quickly retrieve all ratings.
219-
columns:
220-
- name: id
221-
description: Automatically assigned upon creation
222-
- name: ticket_id
223-
description: The id of ticket being rated
224-
- name: requester_id
225-
description: The id of ticket requester submitting the rating
226-
- name: assignee_id
227-
description: The id of agent assigned to at the time of rating
228-
- name: group_id
229-
description: The id of group assigned to at the time of rating
230-
- name: score
231-
description: The rating "offered", "unoffered", "good" or "bad"
232-
- name: created_at
233-
description: The time the satisfaction rating got created
234-
- name: updated_at
235-
description: The time the satisfaction rating got updated
236-
- name: comment
237-
description: The comment received with this rating, if available
238-
- name: reason
239-
description: The reason for a bad rating given by the requester in a follow-up question
240-
241217
- name: schedule
242218
description: The support schedules created with different business hours and holidays.
243219
freshness: null

models/stg_zendesk.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -189,32 +189,6 @@ models:
189189
- name: ticket_restriction
190190
description: Specifies which tickets the user has access to. Possible values are organization, groups, assigned, requested and null
191191

192-
- name: stg_zendesk__satisfaction_rating
193-
description: If you have enabled satisfaction ratings for your account, this table allows you to quickly retrieve all ratings.
194-
columns:
195-
- name: satifaction_rating_id
196-
description: Automatically assigned upon creation
197-
tests:
198-
- not_null
199-
- name: ticket_id
200-
description: The id of ticket being rated
201-
- name: requester_id
202-
description: The id of ticket requester submitting the rating
203-
- name: assignee_id
204-
description: The id of agent assigned to at the time of rating
205-
- name: group_id
206-
description: The id of group assigned to at the time of rating
207-
- name: score
208-
description: The rating "offered", "unoffered", "good" or "bad"
209-
- name: created_at
210-
description: The time the satisfaction rating got created
211-
- name: updated_at
212-
description: The time the satisfaction rating got updated
213-
- name: comment
214-
description: The comment received with this rating, if available
215-
- name: reason
216-
description: The reason for a bad rating given by the requester in a follow-up question
217-
218192
- name: stg_zendesk__schedule
219193
description: The support schedules created with different business hours and holidays.
220194
columns:

models/stg_zendesk__satisfaction_rating.sql

Lines changed: 0 additions & 47 deletions
This file was deleted.

models/tmp/stg_zendesk__satisfaction_rating_tmp.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)