UI for adding and removing change tags on revisions and log entries
authorThis, that and the other <at.light@live.com.au>
Wed, 15 Apr 2015 01:31:53 +0000 (11:31 +1000)
committerAnomie <bjorsch@wikimedia.org>
Wed, 15 Apr 2015 18:31:12 +0000 (18:31 +0000)
commit5c4681012e78a8d5004eea917eba90d448d7e0f3
tree42f57e873cdd60484c5feb18f97784fdcd2d278a
parentae3ab9eef0379e3e0a6cd9408f153648297e0853
UI for adding and removing change tags on revisions and log entries

There is a new special page, Special:EditTags, which is very similar to
Special:RevisionDelete in a lot of ways. In fact, the SpecialEditTags class
started off as a copy-paste of SpecialRevisiondelete.

You invoke this special page by going to an article history page, checking
some revisions, and clicking "Edit tags of selected revisions". Then you
pick the modifications you want to make and click "Apply". Very much like
the revision deletion workflow.

I had to restructure some of the Action routing code, which was only
designed to handle revision deletion. Also removing some code from
SpecialRevisiondelete which didn't work as advertised in the first place,
and definitely doesn't work now.

Change-Id: I7d3ef927b5686f6211bc5817776286ead19d916b
25 files changed:
autoload.php
includes/ChangeTags.php
includes/DefaultSettings.php
includes/RevisionList.php
includes/actions/Action.php
includes/actions/HistoryAction.php
includes/actions/RevisiondeleteAction.php
includes/actions/SpecialPageAction.php [new file with mode: 0644]
includes/changetags/ChangeTagsList.php [new file with mode: 0644]
includes/changetags/ChangeTagsLogItem.php [new file with mode: 0644]
includes/changetags/ChangeTagsLogList.php [new file with mode: 0644]
includes/changetags/ChangeTagsRevisionItem.php [new file with mode: 0644]
includes/changetags/ChangeTagsRevisionList.php [new file with mode: 0644]
includes/specialpage/SpecialPageFactory.php
includes/specials/SpecialEditTags.php [new file with mode: 0644]
includes/specials/SpecialLog.php
includes/specials/SpecialRevisiondelete.php
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki.action/mediawiki.action.history.js
resources/src/mediawiki.legacy/shared.css
resources/src/mediawiki.special/mediawiki.special.edittags.css [new file with mode: 0644]
resources/src/mediawiki.special/mediawiki.special.edittags.js [new file with mode: 0644]
tests/phpunit/includes/actions/ActionTest.php