-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API results can skip pages #5326
Comments
Hi @obulat is there a way to reproduce this locally? Tried with exact query on the local data but there seems to not be any matching data. |
HI @madewithkode ! I haven't tried reproducing this locally, but if this is, indeed, related to dead link filtering, then it should be possible to reproduce by changing the local data. This is what I would try to reproduce it:
Using the API debugging guidelines would be really helpful when looking at which results are being filtered. |
Thanks for providing further guidelines. I will not be picking this up immediately as I'm currently exploring another task, but if it's still open when I'm freed up, I would try to give it a shot. |
Hi @obulat I've been taking a look at this and also trying to reproduce locally. Few observations/questions so far:
|
Yes, you're right, in production, filter dead links is on by default.
Did you try to debug what the response from the dead link check is? Using either the debugger, or even a log statement here:
|
I'd say yes, even though not exactly where you have pointed out. I did try logging the actual urls being deleted here:
And in turn tried to visit them directly from my browser and they were all live. Perhaps the head request considers something else in order to determine link validity? |
I don't know of the top of my head how to invalidate the cache, but I used Redis Insight to view the cached data and edit it. |
Description
The Openverse API shows inconsistent pagination when searching for the term
bamberg
:page_count = 12
).Reproduction
https://api.openverse.org/v1/images/?page=1&q=bamberg
page_count
suggests multiple pages (e.g., 12 pages).https://api.openverse.org/v1/images/?q=bamberg&page=2
https://api.openverse.org/v1/images/?q=bamberg&page=3
Expected vs. Actual Behavior
page_count
.Additional Information
This is probably related to the dead link filtering of the results.
The text was updated successfully, but these errors were encountered: