Page MenuHomePhabricator

Implement wbcreateredirect API module
Closed, ResolvedPublic

Description

wbsetredirect should be used to turn an item page into a redirect.

Turning a page into a redirect should only be possible if that page is empty or already a redirect.

This module is needed to restore deleted pages on wikidata.org as redirects.


Version: unspecified
Severity: enhancement
Whiteboard: u=dev c=backend p=13 s=2014-07-15

Details

Reference
bz65584

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:11 AM
bzimport set Reference to bz65584.
bzimport added a subscriber: Unknown Object (MLST).

Question: I thought an item can only become a redirect after merging? I think the best behaviour to resotre deleted pages as redirects is to restore them and then turn them into redirects by merging them again (which has no effect to the item but avoids a magic api module).

Change 143366 had a related patch set (by Daniel Kinzler) published:
Introduce wbcreateredirect api module

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

Change 143366 merged by Jeroen De Dauw:
Introduce wbcreateredirect API module

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