For use by Huggle.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add tag parameter to API action=rollback | mediawiki/core | master | +18 -0 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Petrb | T111664 Make it possible to tag Huggle edits | |||
Resolved | Petrb | T112393 Tag rollback-edits with the Huggle-tag | |||
Resolved | Mhutti1 | T111948 Add tag parameter to API action=rollback |
Event Timeline
Right now it doesn't seem to be possible even to extensions. AbuseFilter seem to ignore rollbacks as well.
What is internal name for "Tags" in mediawiki code. I found parameter $flags in doEdit(), which is missing in doRollback() that might be that. If it's true, this parameter probably needs to be implemented there in first place, otherwise there is likely no way to perform a rollback with "Tags".
It seems that tags are located in EditPage class, which is however completely bypassed by ApiRollback as it directly calls WikiPage->doRollback which doesn't seem to contain any parameter that could be used to pass the tags. So, the code of doRollback probably would need to modified so that it's possible to pass any tags to it.
I'll mentor this in #GCI2015. The mission here is basically to replicate what was done at https://gerrit.wikimedia.org/r/#/c/230526/6/includes/api/ApiDelete.php (up to line 105 on the right side of the diff), but for ApiRollback.php instead.
Change 259428 had a related patch set uploaded (by Mhutti1):
Add tag parameter to API action=rollback
We'll run into the same issues as T100248, since the RC is deferred but not the addition of tags. I'll make a commit that fixes that.