ros-infrastructure / rosindex

The source code for generating index.ros.org
https://index.ros.org
GNU General Public License v3.0
12 stars 23 forks source link

Contribution counts show >99 when github rate limits exceeded #393

Open rkent opened 3 weeks ago

rkent commented 3 weeks ago

Github limits unauthenticated API requests to 60 per hour. Each time a repo is displayed, three api requests are being made (in contribution_suggestions.js). It is quite easy to exceed this limit if you are using rosindex to display lots of packages.

When you do exceed the limit, the UI displays ">99" which is confusing.

How to approach this?

rkent commented 2 weeks ago

Correction to the above. Of the three requests that are done for each repo, only two are for issues, one is for pull. So combining calls can only reduce rate usage from 3 to 2 API requests per repo render.