From 1fec0e8a5fbf73664ce5ee0b1b2045255818d10e Mon Sep 17 00:00:00 2001 From: BenoitHugonnard Date: Thu, 1 Dec 2022 09:47:06 +0100 Subject: [PATCH 1/3] :bug: Handle 429 response behavior when trying to retry --- .../source-zendesk-support/source_zendesk_support/streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py index e2ee118d8ef1..304ed7498d73 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py +++ b/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/streams.py @@ -270,7 +270,7 @@ def _retry( if original_exception: raise original_exception raise DefaultBackoffException(request=request, response=response) - if response: + if response is not None: backoff_time = self.backoff_time(response) time.sleep(max(0, int(backoff_time - response.elapsed.total_seconds()))) self.future_requests.append( From cc3b24c35fe606c8909d8f9b4639aab45a639b54 Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Fri, 9 Dec 2022 14:51:17 -0300 Subject: [PATCH 2/3] bump connector version --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- .../connectors/source-zendesk-support/Dockerfile | 2 +- docs/integrations/sources/zendesk-support.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 816fb80ddf58..830c7fd37daf 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -1871,7 +1871,7 @@ - name: Zendesk Support sourceDefinitionId: 79c1aa37-dae3-42ae-b333-d1c105477715 dockerRepository: airbyte/source-zendesk-support - dockerImageTag: 0.2.18 + dockerImageTag: 0.2.19 documentationUrl: https://docs.airbyte.com/integrations/sources/zendesk-support icon: zendesk.svg sourceType: api diff --git a/airbyte-integrations/connectors/source-zendesk-support/Dockerfile b/airbyte-integrations/connectors/source-zendesk-support/Dockerfile index a7af03fc48a7..e4f60028e1c9 100644 --- a/airbyte-integrations/connectors/source-zendesk-support/Dockerfile +++ b/airbyte-integrations/connectors/source-zendesk-support/Dockerfile @@ -25,5 +25,5 @@ COPY source_zendesk_support ./source_zendesk_support ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.2.18 +LABEL io.airbyte.version=0.2.19 LABEL io.airbyte.name=airbyte/source-zendesk-support diff --git a/docs/integrations/sources/zendesk-support.md b/docs/integrations/sources/zendesk-support.md index 37fba3121fc5..9a2789faa1c3 100644 --- a/docs/integrations/sources/zendesk-support.md +++ b/docs/integrations/sources/zendesk-support.md @@ -60,6 +60,7 @@ The Zendesk connector ideally should not run into Zendesk API limitations under | Version | Date | Pull Request | Subject | |:---------|:-----------| :------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `0.2.19` | 2022-12-09 | [19967](https://github.com/airbytehq/airbyte/pull/19967) | Fix reading response for more than 100k records | | `0.2.18` | 2022-11-29 | [19432](https://github.com/airbytehq/airbyte/pull/19432) | Revert changes from version 0.2.15, use a test read instead | | `0.2.17` | 2022-11-24 | [19792](https://github.com/airbytehq/airbyte/pull/19792) | Transform `ticket_comments.via` "-" to null | | `0.2.16` | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states. | From 4afd5c4b68a96d846ba391c1da608f492f1c92ee Mon Sep 17 00:00:00 2001 From: Octavia Squidington III Date: Fri, 9 Dec 2022 18:23:39 +0000 Subject: [PATCH 3/3] auto-bump connector version --- airbyte-config/init/src/main/resources/seed/source_specs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml index 7d174a562a60..5a8487b33337 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -16158,7 +16158,7 @@ path_in_connector_config: - "credentials" - "client_secret" -- dockerImage: "airbyte/source-zendesk-support:0.2.18" +- dockerImage: "airbyte/source-zendesk-support:0.2.19" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/zendesk-support" connectionSpecification: