Skip to content

Commit

Permalink
🎉 Source Greenhouse: Implement demographics streams support (#7607)
Browse files Browse the repository at this point in the history
* Add demographics streams support.
Update SAT to dest demographics streams.

* Bump docker version
  • Loading branch information
htrueman committed Nov 8, 2021
1 parent af903f2 commit f0c54a7
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 238 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "59f1e50a-331f-4f09-b3e8-2e8d4d355f44",
"name": "Greenhouse",
"dockerRepository": "airbyte/source-greenhouse",
"dockerImageTag": "0.2.5",
"dockerImageTag": "0.2.6",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/greenhouse",
"icon": "greenhouse.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
- name: Greenhouse
sourceDefinitionId: 59f1e50a-331f-4f09-b3e8-2e8d4d355f44
dockerRepository: airbyte/source-greenhouse
dockerImageTag: 0.2.5
dockerImageTag: 0.2.6
documentationUrl: https://docs.airbyte.io/integrations/sources/greenhouse
icon: greenhouse.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.5
LABEL io.airbyte.version=0.2.6
LABEL io.airbyte.name=airbyte/source-greenhouse
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ tests:
- config_path: "secrets/config_users_only.json"
basic_read:
- config_path: "secrets/config.json"
# TODO: replace with configured_catalog.json when https://github.com/airbytehq/airbyte/issues/6546 is resolved
configured_catalog_path: "integration_tests/configured_catalog_no_demographics.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog_users_only.json"
full_refresh:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,69 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_question_sets",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_questions",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_answer_options",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_answers",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "applications_demographics_answers",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_question_sets_questions",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "demographics_answers_answer_options",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@
from requests.auth import HTTPBasicAuth
from source_greenhouse.streams import (
Applications,
ApplicationsDemographicsAnswers,
ApplicationsInterviews,
Candidates,
CloseReasons,
CustomFields,
Degrees,
DemographicsAnswerOptions,
DemographicsAnswers,
DemographicsAnswersAnswerOptions,
DemographicsQuestions,
DemographicsQuestionSets,
DemographicsQuestionSetsQuestions,
Departments,
Interviews,
JobPosts,
Expand Down Expand Up @@ -62,6 +69,13 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
Scorecards(authenticator=auth),
Sources(authenticator=auth),
Users(authenticator=auth),
ApplicationsDemographicsAnswers(authenticator=auth),
DemographicsAnswers(authenticator=auth),
DemographicsAnswerOptions(authenticator=auth),
DemographicsQuestions(authenticator=auth),
DemographicsAnswersAnswerOptions(authenticator=auth),
DemographicsQuestionSets(authenticator=auth),
DemographicsQuestionSetsQuestions(authenticator=auth),
]

return streams

0 comments on commit f0c54a7

Please sign in to comment.