From 53f68f46661b22e818cf904234ebe048f3d86527 Mon Sep 17 00:00:00 2001 From: Marcos Marx Date: Thu, 6 Oct 2022 15:08:49 -0400 Subject: [PATCH] Source Bamboo-HR: change Name to name as returned from the API (#17684) * change Name to name as returned from the API * udpate doc * auto-bump connector version [ci skip] Co-authored-by: Octavia Squidington III --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- airbyte-config/init/src/main/resources/seed/source_specs.yaml | 2 +- airbyte-integrations/connectors/source-bamboo-hr/Dockerfile | 2 +- .../connectors/source-bamboo-hr/source_bamboo_hr/utils.py | 2 +- docs/integrations/sources/bamboo-hr.md | 1 + 5 files changed, 5 insertions(+), 4 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 b4e57124321c..c723878e3be1 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -104,7 +104,7 @@ - name: BambooHR sourceDefinitionId: 90916976-a132-4ce9-8bce-82a03dd58788 dockerRepository: airbyte/source-bamboo-hr - dockerImageTag: 0.2.1 + dockerImageTag: 0.2.2 documentationUrl: https://docs.airbyte.io/integrations/sources/bamboo-hr icon: bamboohr.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 c0bf430bf0ec..cdd25b405192 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -1359,7 +1359,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-bamboo-hr:0.2.1" +- dockerImage: "airbyte/source-bamboo-hr:0.2.2" spec: documentationUrl: "https://docs.airbyte.io/integrations/sources/bamboo-hr" connectionSpecification: diff --git a/airbyte-integrations/connectors/source-bamboo-hr/Dockerfile b/airbyte-integrations/connectors/source-bamboo-hr/Dockerfile index f81a7dce238b..238106b2127f 100644 --- a/airbyte-integrations/connectors/source-bamboo-hr/Dockerfile +++ b/airbyte-integrations/connectors/source-bamboo-hr/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.2.1 +LABEL io.airbyte.version=0.2.2 LABEL io.airbyte.name=airbyte/source-bamboo-hr diff --git a/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/utils.py b/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/utils.py index 6df6006751c4..31cb872011e4 100644 --- a/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/utils.py +++ b/airbyte-integrations/connectors/source-bamboo-hr/source_bamboo_hr/utils.py @@ -10,7 +10,7 @@ def convert_custom_reports_fields_to_list(custom_reports_fields: str) -> list: def validate_custom_fields(custom_fields, available_fields): denied_fields = [] for custom_field in custom_fields: - has_access_to_custom_field = any(available_field.get("Name") == custom_field for available_field in available_fields) + has_access_to_custom_field = any(available_field.get("name") == custom_field for available_field in available_fields) if not has_access_to_custom_field: denied_fields.append(custom_field) diff --git a/docs/integrations/sources/bamboo-hr.md b/docs/integrations/sources/bamboo-hr.md index 5fa27aca1f27..0112dcf0fb49 100644 --- a/docs/integrations/sources/bamboo-hr.md +++ b/docs/integrations/sources/bamboo-hr.md @@ -88,6 +88,7 @@ Please [create an issue](https://github.com/airbytehq/airbyte/issues) if you see | Version | Date | Pull Request | Subject | |:--------| :--------- | :------------------------------------------------------ | :---------------------------------------- | +| 0.2.2 | 2022-09-16 | [17684](https://github.com/airbytehq/airbyte/pull/17684) | Fix custom field validation retrieve | | 0.2.1 | 2022-09-16 | [16826](https://github.com/airbytehq/airbyte/pull/16826) | Add custom fields validation during check | | 0.2.0 | 2022-03-24 | [11326](https://github.com/airbytehq/airbyte/pull/11326) | Add support for Custom Reports endpoint | | 0.1.0 | 2021-08-27 | [5054](https://github.com/airbytehq/airbyte/pull/5054) | Initial release with Employees API |