WordPress-Android
WordPress-Android copied to clipboard
Unable to update plugin
Expected behavior
I would expect to be able to update the plugins through the app.
Actual behavior
When I tapped the "Update" link, I saw the "Successfully updated [Plugin name]" notice at the bottom of the screen but the "Update" link still appears on the screen.
Steps to reproduce the behavior
- Go to My Site > Plugins > Manage
- Select a plugin that needs to be updated
- Tap the "Update" link
- See that the "Successfully updated [Plugin name]" appears at the bottom of the screen but the "Update" link remains on the screen
- Check WP Admin > Plugins > Installed Plugins and notice the plugin still needs to be updated
Video recording
https://user-images.githubusercontent.com/40906847/121629109-1d9e5200-caad-11eb-93e1-a8550fbb3316.mp4
Tested on OPPO Reno 4, Android 11, WPAndroid 17.5-rc-1
After investigation it seems that the https://public-api.wordpress.com/rest/v1.2/sites/siteId/plugins/pluginName/update/ endpoint doesn't work properly and doesn't update the plugin version.
I notice we don't currently have a tag for plugins - @planarvoid do you know of any projects this might fit in? I'm not sure how best to triage this one.
Also occurring in iOS. Further discussion for reference: p9dueE-340
The bug was on the backend and I think it's fixed already. It would be great if someone could confirm this 👍
@planarvoid I just tested this on WPiOS 17.6 and WPAndroid 17.7-rc-1, the same issue happened when I tried to update plugins through the apps.
As reported https://github.com/wordpress-mobile/WordPress-Android/pull/20470#pullrequestreview-1938053764 the issue still persist on the latest version (24.4) of the Android app