WordPress / WordPress/pattern-directory
Openverse thumbs can return 400 status codes but are still displayed as gray boxes
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 134
- Forks
- 46
- Avg merge
- 9h 4m
- Merged PRs (30d)
- 19
Description
Describe the bug
A clear and concise description of what the bug is.
Currently, searching Openverse media in the pattern directory shows many broken thumbnails.
To Reproduce
Steps to reproduce the behavior:
- Visit https://wordpress.org/patterns/?pagename=new-pattern
- Insert a new image; be prompted to search Openverse
- Search Openverse, using a suggested search or any arbitrary term
- Observe broken thumbnails with gray backgrounds
Expected behavior
A clear and concise description of what you expected to happen.
Only working thumbnails should be displayed. Perhaps thumbnails which error should be filtered out.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Anyone on @WordPress/openverse-maintainers should be able to provide advice or support here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue at the pattern directory URL and searching Openverse for images, then inspect the thumbnail requests and their response status. Done means thumbnails returning 400 errors are not displayed as gray boxes, while working thumbnails remain visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100