jeffbcross / offline-github

A prototype Github issues application with AngularJS 1.3 and Lovefield
3 stars 1 forks source link

Github Subscription Design #8

Open jeffbcross opened 9 years ago

jeffbcross commented 9 years ago

We'd originally hoped to be able to install Webhooks that would send payloads to Firebase for updates to issues, repositories, and other objects. Unfortunately, through trial and error, it seems like Webhooks can only be installed on projects on which the user has admin rights.

So it looks like the better approach is to use the Events API

Further research is warranted before diving into implementation.

davideast commented 9 years ago

We could run a node server that polls the Github API and stores it into a Firebase.

jeffbcross commented 9 years ago

One thing I like about just letting the client poll is that it stops polling when the client is closed, and can make (1 * pages of updates) requests to get updated data. Otherwise the server could end up polling a ton of repositories constantly, even if a client will never again care about the repo it's polling.