Open
Description
Describe the bug
The current language and stats card results are incorrect for users with more than 100 repositories (see https://docs.github.com/en/graphql/overview/resource-limitations). This is because we are currently only fetching the first 100 repositories of a user account.
Because of this not all languages and stars of a user are represented.
Expected behaviour
I think we can use pagination options (i.e. cursor
, after
, endCursor
objects) to loop through all repositories of a user account (see https://stackoverflow.com/a/70039506/8135687). @anuraghazra Let me know what you think.
TODOs
- Allow fetching of multiple pages for the languages data. fix: Fetch all repos for top languages #2111.
- Improve the stats card such that it fetches more pages when a user has more than 100 repositories with stars. fix: fetch all repos for for the stats card #2100
- Merge feat: enable multi page star fetching for private vercel instances #2159 to make this available on private Vercel instances while giving us the control to disable it on the public instance because of rate-limiting problems.