-
Notifications
You must be signed in to change notification settings - Fork 51
Conversation
API Developer Docs Preview: Ready https://wordpress.github.io/openverse-api/_preview/982 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. |
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! Just a couple questions about separator consistency and the usage of the "live" local redis rather than FakeRedis in the tests.
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. Just a couple comments, nothing critical.
It might be good to document some assumptions about how this information will be used. For example, some providers have multiple domains they provide thumbnails from. The dead link tally script had some hacky code to try to resolve this, for example by stripping the left-most subdomains when any subdomains existed. I don't know if that's necessary here. What if, for example, a provider has several thumbnail servers and a particular one of those times out for us regularly. Maybe the provider splits things geographically based on where the uploader's account is held, or something like that. It's nice in this case that we would have the entire domain in those cases.
Is there anything else we'd want to keep in mind when using the information generated by this enhancement?
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.
Looks great, thanks for doing this! Sara's points about the domains are good, I think not trying to do that munging will yield us more interesting results for the described reasons. I have some questions here but nothing to block a merge 🙂
Merging this so that we can initiate a proper fix for WordPress/openverse#672. |
Fixes
Related to WordPress/openverse#672 by @krysal
Description
This PR caches the number of times
ReadTimeout
occurs for a given domain, which can help us identify the providers that are the slowest for thumbnail generation. Then we can find ways to speed them up or work around their limitations.Testing Instructions
Unit tests are included in the PR. They should be sufficient as there is no external change.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin