wordpress-mobile / wordpress-mobile/WordPress-Android
Media Library search only searches viewed pages of content
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
If I have previously scrolled through multiple pages of photos in my media library, whenever I perform a search in the media library I would expect to find matching images within those pages that I've already browsed.
Actual behavior
If I have previously scrolled through multiple pages of photos in my media library, and then I leave and re-enter the Media section of the app or access site media from elsewhere (like setting a Featured Image), only the first page of photos is searched when I perform a search.
I presume we cache the metadata for the pages of images that we've viewed, but upon re-accessing the Media library only the first page is loaded in unless you scroll.
Steps to reproduce the behavior
- Choose a site and go to Media
- Scroll down so that 3 or so pages of media are loaded
- Select an image and give it a title
- Search for that title, see that the image is shown
- Leave the Media section, and then go back in
- Perform the same search. See that the image you used previously isn't displayed
- Scroll down to find the image, and search again. The image will show up in the search results.
- The same happens if you now navigate somewhere like Post Settings > Featured Image > Media Library
Tested on Samsung s10e, Android 10, WPAndroid alpha-250
Contributor guide
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 search flow in the Media section after browsing several pages, leaving and re-entering it, and opening Media Library through Post Settings > Featured Image. Compare results before and after scrolling additional pages. Done means previously viewed matching media remains searchable when the Media Library is reopened or accessed from Featured Image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100