From 67dd934e1683f0ce0d79551b0ca1d13b5ca3171f Mon Sep 17 00:00:00 2001 From: Remi Date: Fri, 15 Apr 2022 12:18:29 -0600 Subject: [PATCH] Fix Greenhouse employee_id type (#11941) * Fix Greenhouse employee_id type * correct schema for ci test * bump connector version and doc * update doc Co-authored-by: marcosmarxm --- .../init/src/main/resources/seed/source_definitions.yaml | 2 +- .../init/src/main/resources/seed/source_specs.yaml | 2 +- .../connectors/source-greenhouse/Dockerfile | 2 +- .../source_greenhouse/schemas/applications.json | 8 ++++---- .../source_greenhouse/schemas/candidates.json | 8 ++++---- .../source_greenhouse/schemas/scorecards.json | 4 ++-- .../source_greenhouse/schemas/users.json | 2 +- docs/integrations/sources/greenhouse.md | 1 + 8 files changed, 15 insertions(+), 14 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 af2ba819327c..b332b5e831bd 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -314,7 +314,7 @@ - name: Greenhouse sourceDefinitionId: 59f1e50a-331f-4f09-b3e8-2e8d4d355f44 dockerRepository: airbyte/source-greenhouse - dockerImageTag: 0.2.6 + dockerImageTag: 0.2.7 documentationUrl: https://docs.airbyte.io/integrations/sources/greenhouse icon: greenhouse.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 533623cbf8b3..33f39c4196cb 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -3229,7 +3229,7 @@ supportsNormalization: false supportsDBT: false supported_destination_sync_modes: [] -- dockerImage: "airbyte/source-greenhouse:0.2.6" +- dockerImage: "airbyte/source-greenhouse:0.2.7" spec: documentationUrl: "https://docs.airbyte.io/integrations/sources/greenhouse" connectionSpecification: diff --git a/airbyte-integrations/connectors/source-greenhouse/Dockerfile b/airbyte-integrations/connectors/source-greenhouse/Dockerfile index e1c14e5f5555..8a7949105995 100644 --- a/airbyte-integrations/connectors/source-greenhouse/Dockerfile +++ b/airbyte-integrations/connectors/source-greenhouse/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.6 +LABEL io.airbyte.version=0.2.7 LABEL io.airbyte.name=airbyte/source-greenhouse diff --git a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/applications.json b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/applications.json index 4ba655f3a183..a9905d1e5b97 100644 --- a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/applications.json +++ b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/applications.json @@ -110,19 +110,19 @@ "type": "object", "properties": { "name": { - "type": "string" + "type": ["null", "string"] }, "last_name": { - "type": "string" + "type": ["null", "string"] }, "id": { "type": "integer" }, "first_name": { - "type": "string" + "type": ["null", "string"] }, "employee_id": { - "type": ["null", "integer"] + "type": ["null", "string"] } } }, diff --git a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/candidates.json b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/candidates.json index 8234c4a809cd..5e1161a10b96 100644 --- a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/candidates.json +++ b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/candidates.json @@ -178,19 +178,19 @@ "type": "object", "properties": { "name": { - "type": "string" + "type": ["null", "string"] }, "last_name": { - "type": "string" + "type": ["null", "string"] }, "id": { "type": "integer" }, "first_name": { - "type": "string" + "type": ["null", "string"] }, "employee_id": { - "type": ["null", "integer"] + "type": ["null", "string"] } } }, diff --git a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/scorecards.json b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/scorecards.json index 01196bd44bb3..c6eb441bac39 100644 --- a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/scorecards.json +++ b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/scorecards.json @@ -50,7 +50,7 @@ "type": "string" }, "employee_id": { - "type": ["null", "integer"] + "type": ["null", "string"] } } }, @@ -70,7 +70,7 @@ "type": "string" }, "employee_id": { - "type": ["null", "integer"] + "type": ["null", "string"] } } }, diff --git a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/users.json b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/users.json index de168a63abbc..6e0e7a4a788a 100644 --- a/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/users.json +++ b/airbyte-integrations/connectors/source-greenhouse/source_greenhouse/schemas/users.json @@ -36,7 +36,7 @@ } }, "employee_id": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "linked_candidate_ids": { "type": ["null", "array"] diff --git a/docs/integrations/sources/greenhouse.md b/docs/integrations/sources/greenhouse.md index cdd9dd4e7a82..735b54d2b428 100644 --- a/docs/integrations/sources/greenhouse.md +++ b/docs/integrations/sources/greenhouse.md @@ -57,6 +57,7 @@ Please follow the [Greenhouse documentation for generating an API key](https://d | Version | Date | Pull Request | Subject | | :--- | :--- | :--- | :--- | +| 0.2.7 | 2022-04-15 | [11941](https://github.com/airbytehq/airbyte/pull/11941) | Correct Schema data type for Applications, Candidates, Scorecards and Users | | 0.2.6 | 2021-11-08 | [7607](https://github.com/airbytehq/airbyte/pull/7607) | Implement demographics streams support. Update SAT for demographics streams | | 0.2.5 | 2021-09-22 | [6377](https://github.com/airbytehq/airbyte/pull/6377) | Refactor the connector to use CDK. Implement additional stream support | | 0.2.4 | 2021-09-15 | [6238](https://github.com/airbytehq/airbyte/pull/6238) | added identification of accessible streams for API keys with limited permissions |