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
Saved Posts Removed From Release App When Refreshing Old Debug App #8791
Comments
I don't think this is related to having a debug version and a release version of the app on one device. I removed the debug app from my device and verified the saved posts were still shown in the release app four days ago. Today I noticed two out of three of my saved posts were removed. The one post that was not removed was recently published (i.e. about two days ago). The two posts that were removed were published months ago (i.e. October 31, 2018 and November 15, 2018). |
As we discussed I don't think it can be related as for the OS the two apps are completely independent apps - they are signed with a different key. The issue is caused by a bug which has been in the app for ages, it just hadn't had any user-facing impact until we implemented Saved Posts. Steps to reproduce
We keep only 200 most recent posts in the cache. When you start following a new site and you restart the app all posts which are not in 200 most recent posts are removed. However, there is a bug in the SQL query so we are not removing just posts which don't fit in first 200, but also all posts which have different tag than "followed-sites" (or the one which has more than 200 posts). |
I'm unable to reproduce the issue when performing those steps on |
Maybe just try to pull-to-refresh in step 7. If it doesn't help I'll dm you credentials to my testing account on which I'm able to reproduce it consistently. |
Expected
All saved posts remain in the Saved posts list of the Reader until they are removed by the user and none are removed after using a debug version of the app.
Observed
Some saved posts remain in the Saved posts list of the Reader until they are removed by the user and some are removed after using a debug version of the app.
Note
The issue seems to occur when two instances of the WordPress app are installed on a single device (i.e. one release app
org.wordpress.android
and one debug apporg.wordpress.android.beta
) and the debug app does not include the Saved posts feature. When testing the steps below on a device with the current release app, 11.3, and thedevelop
branch, alpha-142, the issue doesn't occur. The device producing the issue has the current release app, 11.3, and an old debug app, alpha-80, which did not have the Saved posts feature.Also, saved posts recently published remain after performing the steps below while saved posts published long ago are removed.
When the posts are saved does not seem to affect whether they remained or they are removed.
This scenario is not common for users since it requires both release and debug apps on a single device, but it may reveal an underlying issue with saved posts.
Reproduced
Steps performed in the release app are prefaced with "Release:" and "Debug:" for the debug app.
Tested
Google Pixel 3 on Android 9.0 with WordPress 11.3 and alpha-80
The text was updated successfully, but these errors were encountered: