You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
I stumbled on this issue with https://github.com/mongodb/mongo today. For that repository loading never finishes at all.
In fact it does not make sense to analyze all branches by default when there are dozens of them.
Can we have option to only analyze currently selected branch?
The issue is a direct result of the restriction of GitHub API that pagination allows maximum of 100 items per request.
Regarding your new proposal for only showing currently selected branch:
There is no concept of currently selected branch before the page actually loads.
But it is possible to make an extra option. If the pagination is taking too long, show an indication "There are too many branches" and a button "Show filtered branches instead". Upon clicking, the user could see the list of branches, select only the ones they need, and proceed, so as to show the selected branch commits only.
I will keep this issue open for now, for anyone who will be interested in implementing the feature.
Uh oh!
There was an error while loading. Please reload this page.
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:
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.
The text was updated successfully, but these errors were encountered: