Last modified: 2012-12-31 14:01:56 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 T44886, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42886 - No option to move over an existing non-redirect page in the API
No option to move over an existing non-redirect page in the API
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-08 22:05 UTC by Kunal Mehta (Legoktm)
Modified: 2012-12-31 14:01 UTC (History)
5 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2012-12-08 22:05:02 UTC
If you try to move a page over one that already exists, and have the 'delete' right, you'll get the option to delete the current page and move over it (https://toolserver.org/~betacommand/2012-12-08_165111.png).

This should be an option in the API as well for users with both the 'move' and 'delete' rights. Something like &deleteexisting=1.
Comment 1 Umherirrender 2012-12-09 10:39:34 UTC
You can use &ignorewarnings= for that
Comment 2 Kunal Mehta (Legoktm) 2012-12-09 11:06:50 UTC
Wasn't aware of that option, thanks. I'll go ahead and update the documentation to reflect that.
Comment 3 Umherirrender 2012-12-09 11:26:43 UTC
Looks like, that this param is not working for delete&move. I remind wrong.
Comment 4 Brad Jorsch 2012-12-17 15:07:34 UTC
On the other hand, the API client could just call action=delete followed by action=move to achieve the same effect. Is there a disadvantage to doing this besides that it needs an additional API query?
Comment 5 Kunal Mehta (Legoktm) 2012-12-18 10:51:49 UTC
I can't think of any, just the fact that it requires an extra query.

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


Navigation
Links