-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎉 New Source: Lever Hiring #6141
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a70c4bc
Lever Hiring Connector - initial version
yevhenii-ldv 0538707
update unit_tests
yevhenii-ldv ecd4501
update schemas
yevhenii-ldv c2e4df0
Merge branch 'master' of https://github.com/airbytehq/airbyte into yk…
yevhenii-ldv df711be
add credential's variable
yevhenii-ldv d640458
update after review
yevhenii-ldv ae24df2
update after Airbyte review
yevhenii-ldv d25f0de
bump version, update changelog
yevhenii-ldv 79cb5f3
Merge branch 'master' of https://github.com/airbytehq/airbyte into yk…
yevhenii-ldv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ain/resources/config/STANDARD_SOURCE_DEFINITION/3981c999-bd7d-4afc-849b-e53dea90c948.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sourceDefinitionId": "3981c999-bd7d-4afc-849b-e53dea90c948", | ||
"name": "Lever Hiring", | ||
"dockerRepository": "airbyte/source-lever-hiring", | ||
"dockerImageTag": "0.1.0", | ||
"documentationUrl": "https://docs.airbyte.io/integrations/sources/lever-hiring" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
airbyte-integrations/connectors/source-lever-hiring/integration_tests/abnormal_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"todo-stream-name": { | ||
"todo-field-name": "todo-abnormal-value" | ||
"opportunities": { | ||
"updatedAt": 1638587931515000 | ||
} | ||
} |
76 changes: 75 additions & 1 deletion
76
...yte-integrations/connectors/source-lever-hiring/integration_tests/configured_catalog.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,77 @@ | ||
{ | ||
"streams": [] | ||
"streams": [ | ||
{ | ||
"stream": { | ||
"name": "applications", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "interviews", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "notes", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "offers", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "opportunities", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh", "incremental"], | ||
"source_defined_cursor": true, | ||
"default_cursor_field": ["updatedAt"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "incremental", | ||
"destination_sync_mode": "append", | ||
"cursor_field": ["updatedAt"] | ||
}, | ||
{ | ||
"stream": { | ||
"name": "referrals", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
}, | ||
{ | ||
"stream": { | ||
"name": "users", | ||
"json_schema": {}, | ||
"supported_sync_modes": ["full_refresh"], | ||
"source_defined_primary_key": [["id"]] | ||
}, | ||
"sync_mode": "full_refresh", | ||
"destination_sync_mode": "overwrite" | ||
} | ||
] | ||
} |
6 changes: 5 additions & 1 deletion
6
airbyte-integrations/connectors/source-lever-hiring/integration_tests/invalid_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"todo-wrong-field": "this should be an incomplete config file, used in standard tests" | ||
"client_id": "fake_client_id", | ||
"client_secret": "fake_client_secret", | ||
"refresh_token": "fake_refresh_token", | ||
"environment": "Sandbox", | ||
"start_date": "2021-07-12T00:00:00Z" | ||
} |
6 changes: 5 additions & 1 deletion
6
airbyte-integrations/connectors/source-lever-hiring/integration_tests/sample_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"fix-me": "TODO" | ||
"client_id": "client_id", | ||
"client_secret": "client_secret", | ||
"refresh_token": "refresh_token", | ||
"environment": "Sandbox", | ||
"start_date": "2021-07-12T00:00:00Z" | ||
} |
4 changes: 2 additions & 2 deletions
4
airbyte-integrations/connectors/source-lever-hiring/integration_tests/sample_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"todo-stream-name": { | ||
"todo-field-name": "value" | ||
"opportunities": { | ||
"updatedAt": 1628587931515 | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
airbyte-integrations/connectors/source-lever-hiring/integration_tests/spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"documentationUrl": "https://docs.airbyte.io/integrations/sources/lever-hiring", | ||
"changelogUrl": "https://docs.airbyte.io/integrations/sources/lever-hiring#changelog", | ||
"connectionSpecification": { | ||
"title": "Lever Hiring Spec", | ||
"type": "object", | ||
"properties": { | ||
"client_id": { | ||
"title": "Client Id", | ||
"description": "The client application id as provided when registering the application with Lever.", | ||
"type": "string" | ||
}, | ||
"client_secret": { | ||
"title": "Client Secret", | ||
"description": "The application secret as provided when registering the application with Lever.", | ||
"airbyte_secret": true, | ||
"type": "string" | ||
}, | ||
"refresh_token": { | ||
"title": "Refresh Token", | ||
"description": "The refresh token your application will need to submit to get a new access token after it's expired.", | ||
"type": "string" | ||
}, | ||
"environment": { | ||
"title": "Environment", | ||
"description": "Sandbox or Production environment.", | ||
"default": "Production", | ||
"enum": ["Sandbox", "Production"], | ||
"type": "string" | ||
}, | ||
"start_date": { | ||
"title": "Start Date", | ||
"description": "UTC date and time in the format 2019-02-25T00:00:00Z. Any data before this date will not be replicated.", | ||
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$", | ||
"examples": ["2021-04-25T00:00:00Z"], | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["client_id", "client_secret", "refresh_token", "start_date"] | ||
}, | ||
"authSpecification": { | ||
"auth_type": "oauth2.0", | ||
"oauth2Specification": { | ||
"oauthFlowInitParameters": [ | ||
["client_id"], | ||
["client_secret"], | ||
["refresh_token"] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
"pytest~=6.1", | ||
"pytest-mock~=3.6.1", | ||
"source-acceptance-test", | ||
"responses~=0.13.3", | ||
] | ||
|
||
setup( | ||
|
@@ -42,7 +43,7 @@ | |
author_email="[email protected]", | ||
packages=find_packages(), | ||
install_requires=MAIN_REQUIREMENTS, | ||
package_data={"": ["*.json", "schemas/*.json", "schemas/shared/*.json"]}, | ||
package_data={"": ["*.json"]}, | ||
extras_require={ | ||
"tests": TEST_REQUIREMENTS, | ||
}, | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please annotate oauth parameters like described in this issue #6166
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done