NirmalScaria / le-git-graph

Browser extension to add git graph to GitHub website.
https://chrome.google.com/webstore/detail/le-git-graph-commits-grap/joggkdfebigddmaagckekihhfncdobff
MIT License
3.13k stars 16 forks source link

Loading too slow if too many branches #41

Open NirmalScaria opened 1 year ago

NirmalScaria commented 1 year ago

Describe the bug If the repository contains too many branches, the first loading of commits tab takes too long. This is particularly visible if the number of branches is greater than 100, since that would mean waiting for another GraphQL request.

To Reproduce Steps to reproduce the behavior:

  1. Go to a repo with too many branches. ( https://github.com/flutter/flutter is a good example )
  2. Click on "Commits" tab (added by the extension)
  3. See error

Expected behavior The loading should be way faster than this.

Screenshots NA

Version information:

Additional context This was known during the development times itself, and had no other option. There is no API from github that lists commits across all branches sorted by commit date. Either that, or an API that lists branches sorted by head commit date could solve this problem. AFAIK, neither exists and a fresh solution would be required.