From 4501ad04a476fdead825f8c024be884227bad0b9 Mon Sep 17 00:00:00 2001 From: augan-rymkhan <93112548+augan-rymkhan@users.noreply.github.com> Date: Thu, 23 Dec 2021 17:25:46 +0600 Subject: [PATCH] Source Facebook Pages: removed deprecated field `live_encoders` from Page stream (#9032) * removed deprecated field `live_encoders` * updated connector version * updated spec and def yaml Co-authored-by: auganbay --- .../resources/seed/source_definitions.yaml | 2 +- .../src/main/resources/seed/source_specs.yaml | 2 +- .../source-facebook-pages/Dockerfile | 2 +- .../source_facebook_pages/metrics.py | 1 - .../source_facebook_pages/schemas/page.json | 33 ------------------- docs/integrations/sources/facebook-pages.md | 1 + 6 files changed, 4 insertions(+), 37 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 b122d6815951..596b58db23ca 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -182,7 +182,7 @@ - name: Facebook Pages sourceDefinitionId: 010eb12f-837b-4685-892d-0a39f76a98f5 dockerRepository: airbyte/source-facebook-pages - dockerImageTag: 0.1.5 + dockerImageTag: 0.1.6 documentationUrl: https://hub.docker.com/r/airbyte/source-facebook-pages icon: facebook.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 124f5a8bd6ed..5bd9d276d9d7 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -1583,7 +1583,7 @@ oauthFlowInitParameters: [] oauthFlowOutputParameters: - - "access_token" -- dockerImage: "airbyte/source-facebook-pages:0.1.5" +- dockerImage: "airbyte/source-facebook-pages:0.1.6" spec: documentationUrl: "https://docs.airbyte.io/integrations/sources/facebook-pages" connectionSpecification: diff --git a/airbyte-integrations/connectors/source-facebook-pages/Dockerfile b/airbyte-integrations/connectors/source-facebook-pages/Dockerfile index 9c9389bc426c..eb60f1aea6ea 100644 --- a/airbyte-integrations/connectors/source-facebook-pages/Dockerfile +++ b/airbyte-integrations/connectors/source-facebook-pages/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.1.5 +LABEL io.airbyte.version=0.1.6 LABEL io.airbyte.name=airbyte/source-facebook-pages diff --git a/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/metrics.py b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/metrics.py index dca8d6f282ea..99e143e8577f 100755 --- a/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/metrics.py +++ b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/metrics.py @@ -248,7 +248,6 @@ # "insights_exports", Tried accessing nonexisting field (insights_exports) on node type (Page) "instagram_accounts", "likes", - "live_encoders", "live_videos", "locations", "nativeoffers", diff --git a/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/schemas/page.json b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/schemas/page.json index 0cf9e219b3fc..b016490bd1f4 100644 --- a/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/schemas/page.json +++ b/airbyte-integrations/connectors/source-facebook-pages/source_facebook_pages/schemas/page.json @@ -1554,39 +1554,6 @@ } } }, - "live_encoders": { - "type": ["object", "null"], - "properties": { - "data": { - "type": ["array", "null"], - "items": { - "$ref": "liveencoder.json" - } - }, - "paging": { - "type": ["object", "null"], - "properties": { - "previous": { - "type": ["string", "null"] - }, - "next": { - "type": ["string", "null"] - }, - "cursors": { - "type": "object", - "properties": { - "before": { - "type": ["string", "null"] - }, - "after": { - "type": ["string", "null"] - } - } - } - } - } - } - }, "live_videos": { "type": ["object", "null"], "properties": { diff --git a/docs/integrations/sources/facebook-pages.md b/docs/integrations/sources/facebook-pages.md index 829cce131c80..6e139b3a0680 100644 --- a/docs/integrations/sources/facebook-pages.md +++ b/docs/integrations/sources/facebook-pages.md @@ -83,6 +83,7 @@ You can easily get the page id from the page url. For example, if you have a pag | Version | Date | Pull Request | Subject | | :--- | :--- | :--- | :--- | +| 0.1.6 | 2021-12-22 | [9032](https://github.com/airbytehq/airbyte/pull/9032) | Remove deprecated field `live_encoders` from Page stream | | 0.1.5 | 2021-11-26 | [8267](https://github.com/airbytehq/airbyte/pull/) | updated all empty objects in schemas for Page and Post streams | | 0.1.4 | 2021-11-26 | [](https://github.com/airbytehq/airbyte/pull/) | Remove unsupported insights_export field from Pages request | | 0.1.3 | 2021-10-28 | [7440](https://github.com/airbytehq/airbyte/pull/7440) | Generate Page token from config access token |