-
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
🎉 Source GitHub: PullRequestStats and Reviews streams now respects start date property #8030
🎉 Source GitHub: PullRequestStats and Reviews streams now respects start date property #8030
Conversation
/test connector=connectors/source-github |
|
@jlourenc thanks for your contribution. Can you also update the version of connector. You can follow this https://docs.airbyte.io/connector-development#4.-publish-the-connector |
@harshithmullapudi That's done. Let me know wether or not this is what you were asking for. Also, the documentation states:
Hence, I was expecting this to be done last, by an Airbyter, once the review is almost complete, in case another PR for the GitHub connector cause a versioning conflict. |
airbyte-integrations/connectors/source-github/source_github/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-github/source_github/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-github/source_github/source.py
Outdated
Show resolved
Hide resolved
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.
Looks great in general, can make a couple of cosmetic fixes and we can prepare it for merge.
d73501f
to
eb26636
Compare
Hey @yevhenii-ldv, thanks for the review. I've applied your suggestions, fixed the merged conflicts and bumped the connector version to |
* Source GitHub: define pull_request_stats and reviews streams as pull_request substreams * Source GitHub: Bump version to 0.2.6 * Source GitHub: Apply PR review suggestions Co-authored-by: Jérémy Lourenço <[email protected]>
* Source GitHub: define pull_request_stats and reviews streams as pull_request substreams * Source GitHub: Bump version to 0.2.6 * Source GitHub: Apply PR review suggestions Co-authored-by: Jérémy Lourenço <[email protected]>
What
Closes #7866
How
PullRequestStats
andReviews
streams are now defined asPullRequest
substreams, by inheriting fromHttpSubStream
viaPullRequestSubstream
classes.This ensures that the
start_date
property, part of the configuration of thePullRequest
stream, is considered. Consequently, thestart_date
also applies to the substreams, since theirstream_slices
are derived from their parent stream.Recommended reading order
streams.py
source.py
🚨 User Impact 🚨
If
start_date
is defined,PullRequestStats
andReviews
streams only refresh from that date, instead of refreshing all before.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