-
Notifications
You must be signed in to change notification settings - Fork 63
Reduce GlotPress limit further to ensure all languages #2184
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/2184 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: 0 B Total Size: 908 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well make incremental progress while we await feedback. LGTM.
@dhruvkb,I was made aware of two bulk endpoints we can use for this. However, they require authentication.
I think this will help considerably! |
We can use the authenticated endpoint for CI, GitHub actions and maybe prod deployments but developers working locally will not have access to these endpoints unless they sign up for Make. I would very much prefer to not complicate the dev setup to add a Make account prerequisite. All that is to say, we could keep both the throttled code and the authenticated code and use one based on whether keys are present. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I've merged this, and opened a new issue WordPress/openverse#451 to handle bulk downloading. |
Fixes
Fixes #2170 by @AetherUnbound by improving #2172 by @dhruvkb
Description
Even with the limit of 99 requests per second, the GlotPress download reports several 429 errors. This was not happening when the PR #2172 was made but it's happening now, because of which staging.openverse.org again lacks some languages. The situation is better, we have ~150 languages now but still not all of them (~200).
Testing Instructions
This PR reduces the rate limit even further. It would be better if GlotPress had some official documentation around rate limits. Alternatively we could fail the deploy if the download step is incomplete?
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin