-
Notifications
You must be signed in to change notification settings - Fork 235
Open
Labels
💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🛠 goal: fixBug fixBug fix🟨 priority: mediumNot blocking but should be addressed soonNot blocking but should be addressed soon🧱 stack: apiRelated to the Django APIRelated to the Django API
Description
Description
The Openverse API shows inconsistent pagination when searching for the term bamberg
:
- Page 1 indicates multiple pages of results (e.g.,
page_count = 12
). - Page 2 returns no results.
- Page 3 unexpectedly contains results, breaking the logical flow of paginated data.
Reproduction
- GET
https://api.openverse.org/v1/images/?page=1&q=bamberg
- Observe that results are returned and
page_count
suggests multiple pages (e.g., 12 pages).
- Observe that results are returned and
- GET
https://api.openverse.org/v1/images/?q=bamberg&page=2
- Observe that no results are returned.
- GET
https://api.openverse.org/v1/images/?q=bamberg&page=3
- Observe that results are returned, despite page 2 being empty.
Expected vs. Actual Behavior
- Expected: The API should either return results consistently across each page or accurately reflect the number of valid pages in
page_count
. - Actual: Page 2 is empty while Page 3 contains results, contradicting the pagination info from Page 1.
Additional Information
This is probably related to the dead link filtering of the results.
Metadata
Metadata
Assignees
Labels
💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🛠 goal: fixBug fixBug fix🟨 priority: mediumNot blocking but should be addressed soonNot blocking but should be addressed soon🧱 stack: apiRelated to the Django APIRelated to the Django API
Type
Projects
Status
📋 Backlog