Page MenuHomePhabricator

Add variable for categories added/removed in an edit or new/old categories
Open, LowPublicFeature

Description

Not just [[Category:Foo]] additions, but also categories from templates, should be available. At least a variable for categories after the edit would be useful.


Version: unspecified
Severity: enhancement

Details

Reference
bz58954

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:25 AM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz58954.

Alternatively, a list of wikilinks added (including cats) would be okay.

PiRSquared17: Did you talk to agarrett and did he agree to implement this?

(In reply to comment #2)

PiRSquared17: Did you talk to agarrett and did he agree to implement this?

No, but I did ask him on his talk page on MW.org.

werdna unsubscribed.

@Daimona is this doable? I am assuming yes, because AbuseFilter has access both to the wikitext and the parsed output, so presumably, it should also have access to categories in which the old and new page would be, right?

@Daimona is this doable? I am assuming yes, because AbuseFilter has access both to the wikitext and the parsed output, so presumably, it should also have access to categories in which the old and new page would be, right?

Yeah, this is doable. It'll be expensive, especially the part for extracting categories from the old wikitext, but doable. This would be very similar to the code for (all|removed|added)_links in AFComputedVariable, because ParserOutput gives access to categories as well. Something similar to getLinksFromDB will be needed to extract categories from the old wikitext.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.