Skip to content

Commit ccda38b

Browse files
authored
Source zendesk support: bugfix transform "-" to null (#19792)
Signed-off-by: Sergey Chvalyuk <[email protected]>
1 parent a695b41 commit ccda38b

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@
18271827
- name: Zendesk Support
18281828
sourceDefinitionId: 79c1aa37-dae3-42ae-b333-d1c105477715
18291829
dockerRepository: airbyte/source-zendesk-support
1830-
dockerImageTag: 0.2.16
1830+
dockerImageTag: 0.2.17
18311831
documentationUrl: https://docs.airbyte.com/integrations/sources/zendesk-support
18321832
icon: zendesk.svg
18331833
sourceType: api

airbyte-config/init/src/main/resources/seed/source_specs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15863,7 +15863,7 @@
1586315863
path_in_connector_config:
1586415864
- "credentials"
1586515865
- "client_secret"
15866-
- dockerImage: "airbyte/source-zendesk-support:0.2.16"
15866+
- dockerImage: "airbyte/source-zendesk-support:0.2.17"
1586715867
spec:
1586815868
documentationUrl: "https://docs.airbyte.com/integrations/sources/zendesk-support"
1586915869
connectionSpecification:

airbyte-integrations/connectors/source-zendesk-support/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ COPY source_zendesk_support ./source_zendesk_support
2525
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
2626
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
2727

28-
LABEL io.airbyte.version=0.2.16
28+
LABEL io.airbyte.version=0.2.17
2929
LABEL io.airbyte.name=airbyte/source-zendesk-support

airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py

+7
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ class TicketComments(SourceZendeskSupportTicketEventsExportStream):
486486
sideload_param = "comment_events"
487487
event_type = "Comment"
488488

489+
def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
490+
for record in super().parse_response(response, **kwargs):
491+
# https://github.com/airbytehq/oncall/issues/1001
492+
if type(record.get("via")) is not dict:
493+
record["via"] = None
494+
yield record
495+
489496

490497
class Groups(SourceZendeskSupportStream):
491498
"""Groups stream: https://developer.zendesk.com/api-reference/ticketing/groups/groups/"""

docs/integrations/sources/zendesk-support.md

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ The Zendesk connector ideally should not run into Zendesk API limitations under
6060

6161
| Version | Date | Pull Request | Subject |
6262
| :------- | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
63+
| `0.2.17` | 2022-11-24 | [19792](https://github.com/airbytehq/airbyte/pull/19792) | Transform `ticket_comments.via` "-" to null |
6364
| `0.2.16` | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states. |
6465
| `0.2.15` | 2022-08-03 | [15233](https://github.com/airbytehq/airbyte/pull/15233) | Added `subscription plan` check on `streams discovery` step to remove streams that are not accessible for fetch due to subscription plan restrictions |
6566
| `0.2.14` | 2022-07-27 | [15036](https://github.com/airbytehq/airbyte/pull/15036) | Convert `ticket_audits.previous_value` values to string |

0 commit comments

Comments
 (0)