-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🎉 Source github: add oauth spec file #6761
Conversation
e48ba0c
to
e687cc2
Compare
/test connector=connectors/source-github
|
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.
Please change the PR title.
Also I think the SAT update should be placed in separate PR.
@@ -164,6 +164,22 @@ def get_expected_schema_structure(schema: dict, annotate_one_of: bool = False) - | |||
:returns list of object property keys paths | |||
""" | |||
paths = [] | |||
if "$ref" in schema: |
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.
hm, I'm not sure we should update SAT in this PR
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.
otherwise it wouldnt work with github schemas
/test connector=connectors/source-github
|
/publish connector=bases/source-acceptance-test
|
/test connector=connectors/source-github
|
@@ -64,7 +64,11 @@ def _generate_repositories(config: Mapping[str, Any], authenticator: MultipleTok | |||
return list(set(repositories_list)) | |||
|
|||
@staticmethod | |||
def _get_authenticator(token: str): | |||
def _get_authenticator(config: Dict[str, Any]): | |||
token = config.get("access_token") |
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.
can you add a comment mentioning this is for backwards compatibility?
token = config.get("access_token") | |
# Before we supported oauth, personal_access_token was called `access_token` and it lived at the | |
# config root. So we first check to make sure any backwards compatbility is handled. | |
token = config.get("access_token") |
"airbyte_secret": true | ||
"credentials": { | ||
"title": "Authentication mechanism", | ||
"description": "Choose either to provide the API key or the OAuth2.0 credentials", |
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.
not having a specific reference makes it less likely to go out of date ;)
"description": "Choose either to provide the API key or the OAuth2.0 credentials", | |
"description": "Choose how to authenticate to Github", |
}, | ||
"access_token": { | ||
"type": "string", | ||
"title": "Access Tokens", |
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.
"title": "Access Tokens", | |
"title": "Access Token", |
"description": "The date from which you'd like to replicate data for GitHub in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: comments, commits and issues.", | ||
"examples": ["2021-03-01T00:00:00Z"], | ||
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" | ||
}, | ||
"branch": { | ||
"type": "string", | ||
"title": "Branch", |
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.
thanks for adding titles for other options as well! Users will be very thankful ;)
/publish connector=connectors/source-github
|
/publish connector=connectors/source-github
|
What
Resolves #6263
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes