[Bug] Fix the rate limit exceed of GitHub API on contributors page #1423
Labels
bug 🐞
Something isn't working
enhancement ✨
New feature or request
Hard
Complex or challenging task
KWOC
KWOC Open Source Program
style tweak 🎨
Improve the website style or formatting
Description
Rate Limit of GitHub API is getting exceeded while loading individual avatars and names of the contributors on the contributors page of the application.
I diagnosed this in my local testing is being caused by following lines
As we can see, for each contributor specific contributor data is being fetched and loaded as contributorData but all it is being used as in the document is for the display name of the individual. Large amounts of fetch requests and rate limiting error issue can be avoided by not fetching this contributor.url for just the "name" of the contributor and instead using the already in use as fallback contributor.login that is the username as display name for all users. Either way the rate limit results in most of the contributors display names being fallback to username only.
So I propose the following improvements
Screenshots
Developer tools > Network tab:
Developer tools > Console
Checklist
Code of Conduct
The text was updated successfully, but these errors were encountered: