- Notifications
You must be signed in to change notification settings - Fork 4.9k
🎉 Source github: add oauth spec file #6761
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
Conversation
e48ba0c to e687cc2 Compare | /test connector=connectors/source-github
|
htrueman left a comment
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.
| :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
|
| @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", |
| }, | ||
| "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.javay.pythonPre-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.mdbootstrap.md. See description and examplesdocs/SUMMARY.mddocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
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./publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding 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./publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changes