Last modified: 2013-07-09 00:07:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52441, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50441 - VisualEditor: [Regression] Edit tab points to the oldid not the newid when saving (except for when creating pages)
VisualEditor: [Regression] Edit tab points to the oldid not the newid when sa...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Highest blocker
: VE-deploy-2013-07-11
Assigned To: Krinkle
: code-update-regression
: 50555 50596 (view as bug list)
Depends on:
Blocks: 50848
  Show dependency treegraph
 
Reported: 2013-06-30 01:13 UTC by Carl Fürstenberg
Modified: 2013-07-09 00:07 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screen recording of the bug (1.22 MB, video/x-matroska)
2013-06-30 13:07 UTC, Carl Fürstenberg
Details

Description Carl Fürstenberg 2013-06-30 01:13:50 UTC
After save of page using VisualEditor on beta, and clicking on Edit again (I am on the current page, as the content has been updated), I don't get the latest revision, but the revision I had before (the content switches back to the old version), and getting a warning that I'm not editing the latest version
Comment 1 Krinkle 2013-06-30 02:08:02 UTC
What url do you go to initially?
After saving and reading the page, what do you see. The version from before you edited or after, and what does the url look like?

When going into edit mode after saving, what does the url look like?
Comment 3 Carl Fürstenberg 2013-06-30 13:07:53 UTC
Created attachment 12694 [details]
Screen recording of the bug
Comment 4 Carl Fürstenberg 2013-06-30 13:09:34 UTC
Comment on attachment 12694 [details]
Screen recording of the bug

This is how the problem materialize for me, as you see, it jumps back to the previous revision on edit, and then complains it's not the latest revision.
Comment 5 James Forrester 2013-07-02 06:36:49 UTC
*** Bug 50555 has been marked as a duplicate of this bug. ***
Comment 6 pamdavies7 2013-07-04 21:30:01 UTC
Pending a full solution, is there any way that the pink error box can be amended to include something like: "Please click the "Cancel" button, then Refresh/Reload the page and try again. Apologies for this temporary problem - we are working on it."

It's irritating for an experienced editor who has found the work-round, but must be desperately confusing for a new editor who has just made an edit, had an afterthought, and gets that message.
Comment 7 James Forrester 2013-07-04 21:39:09 UTC
(In reply to comment #6)
> Pending a full solution, is there any way that the pink error box can be
> amended to include something like: "Please click the "Cancel" button, then
> Refresh/Reload the page and try again. Apologies for this temporary problem -
> we are working on it."
> 
> It's irritating for an experienced editor who has found the work-round, but
> must be desperately confusing for a new editor who has just made an edit, had
> an afterthought, and gets that message.

The message displayed is editable by any English Wikipedia sysop; this doesn't need any code changes to alter the text, or remove the bright pinkness, but you should discuss it with the community: https://en.wikipedia.org/wiki/MediaWiki:Editingold

We're hoping to get this regression fixed soon; sorry for the inconvenience.
Comment 8 pamdavies7 2013-07-04 22:16:35 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Pending a full solution, is there any way that the pink error box can be
> > amended to include something like: "Please click the "Cancel" button, then
> > Refresh/Reload the page and try again. Apologies for this temporary problem -
> > we are working on it."
> > 
> > It's irritating for an experienced editor who has found the work-round, but
> > must be desperately confusing for a new editor who has just made an edit, had
> > an afterthought, and gets that message.
> 
> The message displayed is editable by any English Wikipedia sysop; this
> doesn't
> need any code changes to alter the text, or remove the bright pinkness, but
> you
> should discuss it with the community:
> https://en.wikipedia.org/wiki/MediaWiki:Editingold
> 
> We're hoping to get this regression fixed soon; sorry for the inconvenience.

OK, have raised a suggestion at [[MediaWiki_talk:Editingold#VE_problem]]. If there's any likely timescale for the fixing of this bug, it might be useful to comment there: is "soon" likely to be hours, days, or weeks?!
Comment 9 James Forrester 2013-07-05 00:39:20 UTC
(In reply to comment #8)
> If there's any likely timescale for the fixing of this bug, it might be
> useful to comment there: is "soon" likely to be hours, days, or weeks?!

Days. :-) Don't want to promise "tomorrow" if we don't manage to fix it by then, but certainly as soon as we can get it written, tested and deployed.
Comment 10 Krinkle 2013-07-05 07:33:32 UTC
Figured out the cause:

This revision id for the page is initialised in ve.init.mw.Target from wgCurRevisionId but then never updated.
Comment 11 Krinkle 2013-07-05 07:34:54 UTC
Which makes me wonder, why are we using that in the first place. Don't we always want to be editing the latest version (except when url has oldid=) even if the latest version is more recent than the version the user is reading (either because the page is cached or because an edit was made while the user was viewing the page).
Comment 12 Krinkle 2013-07-05 07:55:56 UTC
Actually, though we are indeed initialising for the version the user is reading instead of the latest version (separate bug) we do update `this.oldid` in mw.ViewPageTarget#onSave based on the data we got from the API.

However the API isn't returning that data, there is no "data.newrevid" returned by ApiVisualEditor.
Comment 13 Gerrit Notification Bot 2013-07-05 07:56:38 UTC
Change 72070 had a related patch set uploaded by Krinkle:
mw.ViewPageTarget: Only pass oldid if we have to and clear/update it on save

https://gerrit.wikimedia.org/r/72070
Comment 14 ssastry 2013-07-05 21:52:33 UTC
Bug 47420 is the same thing that was reopened.  One of these two should be merged as a duplicate of the other.
Comment 15 James Forrester 2013-07-07 00:03:11 UTC
*** Bug 50596 has been marked as a duplicate of this bug. ***
Comment 16 Gerrit Notification Bot 2013-07-08 23:16:17 UTC
Change 72070 merged by jenkins-bot:
mw.ViewPageTarget: Fix incorrect retention of the wrong oldid

https://gerrit.wikimedia.org/r/72070
Comment 17 James Forrester 2013-07-09 00:07:12 UTC
This is now deployed and appears to be working as expected in production, according to my testing. Marking as fixed. Please re-open if you find otherwise.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links