Page MenuHomePhabricator

[BUG] Updated article version does not shown immediately upon publishing an edit in the app
Closed, ResolvedPublicBUG REPORT

Description

This is still occurring as reported on https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=10758331 and reproducible

Steps to reproduce

  1. Open an article in the app that is editable (suggest using test.wiki)
  2. Make a minor edit, eg. add a link or fix a typo/grammatical error
  3. Publish the edit

Expected

Once edit is published successfully, the article should be refreshed to reflect the changes made.

Actual

The article shows the version prior to the edit, and needs to be manually refreshed (by scrolling to the top of the article and pulling down) in order to see the change. This sometimes has to be done multiple times before the change is reflected.

See demo bug:
https://youtu.be/MgURxhPcuNc
User must manually refresh multiple times, note that view in browser the edit has been published immediately in the example above.


Original task description

When I Publish an edit on my smartphone* in the mobile in WP Beta, the change does not always appear, and there is no Refresh/Reload button (as there is in the standard Mobile) to force it.

*Phone info:
Samsung S-6 Verizon SM-G920V
Android version 7.0, Nougat
Baseband v. G920VVRS4DQE1
kernel version 3.10.61
dpi@SWDD6512 #1
Android security patch level May 1, 2017
Build number
NRD90M.G920VVRS4DQE1
Enforcing
SEPF_SECMOBILE_7.0_0005
Thu May 04 21:24:48 2017
Hardware version G920V.07

Event Timeline

Hi @Thnidu, thanks for taking the time to report this!
What is "the mobile in WP Beta"? Is this about some Wikipedia website (which one, links welcome)? Is this about the Wikipedia mobile application?
Steps to reproduce are welcome. :)

  1. It's on the Google Play Store as Wikipedia Beta https://play.google.com/store/apps/details?id=org.wikipedia.beta. You may need an Android phone (see bug report) to get the right one and replicate this test.
    1. Install it.
    2. Open it.
    3. In the app, go to https://en.m.wikipedia.org/wiki/User:Thnidu/sandbox#T173098_test . You'll see the successful edits I just made there. (I kept reiterating to check the details of each step.) As I type this reply in gmail on my laptop, I see it here but not on my mobile. Of course this should replicate on any page, but this seems to be the right place!
    4. Make an edit of your own.
    5. Hit *Next*. You will see the effect of the edit that you just made.
    6. Optionally, choose an edit summary box.
    7. Hit *Publish.* On the Android the section will look unchanged.
    8. Open it in your browser of choice. (I use Firefox. Same result in Chrome.) You'll see the effect of the edit.
    9. Open the page on a... stable? (What do we generically call a device that's *not* mobile?) You will see the change in effect.
    10. Back to the Android. Click the tab-history icon: the "page" icon in the header bar with a number in it, up to "9+"; it's 2nd from the right, next to the vertical-three-dots menu. You'll see the tab history laid out vertically. The bottom tab will be the most recent one; close it by clicking the X.
    11. Reopen the page. *Now* you will see the edit in effect.

HTH!

. http://www.gnuterrypratchett.com/

This is a known issue. (Previously: T141763, T137902, T137669)

The Android app obtains cached article content from RESTBase. When an article is edited (an action performed via the MediaWiki-Action-API, not RESTBase), a ChangeProp event is queued to inform RESTBase to regenerate and cache a new copy of that article for the app endpoints. This notification happens asynchronously. When the app reloads the article, ideally RESTBase has been updated, but it sometimes happens that it hasn't been.

We've been getting by with a short delay in the app before reloading, but lately I, too, have seen the old version reload after editing. We need a better fix but I don't believe there's any consensus at this point on what that should be. I couldn't find an existing task about this, so let's leave this task open for further discussion.

In the meantime, in the event this occurs, you can refresh the article by pulling down with your finger, and you will usually see the updated version on the first or second try.

Mholloway renamed this task from Beta mobile: edits don't update on Publish to Old article version is shown upon publishing an edit.Aug 16 2017, 4:38 PM
Mholloway renamed this task from Old article version is shown upon publishing an edit to Updated version is not always shown upon publishing an edit.
Mholloway renamed this task from Updated version is not always shown upon publishing an edit to Updated article version is not always shown upon publishing an edit.

Yes, to refresh a page in the Android app you pull down from the top of the screen until the refresh indicator appears, then let go.

One thing to try is to retrieve the revision number from the edit response, and use that when loading the just edited page.
.../page/mobile-sections-lead/{title}/{revision}
+ .../page/mobile-sections-remaining/{title}/{revision}

RHo renamed this task from Updated article version is not always shown upon publishing an edit to [BUG] Updated article version does not shown immediately upon publishing an edit in the app.Aug 3 2018, 10:04 AM
RHo updated the task description. (Show Details)

As we work toward enabling visual editing in the apps, perhaps we could keep in mind the idea of POSTing directly to RESTBase via /page/html/{title} or /page/wikitext/{title}, which would solve this once and for all.

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptNov 19 2019, 5:58 PM

This issue concerns the service(s) that propagate resource change events and issue update requests resulting from such changes to the Page Content Service. Those are maintained by the Core Platform Team, so I'm tagging them here.

That said, this task should probably either have some concrete acceptance criteria or be closed as non-actionable. As I understood it the last time this was discussed, we'll never be able to fully eliminate the possibility of delay between an edit and a PCS update rendering request, but under normal circumstances the turnaround should be fast enough not to be noticed by the user. Have reports of delays increased recently?

As reported by me in https://phabricator.wikimedia.org/T237859 , the update of the wikidata content of the dewiki "Briar (Instant Messenger)" page recetnly had a delay of more than 8 days which is not acceptable.

Knut (Notknut) of Wikidata team has been contacted, he recommended to fiel the issue regarding wikidata (https://phabricator.wikimedia.org/T237859).

Remark: the update of the dewiki page wiki body content took a very few minutes.

Mholloway claimed this task.

Ah, I see the issue now. T237859 is a distinct issue, and I'll follow up there with further dicussion. In the meantime, I'm going to be bold and close this task. New incidents should be documented in new tasks.