Teun / git-flow-vis

81 stars 12 forks source link

Real time inserts of new commits #32

Open Teun opened 9 years ago

Teun commented 9 years ago

By regularly checking for new commits, we could have a live feel to the page. By requesting the branches feed, you can see in one request if new commits have been added to the repo.

Teun commented 7 years ago

Will implement by creating an extra API on GFV.branches. Host can provide updated or added branches, so the chart can be updated to reflect them.

remie commented 7 years ago

Shouldn't this mostly be implemented in the host? What kind of functionality should the library provide other than a "redraw" method?

Teun commented 7 years ago

Yes. Well. I'd like to have the host provide new or updated HEADs. The current implementation has only a full data call that must provide information about branches, tags and commits. Then, the component can request extra commits providing only a sha. I would like the host to be able to provide a set of branches (with ref and latestChangeset) . Then the chart can check if this was already known and if it needs to download extra commits. So a host only does the scheduled call for the current branches/HEADs. The logic to recognize changes to the current state can be done on the inside.