-
Notifications
You must be signed in to change notification settings - Fork 16
Add search param in getWPThemesPage
method and migrate endpoint to v2.0
#834
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
Add search param in getWPThemesPage
method and migrate endpoint to v2.0
#834
Conversation
Generated by 🚫 Danger |
- Delete `ThemeRequestFilterKey` constant in ThemeServiceRemote.m - Remove `search` parameter assertion in `getThemesForBlogId` method - Eliminate filter parameter from `getThemesForBlogId` API call
…te, `getWPThemesPage` with search method
getWPThemesPage
methodgetWPThemesPage
method and migrate endpoint to v2.0
LGTM – the changes to the package file look good. I will approve it once there is a respective PR in WordPress-iOS with these changes where they could be tested. |
Opened the respective PR in WordPress-iOS repo wordpress-mobile/WordPress-iOS#24262 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Please feel free to incorporating it in wpios-edition
, but make sure to pull the changes first so your binary have all changes from both wpios-edition
and your branch.
Description
This PR can be tested through wordpress-mobile/WordPress-iOS#24262
WordPressKit.zip
This is part of the work needed to fix this issue: wordpress-mobile/WordPress-iOS#23153
In WPiOS, the theme search was not functioning correctly because the search was conducted locally. As a result, since it also supports pagination, the search only considered the elements that had been fetched. If some elements were beyond the already downloaded data, they were not displayed.
In this PR, I migrated the endpoint
rest/v1.2/themes
to v2.0, as v1.2 has been deprecated. I also introduced thesearch
parameter, which allows users to search for themes by keyword. Please refer to the linear issue for more detailsCMM-55/cannot-find-seedlet-theme
.CHANGELOG.md
if necessary.