Skip to content

Commit c65f6ce

Browse files
Turn off default httpavailabilitystrategy for source-zendesk-support (GA) (#22027)
* Turn off default for source-zendesk-support (GA) * Update streams.py * Update streams.py * Update zendesk-support.md * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 09421ce commit c65f6ce

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@
20152015
- name: Zendesk Support
20162016
sourceDefinitionId: 79c1aa37-dae3-42ae-b333-d1c105477715
20172017
dockerRepository: airbyte/source-zendesk-support
2018-
dockerImageTag: 0.2.20
2018+
dockerImageTag: 0.2.21
20192019
documentationUrl: https://docs.airbyte.com/integrations/sources/zendesk-support
20202020
icon: zendesk-support.svg
20212021
sourceType: api

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16432,7 +16432,7 @@
1643216432
path_in_connector_config:
1643316433
- "credentials"
1643416434
- "client_secret"
16435-
- dockerImage: "airbyte/source-zendesk-support:0.2.20"
16435+
- dockerImage: "airbyte/source-zendesk-support:0.2.21"
1643616436
spec:
1643716437
documentationUrl: "https://docs.airbyte.com/integrations/sources/zendesk-support"
1643816438
connectionSpecification:

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

Lines changed: 1 addition & 1 deletion
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.20
28+
LABEL io.airbyte.version=0.2.21
2929
LABEL io.airbyte.name=airbyte/source-zendesk-support

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import pytz
2222
import requests
2323
from airbyte_cdk.models import SyncMode
24+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
2425
from airbyte_cdk.sources.streams.http import HttpStream
2526
from airbyte_cdk.sources.streams.http.auth.core import HttpAuthenticator
2627
from airbyte_cdk.sources.streams.http.exceptions import DefaultBackoffException
@@ -116,6 +117,10 @@ def __init__(self, subdomain: str, start_date: str, ignore_pagination: bool = Fa
116117
self._subdomain = subdomain
117118
self._ignore_pagination = ignore_pagination
118119

120+
@property
121+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
122+
return None
123+
119124
def backoff_time(self, response: requests.Response) -> Union[int, float]:
120125
"""
121126
The rate limit is 700 requests per minute

docs/integrations/sources/zendesk-support.md

Lines changed: 1 addition & 0 deletions
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.21` | 2023-01-27 | [22027](https://github.com/airbytehq/airbyte/pull/22027) | Set `AvailabilityStrategy` for streams explicitly to `None` |
6364
| `0.2.20` | 2022-12-28 | [20900](https://github.com/airbytehq/airbyte/pull/20900) | Remove synchronous time.sleep, add logging, reduce backoff time |
6465
| `0.2.19` | 2022-12-09 | [19967](https://github.com/airbytehq/airbyte/pull/19967) | Fix reading response for more than 100k records |
6566
| `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 commit comments

Comments
 (0)