Skip to content

Commit a7406d0

Browse files
authored
refactor(source-surveymonkey) Replace AirbyteLogger with logging.Logger and upgrade base image (#38244)
1 parent 20c5386 commit a7406d0

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

airbyte-integrations/connectors/source-surveymonkey/metadata.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ data:
66
hosts:
77
- api.surveymonkey.com
88
connectorBuildOptions:
9-
baseImage: docker.io/airbyte/python-connector-base:1.1.0@sha256:bd98f6505c6764b1b5f99d3aedc23dfc9e9af631a62533f60eb32b1d3dbab20c
9+
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: badc5925-0485-42be-8caa-b34096cb71b5
13-
dockerImageTag: 0.3.1
13+
dockerImageTag: 0.3.2
1414
dockerRepository: airbyte/source-surveymonkey
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/surveymonkey
1616
githubIssueLabel: source-surveymonkey
1717
icon: surveymonkey.svg
1818
license: MIT
1919
maxSecondsBetweenMessages: 86400
2020
name: SurveyMonkey
21-
remoteRegistries:
22-
pypi:
23-
enabled: true
24-
packageName: airbyte-source-surveymonkey
2521
registries:
2622
cloud:
2723
enabled: true
2824
oss:
2925
enabled: true
3026
releaseStage: generally_available
27+
remoteRegistries:
28+
pypi:
29+
enabled: true
30+
packageName: airbyte-source-surveymonkey
3131
supportLevel: certified
3232
tags:
3333
- language:python

airbyte-integrations/connectors/source-surveymonkey/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.3.1"
6+
version = "0.3.2"
77
name = "source-surveymonkey"
88
description = "Source implementation for Surveymonkey."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/source.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5+
import logging
56
from typing import Any, List, Mapping, Tuple
67

78
import pendulum
89
import requests
9-
from airbyte_cdk.logger import AirbyteLogger
1010
from airbyte_cdk.sources.declarative.yaml_declarative_source import YamlDeclarativeSource
1111
from airbyte_cdk.sources.streams import Stream
1212
from airbyte_cdk.sources.streams.http.auth import TokenAuthenticator
@@ -42,7 +42,7 @@ def get_authenticator(config: Mapping[str, Any]):
4242
token = config["access_token"]
4343
return TokenAuthenticator(token=token)
4444

45-
def check_connection(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> Tuple[bool, Any]:
45+
def check_connection(self, logger: logging.Logger, config: Mapping[str, Any]) -> Tuple[bool, Any]:
4646
# Check scopes
4747
try:
4848
authenticator = self.get_authenticator(config)

docs/integrations/sources/surveymonkey.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,21 @@ To cover more data from this source we use caching.
7272

7373
| Version | Date | Pull Request | Subject |
7474
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------------- |
75-
| 0.3.1 | 2024-04-24 | [36664](https://github.com/airbytehq/airbyte/pull/36664) | Schema descriptions and CDK 0.80.0 |
76-
| 0.3.0 | 2024-02-22 | [35561](https://github.com/airbytehq/airbyte/pull/35561) | Migrate connector to low-code |
77-
| 0.2.4 | 2024-02-12 | [35168](https://github.com/airbytehq/airbyte/pull/35168) | Manage dependencies with Poetry |
78-
| 0.2.3 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
79-
| 0.2.2 | 2023-05-12 | [26024](https://github.com/airbytehq/airbyte/pull/26024) | Fix dependencies conflict |
80-
| 0.2.1 | 2023-04-27 | [25109](https://github.com/airbytehq/airbyte/pull/25109) | Fix add missing params to stream `SurveyResponses` |
81-
| 0.2.0 | 2023-04-18 | [23721](https://github.com/airbytehq/airbyte/pull/23721) | Add `SurveyCollectors` and `Collectors` stream |
82-
| 0.1.16 | 2023-04-13 | [25080](https://github.com/airbytehq/airbyte/pull/25080) | Fix spec.json required fields and update schema for surveys and survey_responses |
83-
| 0.1.15 | 2023-02-11 | [22865](https://github.com/airbytehq/airbyte/pull/22865) | Specified date formatting in specification |
84-
| 0.1.14 | 2023-01-27 | [22024](https://github.com/airbytehq/airbyte/pull/22024) | Set `AvailabilityStrategy` for streams explicitly to `None` |
85-
| 0.1.13 | 2022-11-29 | [19868](https://github.com/airbytehq/airbyte/pull/19868) | Fix OAuth flow urls |
86-
| 0.1.12 | 2022-10-13 | [17964](https://github.com/airbytehq/airbyte/pull/17964) | Add OAuth for Eu and Ca |
87-
| 0.1.11 | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states |
88-
| 0.1.10 | 2022-09-14 | [16706](https://github.com/airbytehq/airbyte/pull/16706) | Fix 404 error when handling nonexistent surveys |
75+
| 0.3.2 | 2024-05-20 | [38244](https://github.com/airbytehq/airbyte/pull/38244) | Replace AirbyteLogger with logging.Logger and upgrade base image |
76+
| 0.3.1 | 2024-04-24 | [36664](https://github.com/airbytehq/airbyte/pull/36664) | Schema descriptions and CDK 0.80.0 |
77+
| 0.3.0 | 2024-02-22 | [35561](https://github.com/airbytehq/airbyte/pull/35561) | Migrate connector to low-code |
78+
| 0.2.4 | 2024-02-12 | [35168](https://github.com/airbytehq/airbyte/pull/35168) | Manage dependencies with Poetry |
79+
| 0.2.3 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
80+
| 0.2.2 | 2023-05-12 | [26024](https://github.com/airbytehq/airbyte/pull/26024) | Fix dependencies conflict |
81+
| 0.2.1 | 2023-04-27 | [25109](https://github.com/airbytehq/airbyte/pull/25109) | Fix add missing params to stream `SurveyResponses` |
82+
| 0.2.0 | 2023-04-18 | [23721](https://github.com/airbytehq/airbyte/pull/23721) | Add `SurveyCollectors` and `Collectors` stream |
83+
| 0.1.16 | 2023-04-13 | [25080](https://github.com/airbytehq/airbyte/pull/25080) | Fix spec.json required fields and update schema for surveys and survey_responses |
84+
| 0.1.15 | 2023-02-11 | [22865](https://github.com/airbytehq/airbyte/pull/22865) | Specified date formatting in specification |
85+
| 0.1.14 | 2023-01-27 | [22024](https://github.com/airbytehq/airbyte/pull/22024) | Set `AvailabilityStrategy` for streams explicitly to `None` |
86+
| 0.1.13 | 2022-11-29 | [19868](https://github.com/airbytehq/airbyte/pull/19868) | Fix OAuth flow urls |
87+
| 0.1.12 | 2022-10-13 | [17964](https://github.com/airbytehq/airbyte/pull/17964) | Add OAuth for Eu and Ca |
88+
| 0.1.11 | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states |
89+
| 0.1.10 | 2022-09-14 | [16706](https://github.com/airbytehq/airbyte/pull/16706) | Fix 404 error when handling nonexistent surveys |
8990
| 0.1.9 | 2022-07-28 | [13046](https://github.com/airbytehq/airbyte/pull/14998) | Fix state for response stream, fixed backoff behaviour, added unittest |
9091
| 0.1.8 | 2022-05-20 | [13046](https://github.com/airbytehq/airbyte/pull/13046) | Fix incremental streams |
9192
| 0.1.7 | 2022-02-24 | [8768](https://github.com/airbytehq/airbyte/pull/8768) | Add custom survey IDs to limit API calls |

0 commit comments

Comments
 (0)