-
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 more streams #5757
Conversation
/test connector=connectors/source-github
|
@@ -98,11 +104,14 @@ def check_connection(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> | |||
def streams(self, config: Mapping[str, Any]) -> List[Stream]: | |||
authenticator = self._get_authenticator(config["access_token"]) | |||
repositories = self._generate_repositories(config=config, authenticator=authenticator) | |||
organizations = list(set([org.split("/")[0] for org in repositories])) |
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.
list({org.split("/")[0] for org in repositories})
airbyte-integrations/connectors/source-github/source_github/streams.py
Outdated
Show resolved
Hide resolved
/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.
@tovbinm thanks for the contribution! LGTM with some questions about minimization
API docs: https://docs.github.com/en/rest/reference/repos#list-organization-repositories | ||
""" | ||
|
||
fields_to_minimize = ("owner",) |
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.
@tovbinm could we keep this un-minimized? or is it redundant with something else? IMO it's useful to keep this info here since the owner might not be a contributor present on any other stream in the user
field
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.
Yea we can keep it un-minimized.
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.
I don't have enough access to push to this branch but one of you here can just update the schemas to refer to the shared user
object schema.
|
||
def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: | ||
return f"orgs/{stream_slice['organization']}/repos" | ||
fields_to_minimize = ("merged_by",) |
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.
same question as below about minimization
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.
Yea we can keep it un-minimized.
/publish connector=connectors/source-github
|
What
clones #5483.
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
docs/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
docs/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