Closed 0nko closed 5 years ago
It would be great if visiting the post list in the app triggered a scheduled post to be published, but even without that expectation I'm seeing a bug with scheduled posts not updating. In my case, even when the post is published it still shows as scheduled in the app post list.
I'm following the same steps as above, but at step 9 the post's status is not updated — it retains the Scheduled label.
After seeing the published post on the web I also confirmed that I see a notification in the app that my scheduled post was published:
But even after refreshing the post list in the app the Scheduled label remains on the post:
Tested on moto e5 play, Android 8.1.0, WPAndroid alpha-136
This also matches the description of the issue seen by an end user (internal ref: 1556410-zen).
We received another report of this issue in 1603054-z.
Another report in 1661064-z.
This was also reported recently in https://github.com/wordpress-mobile/WordPress-Android/issues/9018. That issue is assigned and has some discussion about the underlying problems and possible fixes, so I'm closing this report.
Expected behavior
When a scheduled post's date has passed and a post list is refreshed, the post's status should be updated to Published.
Actual behavior
The post's status stays as Scheduled even after a REST API request. Only when a particular site is visited on the web (logged out or in Calypso), the scheduled publish is triggered. After this the post's status is correctly loaded as Published in the app, as well.
The gist of the problem seems to be that the RESP API call does not trigger a cron/scheduled publish job, only a web visit does.
Steps to reproduce the behavior
Tested on [device], Android [version]
Emulator, physical devices, Android 8.1, 9, WP.COM REST API