Page MenuHomePhabricator

Split the GitHub import cursor into separate repository and issues event importers
ClosedPublic

Authored by epriestley on Mar 9 2016, 1:39 PM.
Tags
None
Referenced Files
F14051817: D15446.diff
Fri, Nov 15, 4:05 AM
F14038415: D15446.diff
Sun, Nov 10, 11:26 PM
F14024664: D15446.diff
Thu, Nov 7, 11:23 AM
F13984340: D15446.id.diff
Sun, Oct 20, 12:36 PM
Unknown Object (File)
Oct 2 2024, 4:16 AM
Unknown Object (File)
Oct 2 2024, 3:51 AM
Unknown Object (File)
Sep 9 2024, 7:17 PM
Unknown Object (File)
Sep 5 2024, 5:16 AM
Subscribers
None

Details

Summary

Ref T10538. The primary GitHub event activity stream does not report minor events (labels, milestones, etc).

GitHub has a second, similar activity stream which does report these events (the "Issues Events API").

Use two separate cursors: one consumes the primary stream; the second consumes the events stream.

One possible issue with this is that we may write events in a different order than they occurred, so GitHub shows "comment, label, close" but we show "comment, close, label" or similar. This is probably OK because the secondary API doesn't seem to have any very important events (e.g., it's probably fine if label changes are out-of-order), but we can conceivably put some buffer stage in between the two if it's an issue.

Test Plan

Screen Shot 2016-03-09 at 5.33.44 AM.png (1×1 px, 305 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Split the GitHub import cursor into separate repository and issues event importers.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Mar 9 2016, 3:20 PM
This revision was automatically updated to reflect the committed changes.