Skip to content

Commit 8d5423a

Browse files
Turn off default httpavailabilitystrategy for source-freshdesk (GA) (#22004)
* Turn off default for source-freshdesk (GA) * Update streams.py * Update streams.py * Update freshdesk.md * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent f6d8bb7 commit 8d5423a

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
@@ -556,7 +556,7 @@
556556
- name: Freshdesk
557557
sourceDefinitionId: ec4b9503-13cb-48ab-a4ab-6ade4be46567
558558
dockerRepository: airbyte/source-freshdesk
559-
dockerImageTag: 2.0.0
559+
dockerImageTag: 2.0.1
560560
documentationUrl: https://docs.airbyte.com/integrations/sources/freshdesk
561561
icon: freshdesk.svg
562562
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
@@ -4514,7 +4514,7 @@
45144514
supportsNormalization: false
45154515
supportsDBT: false
45164516
supported_destination_sync_modes: []
4517-
- dockerImage: "airbyte/source-freshdesk:2.0.0"
4517+
- dockerImage: "airbyte/source-freshdesk:2.0.1"
45184518
spec:
45194519
documentationUrl: "https://docs.airbyte.com/integrations/sources/freshdesk"
45204520
connectionSpecification:

airbyte-integrations/connectors/source-freshdesk/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ COPY source_freshdesk ./source_freshdesk
3434
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3535
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3636

37-
LABEL io.airbyte.version=2.0.0
37+
LABEL io.airbyte.version=2.0.1
3838
LABEL io.airbyte.name=airbyte/source-freshdesk

airbyte-integrations/connectors/source-freshdesk/source_freshdesk/streams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import pendulum
1212
import requests
1313
from airbyte_cdk.models import SyncMode
14+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
1415
from airbyte_cdk.sources.streams.core import IncrementalMixin
1516
from airbyte_cdk.sources.streams.http import HttpStream, HttpSubStream
1617
from airbyte_cdk.sources.utils.transform import TransformConfig, TypeTransformer
@@ -46,6 +47,10 @@ def __init__(self, authenticator: AuthBase, config: Mapping[str, Any], *args, **
4647
def url_base(self) -> str:
4748
return parse.urljoin(f"https://{self.domain.rstrip('/')}", "/api/v2/")
4849

50+
@property
51+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
52+
return None
53+
4954
def backoff_time(self, response: requests.Response) -> Optional[float]:
5055
if response.status_code == requests.codes.too_many_requests:
5156
return float(response.headers.get("Retry-After", 0))

docs/integrations/sources/freshdesk.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The Freshdesk connector should not run into Freshdesk API limitations under norm
6767

6868
| Version | Date | Pull Request | Subject |
6969
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------|
70+
| 2.0.1 | 2023-01-27 | [21888](https://github.com/airbytehq/airbyte/pull/21888) | Set `AvailabilityStrategy` for streams explicitly to `None` |
7071
| 2.0.0 | 2022-12-20 | [20416](https://github.com/airbytehq/airbyte/pull/20416) | Fix `SlaPolicies` stream schema |
7172
| 1.0.0 | 2022-11-16 | [19496](https://github.com/airbytehq/airbyte/pull/19496) | Fix `Contacts` stream schema |
7273
| 0.3.8 | 2022-11-11 | [19349](https://github.com/airbytehq/airbyte/pull/19349) | Do not rely on response.json() when deciding to retry a request |

0 commit comments

Comments
 (0)