-
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 reaction streams #5860
Conversation
/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.
LGTM. Added a few questions.
airbyte-integrations/connectors/source-github/source_github/streams.py
Outdated
Show resolved
Hide resolved
...te-integrations/connectors/source-github/source_github/schemas/commit_comment_reactions.json
Show resolved
Hide resolved
|
||
def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: | ||
for stream_slice in super().stream_slices(**kwargs): | ||
for parent_record in self._parent_stream.read_records(sync_mode=SyncMode.full_refresh, stream_slice=stream_slice): |
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 for this PR, but it does feel like we should cache these. Lots of parent streams going on atm
class ReactionStream(GithubStream, ABC): | ||
|
||
parent_key = "id" | ||
fields_to_minimize = ("user",) |
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.
we shouldn't minimize this since it may contain new users not in any other streams
fields_to_minimize = ("user",) |
|
||
def __init__(self, **kwargs): | ||
self._parent_stream = self.parent_entity(**kwargs) | ||
kwargs.pop("start_date", None) |
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.
should we make a copy of kwargs in case it is reused across streams?
/test connector=connectors/source-github
|
…ruochkin/add-reactions-streams
/publish connector=connectors/source-github
|
Hi @etsybaev,
error with |
What
Closes #5499.
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
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 here