Skip to content

Commit a1d1f2a

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

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
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
@@ -1286,7 +1286,7 @@
12861286
- name: Pinterest
12871287
sourceDefinitionId: 5cb7e5fe-38c2-11ec-8d3d-0242ac130003
12881288
dockerRepository: airbyte/source-pinterest
1289-
dockerImageTag: 0.2.1
1289+
dockerImageTag: 0.2.2
12901290
documentationUrl: https://docs.airbyte.com/integrations/sources/pinterest
12911291
icon: pinterest.svg
12921292
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
@@ -11067,7 +11067,7 @@
1106711067
supportsNormalization: false
1106811068
supportsDBT: false
1106911069
supported_destination_sync_modes: []
11070-
- dockerImage: "airbyte/source-pinterest:0.2.1"
11070+
- dockerImage: "airbyte/source-pinterest:0.2.2"
1107111071
spec:
1107211072
documentationUrl: "https://docs.airbyte.com/integrations/sources/pinterest"
1107311073
connectionSpecification:

airbyte-integrations/connectors/source-pinterest/Dockerfile

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

37-
LABEL io.airbyte.version=0.2.1
37+
LABEL io.airbyte.version=0.2.2
3838
LABEL io.airbyte.name=airbyte/source-pinterest

airbyte-integrations/connectors/source-pinterest/source_pinterest/source.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from airbyte_cdk.models import SyncMode
1414
from airbyte_cdk.sources import AbstractSource
1515
from airbyte_cdk.sources.streams import Stream
16+
from airbyte_cdk.sources.streams.availability_strategy import AvailabilityStrategy
1617
from airbyte_cdk.sources.streams.http import HttpStream, HttpSubStream
1718
from airbyte_cdk.sources.streams.http.auth import Oauth2Authenticator
1819
from airbyte_cdk.sources.utils.transform import TransformConfig, TypeTransformer
@@ -44,6 +45,10 @@ def start_date(self):
4445
def window_in_days(self):
4546
return 30 # Set window_in_days to 30 days date range
4647

48+
@property
49+
def availability_strategy(self) -> Optional["AvailabilityStrategy"]:
50+
return None
51+
4752
def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
4853
next_page = response.json().get("bookmark", {}) if self.data_fields else {}
4954

docs/integrations/sources/pinterest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ The connector is restricted by the Pinterest [requests limitation](https://devel
7070
## Changelog
7171

7272
| Version | Date | Pull Request | Subject |
73-
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------ |
73+
|:--------| :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------------------------------------ |
74+
| 0.2.2 | 2023-01-27 | [22020](https://github.com/airbytehq/airbyte/pull/22020) | Set `AvailabilityStrategy` for streams explicitly to `None` |
7475
| 0.2.1 | 2022-12-15 | [20532](https://github.com/airbytehq/airbyte/pull/20532) | Bump CDK version|
7576
| 0.2.0 | 2022-12-13 | [20242](https://github.com/airbytehq/airbyte/pull/20242) | Added data-type normalization up to the schemas declared |
7677
| 0.1.9 | 2022-09-06 | [15074](https://github.com/airbytehq/airbyte/pull/15074) | Added filter based on statuses |

0 commit comments

Comments
 (0)