🐛 source smartsheets: fix error getting optional metadata_fields on existing configs (#27096)
* fix accessing optional `metadata_fiels` config property * update metadata * bump version in dockerfile * update changelog
This commit is contained in:
@@ -14,5 +14,5 @@ COPY $CODE_PATH ./$CODE_PATH
|
||||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
|
||||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
|
||||
|
||||
LABEL io.airbyte.version=1.1.0
|
||||
LABEL io.airbyte.version=1.1.1
|
||||
LABEL io.airbyte.name=airbyte/source-smartsheets
|
||||
|
||||
@@ -6,7 +6,7 @@ data:
|
||||
connectorSubtype: api
|
||||
connectorType: source
|
||||
definitionId: 374ebc65-6636-4ea0-925c-7d35999a8ffc
|
||||
dockerImageTag: 1.1.0
|
||||
dockerImageTag: 1.1.1
|
||||
dockerRepository: airbyte/source-smartsheets
|
||||
githubIssueLabel: source-smartsheets
|
||||
icon: smartsheet.svg
|
||||
@@ -14,7 +14,6 @@ data:
|
||||
name: Smartsheets
|
||||
registries:
|
||||
cloud:
|
||||
dockerImageTag: 1.0.2 # pinned due to https://github.com/airbytehq/alpha-beta-issues/issues/1400
|
||||
enabled: true
|
||||
oss:
|
||||
enabled: true
|
||||
|
||||
@@ -15,7 +15,7 @@ class SmartSheetAPIWrapper:
|
||||
def __init__(self, config: Mapping[str, Any]):
|
||||
self._spreadsheet_id = config["spreadsheet_id"]
|
||||
self._config = config
|
||||
self._metadata = config["metadata_fields"]
|
||||
self._metadata = config.get("metadata_fields", [])
|
||||
self.api_client = smartsheet.Smartsheet(self.get_access_token(config))
|
||||
self.api_client.errors_as_exceptions(True)
|
||||
# each call to `Sheets` makes a new instance, so we save it here to make no more new objects
|
||||
|
||||
@@ -110,7 +110,8 @@ The remaining column datatypes supported by Smartsheets are more complex types (
|
||||
|
||||
| Version | Date | Pull Request | Subject |
|
||||
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------|
|
||||
| 1.1.0 | 2023-06-02 | [22382](https://github.com/airbytehq/airbyte/pull/22382) | Add support for ingesting metadata fields |
|
||||
| 1.1.1 | 2023-06-06 | [27096](https://github.com/airbytehq/airbyte/pull/27096) | Fix error when optional metadata fields are not set |
|
||||
| 1.1.0 | 2023-06-02 | [22382](https://github.com/airbytehq/airbyte/pull/22382) | Add support for ingesting metadata fields |
|
||||
| 1.0.2 | 2023-05-12 | [26024](https://github.com/airbytehq/airbyte/pull/26024) | Fix dependencies conflict |
|
||||
| 1.0.1 | 2023-04-27 | [25562](https://github.com/airbytehq/airbyte/pull/25562) | Update testing dependencies |
|
||||
| 1.0.0 | 2023-02-19 | [23237](https://github.com/airbytehq/airbyte/pull/23237) | Fix OAuth2.0 token refresh |
|
||||
|
||||
Reference in New Issue
Block a user