Merge AssertEdit extension into core
authorKunal Mehta <legoktm@gmail.com>
Wed, 16 Oct 2013 22:27:59 +0000 (15:27 -0700)
committerReedy <reedy@wikimedia.org>
Mon, 6 Jan 2014 18:45:15 +0000 (18:45 +0000)
commitb1b49af536fe4f78dfed4f33aba76a163df259bf
tree050bbb8d0394d30ff374bd4ebccdf4c59c17059e
parentce2b03fb0b9315e1fa7a0f2dc2007521d1aaa572
Merge AssertEdit extension into core

Added &assert=user and &assert=bot for all API modules.

Some functionality was dropped:
* assert='exists': the edit API already has &nocreate/&createonly
* nassert parameter: there is no usecase for checking that your
  account is logged out or not flagged
* assert=true/false: If you want to test a failing assertion, log out
* assert=test: Not useful
* Checking edits via index.php

The error format was changed from:
{"edit": {"assert": "bot", "result": "Failure"}}
to the standard format of API errors in an 'errors' array
using the codes: 'assertuserfailed' and 'assertbotfailed'.

Bug: 27841
Bug: 53106
Change-Id: Ia4815168548fea3dbf1c305792a451374f2a3b7e
RELEASE-NOTES-1.23
includes/api/ApiMain.php