Skip to content

Commit 842f66f

Browse files
Turn off default httpavailabilitystrategy for source-iterable (GA) (#22011)
* Turn off default for source-iterable (GA) * Update streams.py * Update iterable.md * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 6321365 commit 842f66f

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
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
@@ -848,7 +848,7 @@
848848
- name: Iterable
849849
sourceDefinitionId: 2e875208-0c0b-4ee4-9e92-1cb3156ea799
850850
dockerRepository: airbyte/source-iterable
851-
dockerImageTag: 0.1.22
851+
dockerImageTag: 0.1.23
852852
documentationUrl: https://docs.airbyte.com/integrations/sources/iterable
853853
icon: iterable.svg
854854
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
@@ -6881,7 +6881,7 @@
68816881
supportsNormalization: false
68826882
supportsDBT: false
68836883
supported_destination_sync_modes: []
6884-
- dockerImage: "airbyte/source-iterable:0.1.22"
6884+
- dockerImage: "airbyte/source-iterable:0.1.23"
68856885
spec:
68866886
documentationUrl: "https://docs.airbyte.com/integrations/sources/iterable"
68876887
connectionSpecification:

airbyte-integrations/connectors/source-iterable/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.1.22
15+
LABEL io.airbyte.version=0.1.23
1616
LABEL io.airbyte.name=airbyte/source-iterable

airbyte-integrations/connectors/source-iterable/source_iterable/streams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import pendulum
1313
import requests
1414
from airbyte_cdk.models import SyncMode
15+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
1516
from airbyte_cdk.sources.streams.core import package_name_from_class
1617
from airbyte_cdk.sources.streams.http import HttpStream
1718
from airbyte_cdk.sources.utils.schema_helpers import ResourceSchemaLoader
@@ -48,6 +49,10 @@ def data_field(self) -> str:
4849
:return: Default field name to get data from response
4950
"""
5051

52+
@property
53+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
54+
return None
55+
5156
def check_unauthorized_key(self, response: requests.Response) -> bool:
5257
if response.status_code == codes.UNAUTHORIZED:
5358
self.logger.warn(f"Provided API Key has not sufficient permissions to read from stream: {self.data_field}")

airbyte-integrations/connectors/source-iterable/unit_tests/test_export_adjustable_range.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
import pendulum
1313
import pytest
1414
import responses
15+
from airbyte_cdk.models import Type as MessageType
1516
from requests.exceptions import ChunkedEncodingError
1617
from source_iterable.slice_generators import AdjustableSliceGenerator
1718
from source_iterable.source import SourceIterable
1819

19-
from airbyte_cdk.models import Type as MessageType
20-
2120
TEST_START_DATE = "2020"
2221

2322

docs/integrations/sources/iterable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ The Iterable source connector supports the following [sync modes](https://docs.a
7676

7777
| Version | Date | Pull Request | Subject |
7878
|:--------|:-----------|:---------------------------------------------------------|:---------------------------------------------------------------------------|
79+
| 0.1.23 | 2023-01-27 | [22011](https://github.com/airbytehq/airbyte/pull/22011) | Set `AvailabilityStrategy` for streams explicitly to `None` |
7980
| 0.1.22 | 2022-11-30 | [19913](https://github.com/airbytehq/airbyte/pull/19913) | Replace pendulum.parse -> dateutil.parser.parse to avoid memory leak |
8081
| 0.1.21 | 2022-10-27 | [18537](https://github.com/airbytehq/airbyte/pull/18537) | Improve streams discovery |
8182
| 0.1.20 | 2022-10-21 | [18292](https://github.com/airbytehq/airbyte/pull/18292) | Better processing of 401 and 429 errors |

0 commit comments

Comments
 (0)