git-flow-vis icon indicating copy to clipboard operation
git-flow-vis copied to clipboard

Real time inserts of new commits

Open Teun opened this issue 10 years ago • 3 comments

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 avatar Sep 18 '14 09:09 Teun

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.

Teun avatar Mar 05 '17 16:03 Teun

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

remie avatar Mar 06 '17 13:03 remie

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.

Teun avatar Mar 06 '17 14:03 Teun