Page MenuHomePhabricator

Visual diffs not showing in mobile VE (when visual section editing is disabled)
Closed, ResolvedPublic

Description

Issue overview

Unable to view "👁 Visual" diff in mobile VE.

Expected behavior

  1. Make an edit in mobile VE to https://en.m.wikipedia.org/wiki/List_of_regions_of_the_United_States
  2. Tap "✓" in toolbar
  3. Tap "Publish"
    • Arrive at "Save your changes view"
  4. Compose edit summary
  5. Tap "Review your changes"
    • Arrive at "Review your changes view"
  6. Make sure "visual" diffs are selected
  7. Visual diff is displayed

Actual behavior

  1. Make an edit in mobile VE to https://en.m.wikipedia.org/wiki/List_of_regions_of_the_United_States
  2. Tap "✓" in toolbar
  3. Tap "Publish"
    • Arrive at "Save your changes view"
  4. Compose edit summary
  5. Tap "Review your changes"
    • Arrive at "Review your changes view"
  6. Make sure "visual" diffs are selected

7) Visual diff is displayed ⚠️ Loading overlay loops endlessly.

  • This video demonstrates the "Actual behavior" described in the steps above.

Enviornment

  • Device: iPhone Xs
  • OS: iOS 12.2
  • Browser: Safari
  • Internet connection: tested on both Wifi and LTE

Event Timeline

ppelberg renamed this task from Visual diffs not loading in mobile VE to Visual diffs not showing in mobile VE.May 3 2019, 10:24 PM
ppelberg updated the task description. (Show Details)
ppelberg updated the task description. (Show Details)

@ppelberg: Could you specify which article you were editing? I can't reproduce this on my sandbox on production, so assuming this is not a generic issue.

ppelberg updated the task description. (Show Details)

@ppelberg: Could you specify which article you were editing? I can't reproduce this on my sandbox on production, so assuming this is not a generic issue.

For sure – it was this article: https://en.m.wikipedia.org/wiki/List_of_regions_of_the_United_States (updated the task's description as well).

@ppelberg: Could you specify which article you were editing? I can't reproduce this on my sandbox on production, so assuming this is not a generic issue.

For sure – it was this article: https://en.m.wikipedia.org/wiki/List_of_regions_of_the_United_States (updated the task's description as well).

Thanks! :) Works fine on my device (iPhone5s) btw. I see a bit of a lag while opening that section though.

I can't reproduce on this page, but I ran into an exception when testing an unrelated thing on desktop:

TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

…coming from the code added in rEVEDec6cbeaf5e49: Only diff <section> contents in section editing mode. Might be the same issue.

The mobile visual section editing A/B test is still running, right? Maybe that's why we get different results.

Change 508367 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Fix diffs in non-section-editing mode

https://gerrit.wikimedia.org/r/508367

matmarex renamed this task from Visual diffs not showing in mobile VE to Visual diffs not showing in mobile VE (when visual section editing is disabled).May 6 2019, 5:42 PM

Change 508367 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Fix diffs in non-section-editing mode

https://gerrit.wikimedia.org/r/508367

Change 508374 had a related patch set uploaded (by Jforrester; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@wmf/1.34.0-wmf.3] Fix diffs in non-section-editing mode

https://gerrit.wikimedia.org/r/508374

Looks like James is volunteering to backport the patch to production. Meanwhile, it should be testable on Beta.

The mobile visual section editing A/B test is still running, right? Maybe that's why we get different results.

Good call, @matmarex. cc @Ryasmeen

Update

I just tested on my WMF account and re-tested on my personal account. I am now seeing visual diffs on both accounts, following the same steps listed in this task's description and with the same device/browser/OS configuration. Read: the issue doesn't seem to be present any more.

I also tested on beta (article linked below) and visual diffs are working there for me as well.

Summary:

AccountidSection editingIssue
personalevennot presentno issues – visual diffs are displayed
WMFoddpresentno issues – visual diffs are displayed

Beta article tested: https://en.m.wikipedia.beta.wmflabs.org/wiki/Dog

Change 508374 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@wmf/1.34.0-wmf.3] Fix diffs in non-section-editing mode

https://gerrit.wikimedia.org/r/508374

Mentioned in SAL (#wikimedia-operations) [2019-05-07T00:38:06Z] <jforrester@deploy1001> Synchronized php-1.34.0-wmf.3/extensions/VisualEditor/modules/ve-mw/init/ve.init.mw.ArticleTarget.js: Hot-deploy fix for visual diffs on mobile in non-section mode T222489 (duration: 00m 53s)