Skip to content

Commit e5a41ad

Browse files
Turn off default httpavailabilitystrategy for source-stripe (GA) (#22042)
* Turn off default for source-stripe (GA) * Update stripe.md * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 5ffaadd commit e5a41ad

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
@@ -1704,7 +1704,7 @@
17041704
- name: Stripe
17051705
sourceDefinitionId: e094cb9a-26de-4645-8761-65c0c425d1de
17061706
dockerRepository: airbyte/source-stripe
1707-
dockerImageTag: 1.0.0
1707+
dockerImageTag: 1.0.1
17081708
documentationUrl: https://docs.airbyte.com/integrations/sources/stripe
17091709
icon: stripe.svg
17101710
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
@@ -14410,7 +14410,7 @@
1441014410
supportsNormalization: false
1441114411
supportsDBT: false
1441214412
supported_destination_sync_modes: []
14413-
- dockerImage: "airbyte/source-stripe:1.0.0"
14413+
- dockerImage: "airbyte/source-stripe:1.0.1"
1441414414
spec:
1441514415
documentationUrl: "https://docs.airbyte.com/integrations/sources/stripe"
1441614416
connectionSpecification:

airbyte-integrations/connectors/source-stripe/Dockerfile

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

15-
LABEL io.airbyte.version=1.0.0
15+
LABEL io.airbyte.version=1.0.1
1616
LABEL io.airbyte.name=airbyte/source-stripe

airbyte-integrations/connectors/source-stripe/source_stripe/streams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import pendulum
1111
import requests
1212
from airbyte_cdk.models import SyncMode
13+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
1314
from airbyte_cdk.sources.streams.http import HttpStream
1415

1516
STRIPE_ERROR_CODES: List = [
@@ -31,6 +32,10 @@ def __init__(self, start_date: int, account_id: str, slice_range: int = DEFAULT_
3132
self.start_date = start_date
3233
self.slice_range = slice_range or self.DEFAULT_SLICE_RANGE
3334

35+
@property
36+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
37+
return None
38+
3439
def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
3540
decoded_response = response.json()
3641
if bool(decoded_response.get("has_more", "False")) and decoded_response.get("data", []):

docs/integrations/sources/stripe.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The Stripe connector should not run into Stripe API limitations under normal usa
8282

8383
| Version | Date | Pull Request | Subject |
8484
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------|
85+
| 1.0.1 | 2023-01-27 | [22042](https://github.com/airbytehq/airbyte/pull/22042) | Set `AvailabilityStrategy` for streams explicitly to `None` |
8586
| 1.0.0 | 2023-01-25 | [21858](https://github.com/airbytehq/airbyte/pull/21858) | Update the `Subscriptions` and `Invoices` stream schemas |
8687
| 0.1.40 | 2022-10-20 | [18228](https://github.com/airbytehq/airbyte/pull/18228) | Update the `Payment Intents` stream schema |
8788
| 0.1.39 | 2022-09-28 | [17304](https://github.com/airbytehq/airbyte/pull/17304) | Migrate to per-stream states. |

0 commit comments

Comments
 (0)