Gerrit change 107389[1] adds RevDel support to various API query modules,
so for example a user with the 'deletedhistory' right will be able to
retrieve the user and summary from prop=revisions.
This will cause some changes:
- list=deletedrevs, list=filearchive, list=recentchanges, and
list=watchlist formerly would not return any information at all for entries
where any field was revision-deleted. These entries will now be returned.
"hidden" indicators will be provided as is done for modules such as
prop=revisions.
- prop=imageinfo, list=logevents, prop=revisions, and list=usercontribs
will now return field values in addition to the "hidden" indicators, if the
user has the necessary user rights.
- When "hidden" indicators are returned, a new indicator "suppressed"
may also be returned to indicate whether suppression was activated.
- prop=imageinfo will now return info for revision-deleted files.
- list=logevents, when searching by user or title, will no longer skip
revisions where the user or title was revision-deleted if the requesting
user has the deletedhistory right.
- list=usercontributions will now look at the correct user rights
(deletedhistory and suppressrevision, not hideuser) to determine whether to
hide revision-deleted contributions.
All clients should be updated to expect rows with hidden fields for
deletedrevs, filearchive, recentchanges, and watchlist, and clients with
advanced permissions should be updated to properly handle (and to not
publicly reveal) the data for revision-deleted fields from these modules as
well as imageinfo, logevents, revisions, and usercontribs.
These changes will be deployed to WMF wikis with 1.23wmf11, see
https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.
[1]: https://gerrit.wikimedia.org/r/#/c/107389/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
The AssertEdit extension has long been installed on WMF wikis,
allowing bots to include "&assert=user" or "&assert=bot" in their
action=edit requests to prevent accidentally editing while logged out.
With Gerrit change 90263,[1] the functionality will be included in
MediaWiki core. At the same time, the following changes will be made
to the functioning of this feature:
* Assertion will be available on all API actions, not just edit.
* Assertion failure will now be indicated by an API error, code
'assertbotfailed' or 'assertuserfailed'.
* The 'nassert' parameter will be ignored, and using it will give an
unrecognized parameter warning.
* Other assertions, such as 'true', 'false', and 'exists', will no
longer function and attempting to use them will result in an
'unknown_assert' error.
Most clients should notice little change from this transition besides
the fact of receiving an error rather than a failure status from
action=edit.
This change will be rolled out with 1.23wmf10, see
https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the
schedule.
[1]: https://gerrit.wikimedia.org/r/#/c/90263/
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
When uploading files via the API, various warnings may be returned. One of
these warnings is "deleted-archive", with a value indicating the title
under which the file was previously uploaded and deleted.
With the merge of Gerrit change 105215,[1] which fixes bug 59167,[2] this
"deleted-archive" warning may have an empty value when the file content has
been suppressed. Clients should be adjusted to account for this possibility.
[1]: https://gerrit.wikimedia.org/r/#/c/105215/
[2]: https://bugzilla.wikimedia.org/show_bug.cgi?id=59167
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation