Skip to content

Commit

Permalink
Update fields in source-connectors specifications: pinterest (#9043)
Browse files Browse the repository at this point in the history
* Files title/description update for issue # 8913

* Version update for issue # 8913

* Changelogs update for PR #9043

* Update docs/integrations/sources/pinterest.md

* update test_stream_slices

* bump version

Co-authored-by: Anna Lvova <37615075+annalvova05@users.noreply.github.com>
Co-authored-by: alvova <annalvova05@gmail.com>
  • Loading branch information
3 people authored Dec 28, 2021
1 parent d1966e0 commit 04704ff
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "5cb7e5fe-38c2-11ec-8d3d-0242ac130003",
"name": "Pinterest",
"dockerRepository": "airbyte/source-pinterest",
"dockerImageTag": "0.1.0",
"dockerImageTag": "0.1.1",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/pinterest",
"icon": "pinterest.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
- name: Pinterest
sourceDefinitionId: 5cb7e5fe-38c2-11ec-8d3d-0242ac130003
dockerRepository: airbyte/source-pinterest
dockerImageTag: 0.1.0
dockerImageTag: 0.1.1
documentationUrl: https://docs.airbyte.io/integrations/sources/pinterest
icon: pinterest.svg
sourceType: api
Expand Down
16 changes: 8 additions & 8 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5261,7 +5261,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-pinterest:0.1.0"
- dockerImage: "airbyte/source-pinterest:0.1.1"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/pinterest"
connectionSpecification:
Expand All @@ -5276,33 +5276,33 @@
properties:
client_id:
type: "string"
title: "Client id"
description: "Your Pinterest client id. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\"\
title: "Client ID"
description: "Your Pinterest client ID. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\"\
>docs</a> for instructions on how to generate it."
airbyte_secret: true
client_secret:
type: "string"
title: "Client secret"
title: "Client Secret"
description: "Your Pinterest client secret. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\"\
>docs</a> for instructions on how to generate it."
airbyte_secret: true
refresh_token:
type: "string"
title: "Refresh token"
title: "Refresh Token"
description: "Your Pinterest refresh token. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\"\
>docs</a> for instructions on how to generate it."
airbyte_secret: true
access_token:
type: "string"
title: "Access token"
title: "Access Token"
description: "Your Pinterest access token. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\"\
>docs</a> for instructions on how to generate it."
airbyte_secret: true
start_date:
type: "string"
title: "Start date"
title: "Start Date"
description: "A date in the format YYYY-MM-DD. If you have not set a date,\
\ it will be 2020-07-28 by default."
\ it would be defaulted to 2020-07-28."
examples:
- "2020-07-28"
supportsNormalization: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_pinterest ./source_pinterest
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/source-pinterest
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@
"properties": {
"client_id": {
"type": "string",
"title": "Client id",
"description": "Your Pinterest client id. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\">docs</a> for instructions on how to generate it.",
"title": "Client ID",
"description": "Your Pinterest client ID. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\">docs</a> for instructions on how to generate it.",
"airbyte_secret": true
},
"client_secret": {
"type": "string",
"title": "Client secret",
"title": "Client Secret",
"description": "Your Pinterest client secret. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\">docs</a> for instructions on how to generate it.",
"airbyte_secret": true
},
"refresh_token": {
"type": "string",
"title": "Refresh token",
"title": "Refresh Token",
"description": "Your Pinterest refresh token. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\">docs</a> for instructions on how to generate it.",
"airbyte_secret": true
},
"access_token": {
"type": "string",
"title": "Access token",
"title": "Access Token",
"description": "Your Pinterest access token. See the <a href=\"https://developers.pinterest.com/docs/api/v5/#tag/Authentication\">docs</a> for instructions on how to generate it.",
"airbyte_secret": true
},
"start_date": {
"type": "string",
"title": "Start date",
"description": "A date in the format YYYY-MM-DD. If you have not set a date, it will be 2020-07-28 by default.",
"title": "Start Date",
"description": "A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to 2020-07-28.",
"examples": ["2020-07-28"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_get_updated_state(patch_incremental_base_class, test_current_stream_sta
def test_stream_slices(patch_incremental_base_class, test_current_stream_state, test_incremental_config):
stream = IncrementalPinterestSubStream(None, config=test_incremental_config)
inputs = {"sync_mode": SyncMode.incremental, "cursor_field": "updated_time", "stream_state": test_current_stream_state}
expected_stream_slice = [{"start_date": "2021-10-22", "end_date": "2021-11-21"}]
assert [i for i in stream.stream_slices(**inputs)] == expected_stream_slice
expected_stream_slice = {"start_date": "2021-10-22", "end_date": "2021-11-21"}
assert next(stream.stream_slices(**inputs)) == expected_stream_slice


def test_supports_incremental(patch_incremental_base_class, mocker):
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/pinterest.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ Please read [How to get your credentials](https://developers.pinterest.com/docs/

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.1 | 2021-12-22 | [9043](https://github.com/airbytehq/airbyte/pull/9043) | Update connector fields title/description |
| 0.1.0 | 2021-10-29 | [7493](https://github.com/airbytehq/airbyte/pull/7493) | Release Pinterest CDK Connector |

0 comments on commit 04704ff

Please sign in to comment.