Last modified: 2014-02-14 06:25:25 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 T49328, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47328 - VisualEditor: Allow users to set/edit #REDIRECT status in the page metadata panel
VisualEditor: Allow users to set/edit #REDIRECT status in the page metadata p...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Normal enhancement
: VE-deploy-2014-02-20
Assigned To: James Forrester
: easy
Depends on:
Blocks: 50878 56865
  Show dependency treegraph
 
Reported: 2013-04-17 18:25 UTC by C. Scott Ananian
Modified: 2014-02-14 06:25 UTC (History)
11 users (show)

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


Attachments

Description C. Scott Ananian 2013-04-17 18:25:02 UTC
See bug 45808 for the corresponding Parsoid bug.

Currently editing a redirected page (say "OLPC") causes the following Bad Things to happen.

a) the edited page content is saved back to "OLPC", overwriting the original #REDIRECT

b) the page content is from "One Laptop Per Child", but with an added {{Redirect:OLPC}} template at the top; this extra template gets saved back with the rest of the edits.

In bug 45808, Parsoid will return a special <meta> or <link> tag in the body for redirected pages.  This bug is for the corresponding VE support to recognize that tag and provide a user-friendly interface for editing redirects.
Comment 1 James Forrester 2013-04-17 18:50:46 UTC
This is probably a post-July task; have split off a "don't fail horribly" bug as bug 47329, linked.
Comment 2 C. Scott Ananian 2013-04-17 19:11:33 UTC
There's now a spec for redirects in the DOM: http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Redirects
Comment 3 James Forrester 2013-05-17 06:27:47 UTC
Some quick advice on this one:

* There'll need to be code in DM and UI; the code in Parsoid which it will interact with has just been merged into their master.
* I'd suggest looking at how {{DEFAULTSORT}} works as a starting point - see https://gerrit.wikimedia.org/r/#/c/61374/ for the DM side.
* On the UI side, you'd want to create a new panel in the meta-data dialog ("Page settings" is probably the best name, though that's also the display name of the dialog, but we can fiddle with that later) into which you'd put a checkbox with an associated text box for a page name, with auto-suggest (like the link inspector has).
Comment 4 Ed Sanders 2013-05-17 11:26:37 UTC
Redirect editing disabled by https://gerrit.wikimedia.org/r/64275, will need to be re-enabled when this bug is addressed.
Comment 5 James Forrester 2013-05-17 16:03:53 UTC
Assigning to Jiabao Wu as discussed on bug 48489 comment 4.
Comment 6 WhatamIdoing 2013-07-02 09:05:03 UTC
This is likely obvious to everyone, but:  We need a way to create redirects in VisualEditor from redlinks.

VE is currently (02 July 2013) turned off for editing redirect pages at en.wikipedia.org.  However, it's still possible to create these pages using VE, which end up nowiki-ed and broken.
Comment 7 Chris McKenna 2013-07-02 18:55:38 UTC
It is also possible to fail to convert a non-redirect page into a redirect (e.g following a merge).
Comment 8 Gerrit Notification Bot 2013-11-13 03:29:56 UTC
Change 95103 had a related patch set uploaded by Jforrester:
[WIP] Let users set #REDIRECT, __NOTOC__, & __FORCETOC__

https://gerrit.wikimedia.org/r/95103
Comment 9 Gerrit Notification Bot 2013-11-13 20:17:18 UTC
Change 95213 had a related patch set uploaded by Jforrester:
[WIP] Let users set #REDIRECT

https://gerrit.wikimedia.org/r/95213
Comment 10 Gerrit Notification Bot 2014-02-14 03:46:18 UTC
Change 95213 merged by jenkins-bot:
Let users set #REDIRECT and __STATICREDIRECT__ status

https://gerrit.wikimedia.org/r/95213
Comment 11 MZMcBride 2014-02-14 06:25:25 UTC
(In reply to Gerrit Notification Bot from comment #10)

Neat! Is there documentation about this panel and/or a place to test it?

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


Navigation
Links