Page MenuHomePhabricator

Set a JS config var to force VisualEditor to edit the current version
Closed, ResolvedPublicFeature

Description

Currently when ApprovedRevs is enabled and when editing page with no oldid specified, VE opens the approved version of the page, which may not be the current version (T334243). There should be a JS config var that allow ApprovedRevs and similar extensions to force VE to edit the current version.

Event Timeline

Change 928050 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/extensions/VisualEditor@master] Set a JS config var to force VisualEditor to edit the current version

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

Change 928054 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/extensions/ApprovedRevs@master] Set wgVisualEditorEditLatestRevision=true when no oldid specified

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

Change 928057 had a related patch set uploaded (by 沈澄心; author: 沈澄心):

[mediawiki/extensions/FlaggedRevs@master] Rename wgFlaggedRevsEditLatestRevision to wgEditLatestRevision

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

Change 928050 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Set a JS config var to force VisualEditor to edit the current version

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

Change 928054 merged by jenkins-bot:

[mediawiki/extensions/ApprovedRevs@master] Set wgEditLatestRevision=true when no oldid specified

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

Change 928057 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Rename wgFlaggedRevsEditLatestRevision to wgEditLatestRevision

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

matmarex assigned this task to Dringsim.

Thank you for the patches!