-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add PR Files stream #45
Conversation
Hi @Ry-DS!
Unfortunately, I don't think it makes sense for there to be an endpoint with all PR files for a repo, and the hierarchy Another issue with too many children records and switching back and forth between parent and child syncing would be triggering too many small batches in the target (see #31 (comment) for a similar case and how it's handled).
AFAIK you don't need to add On the other hand, |
There is no route that does that, but we could envision using a |
For my part, I'm open to using GraphQL for this use case if it doing so can reduce pressure on rate limits. Architecturally, I can't see any technical blockers or reasons not to explore that option. |
After chatting with Eric, we decided to keep this tap on REST for simplicity's sake as we don't have a graphql base stream implemented yet for github. We definitely think however this would be a worthwhile investment in the future. I opened #48 to track this, once a graphql base is made, we could consider migrating this stream over to graphql as a start. |
We know have a Grapqhl endpoint, so it's probably worth revisiting with that in mind. Closing for now. |
Notes:
updated_at
changes, which means that it would make a good replication key for PR files.Points of discussion:
/org/repo/pr_files
(courtesy of @laurentS)pull_number
withpost_processing
? I would feel that the target would create the neccessary foreign key relationships making this redundant, but am not too sure.