-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Media search by title #22471
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
base: trunk
Are you sure you want to change the base?
Media search by title #22471
Conversation
Media search now includes FILE_NAME in addition to TITLE, CAPTION, and DESCRIPTION. This allows users to find media by searching for the original filename. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previously, media search only worked on locally cached media. Now the search term is passed to the WordPress.com REST API via the "search" parameter, allowing users to find media that hasn't been loaded yet. Changes: - Add searchTerm field to FetchMediaListPayload - Pass search parameter to WordPress.com media API endpoint - Update MediaLibraryDataSource to pass filter to network request Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Generated by 🚫 Danger |
|
Claude finished @nbradbury's task in 1m 11s —— View job Code Review CompleteI've reviewed the PR implementing server-side media search functionality. This is a well-structured change that properly threads the search parameter through the architecture layers. Here's my detailed feedback: Tasks
OverviewThe implementation successfully adds server-side search support for media by:
Code Quality ✅Strengths:
Minor Observations:
Security ✅No issues found:
Performance 📊Good practices observed:
Potential consideration:
Testing
|
|
| App Name | WordPress | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22471-d300da8 | |
| Commit | d300da8 | |
| Direct Download | wordpress-prototype-build-pr22471-d300da8.apk |
|
| App Name | Jetpack | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22471-d300da8 | |
| Commit | d300da8 | |
| Direct Download | jetpack-prototype-build-pr22471-d300da8.apk |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #22471 +/- ##
==========================================
+ Coverage 39.12% 39.14% +0.02%
==========================================
Files 2205 2205
Lines 106684 106696 +12
Branches 15138 15139 +1
==========================================
+ Hits 41741 41771 +30
+ Misses 61445 61419 -26
- Partials 3498 3506 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Add MediaRestClientTest with tests verifying search parameter is passed to the WordPress.com REST API endpoint - Add FILE_NAME search tests to MediaStoreTest to verify local database search includes file names Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added in a7fbc3c |
|





Fixes CMM-1128
Previously, media search only worked on locally cached media. In addition, the network request failed to pass along the search query.
Now the search query is passed to the WordPress.com REST API via the "search" parameter, allowing users to find media that hasn't been loaded yet. I also added
filenameto the local search.To test: