From 4f22cb76034bd6da59ea936f29c1562146be7dd9 Mon Sep 17 00:00:00 2001 From: erohmensing Date: Wed, 25 Jan 2023 16:59:54 -0600 Subject: [PATCH 1/4] Turn off default for source-recharge (GA) --- airbyte-integrations/connectors/source-recharge/Dockerfile | 2 +- .../connectors/source-recharge/source_recharge/api.py | 5 +++++ docs/integrations/sources/recharge.md | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-recharge/Dockerfile b/airbyte-integrations/connectors/source-recharge/Dockerfile index 69848f6bd9390..bc55a801d19bf 100644 --- a/airbyte-integrations/connectors/source-recharge/Dockerfile +++ b/airbyte-integrations/connectors/source-recharge/Dockerfile @@ -12,5 +12,5 @@ RUN pip install . ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.2.4 +LABEL io.airbyte.version=0.2.5 LABEL io.airbyte.name=airbyte/source-recharge diff --git a/airbyte-integrations/connectors/source-recharge/source_recharge/api.py b/airbyte-integrations/connectors/source-recharge/source_recharge/api.py index 73627d359a7f7..1f40707270462 100644 --- a/airbyte-integrations/connectors/source-recharge/source_recharge/api.py +++ b/airbyte-integrations/connectors/source-recharge/source_recharge/api.py @@ -10,6 +10,7 @@ import requests from airbyte_cdk.sources.streams.http import HttpStream from airbyte_cdk.sources.utils.transform import TransformConfig, TypeTransformer +from airbyte_cdk.sources.streams import AvailabilityStrategy class RechargeStream(HttpStream, ABC): @@ -28,6 +29,10 @@ class RechargeStream(HttpStream, ABC): def data_path(self): return self.name + @property + def availability_strategy(self) -> Optional["AvailabilityStrategy"]: + return None + def path( self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None ) -> str: diff --git a/docs/integrations/sources/recharge.md b/docs/integrations/sources/recharge.md index 609aff02de69b..6fcb6e3418f9e 100644 --- a/docs/integrations/sources/recharge.md +++ b/docs/integrations/sources/recharge.md @@ -75,7 +75,8 @@ The Recharge connector should gracefully handle Recharge API limitations under n ## Changelog | Version | Date | Pull Request | Subject | -| :------ | :--------- | :------------------------------------------------------- | :---------------------------------------------------------------------------------------- | +|:--------| :--------- | :------------------------------------------------------- | :---------------------------------------------------------------------------------------- | +| 0.2.5 | TODO | [21888](https://github.com/airbytehq/airbyte/pull/21888) | Set `AvailabilityStrategy` for streams explicitly to `None` | | 0.2.4 | 2022-10-11 | [17822](https://github.com/airbytehq/airbyte/pull/17822) | Do not parse JSON in `should_retry` | | 0.2.3 | 2022-10-11 | [17822](https://github.com/airbytehq/airbyte/pull/17822) | Do not parse JSON in `should_retry` | | 0.2.2 | 2022-10-05 | [17608](https://github.com/airbytehq/airbyte/pull/17608) | Skip stream if we receive 403 error | From 5585bf756b8e8649054030ed4e199f5dc066262f Mon Sep 17 00:00:00 2001 From: Ella Rohm-Ensing Date: Fri, 27 Jan 2023 17:29:45 -0500 Subject: [PATCH 2/4] Update api.py --- .../connectors/source-recharge/source_recharge/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/source-recharge/source_recharge/api.py b/airbyte-integrations/connectors/source-recharge/source_recharge/api.py index 1f40707270462..bff8cf65247f4 100644 --- a/airbyte-integrations/connectors/source-recharge/source_recharge/api.py +++ b/airbyte-integrations/connectors/source-recharge/source_recharge/api.py @@ -8,9 +8,9 @@ import pendulum import requests +from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy from airbyte_cdk.sources.streams.http import HttpStream from airbyte_cdk.sources.utils.transform import TransformConfig, TypeTransformer -from airbyte_cdk.sources.streams import AvailabilityStrategy class RechargeStream(HttpStream, ABC): From d36ddf801716176bb7cdcfb4e438062bca22a3a4 Mon Sep 17 00:00:00 2001 From: Ella Rohm-Ensing Date: Fri, 27 Jan 2023 17:30:12 -0500 Subject: [PATCH 3/4] Update recharge.md --- docs/integrations/sources/recharge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/sources/recharge.md b/docs/integrations/sources/recharge.md index 6fcb6e3418f9e..20ca424b13d1a 100644 --- a/docs/integrations/sources/recharge.md +++ b/docs/integrations/sources/recharge.md @@ -76,7 +76,7 @@ The Recharge connector should gracefully handle Recharge API limitations under n | Version | Date | Pull Request | Subject | |:--------| :--------- | :------------------------------------------------------- | :---------------------------------------------------------------------------------------- | -| 0.2.5 | TODO | [21888](https://github.com/airbytehq/airbyte/pull/21888) | Set `AvailabilityStrategy` for streams explicitly to `None` | +| 0.2.5 | 2023-01-27 | [22021](https://github.com/airbytehq/airbyte/pull/22021) | Set `AvailabilityStrategy` for streams explicitly to `None` | | 0.2.4 | 2022-10-11 | [17822](https://github.com/airbytehq/airbyte/pull/17822) | Do not parse JSON in `should_retry` | | 0.2.3 | 2022-10-11 | [17822](https://github.com/airbytehq/airbyte/pull/17822) | Do not parse JSON in `should_retry` | | 0.2.2 | 2022-10-05 | [17608](https://github.com/airbytehq/airbyte/pull/17608) | Skip stream if we receive 403 error | From 09459f7e08dc5141634d3365d066d87b72c3eca4 Mon Sep 17 00:00:00 2001 From: Octavia Squidington III Date: Sat, 28 Jan 2023 01:44:02 +0000 Subject: [PATCH 4/4] auto-bump connector version --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-config/init/src/main/resources/seed/source_specs.yaml | 2 +- 2 files changed, 2 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 dc095f42edbbe..28a1be5bc77c5 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -1442,7 +1442,7 @@ - name: Recharge sourceDefinitionId: 45d2e135-2ede-49e1-939f-3e3ec357a65e dockerRepository: airbyte/source-recharge - dockerImageTag: 0.2.4 + dockerImageTag: 0.2.5 documentationUrl: https://docs.airbyte.com/integrations/sources/recharge icon: recharge.svg sourceType: api 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 d7430a17d3214..c463b7d71d7e2 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -12327,7 +12327,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-recharge:0.2.4" +- dockerImage: "airbyte/source-recharge:0.2.5" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/recharge" connectionSpecification: