Last modified: 2014-02-28 13:06:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56784 - Allow the usage of the URL parameter "testfilter" on [[Special:AbuseFilter/tools]] and [[Special:AbuseFilter/examine]]
Allow the usage of the URL parameter "testfilter" on [[Special:AbuseFilter/to...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
AbuseFilter (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-08 16:49 UTC by Helder
Modified: 2014-02-28 13:06 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-11-08 16:49:27 UTC
Currently, this parameter works on links such as
https://pt.wikipedia.org/wiki/Special:AbuseFilter/examine/43169214?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27
but doesn't work on
https://pt.wikipedia.org/wiki/Special:AbuseFilter/tools?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27
or
https://pt.wikipedia.org/wiki/Special:AbuseFilter/examine?testfilter=%27FOO%27+%3D%3D%3D+%27BAR%27

It is useful for linking to a preloaded test/example, when explaining something for other abusefilter users.
Comment 1 Helder 2014-02-28 12:30:48 UTC
Also, it would be helpful to allow the content of the textarea to be preloaded, as we can do e.g. on
https://en.wikipedia.org/wiki/Special:ExpandTemplates?wpInput=EXAMPLE
In this case, "wpInput" is the value of the "id" and the "name" attributes of the field, so for consistency, on
https://test.wikipedia.org/wiki/Special:AbuseFilter/test
and
https://test.wikipedia.org/wiki/Special:AbuseFilter/examine
the parameter should be "wpTestFilter" and on
https://test.wikipedia.org/wiki/Special:AbuseFilter/tools
it should be "wpTestExpr".
Comment 2 Andre Klapper 2014-02-28 12:45:43 UTC
Not sure if this is "easy" enough for a new contributor who needs to find the right place in the code. Also, comment 1 might be a separate request.
Comment 3 Helder 2014-02-28 13:06:26 UTC
Well, I added the other parameter here as well because by looking into the related ExpandTemplates code
https://github.com/wikimedia/mediawiki-extensions-ExpandTemplates/blob/f277894539831417039d97ba4f38a44519fe17a2/ExpandTemplates_body.php#L20-L52
I think it is just a few extra lines in a single part of the code, probably this:
https://github.com/wikimedia/mediawiki-extensions-AbuseFilter/blob/f7ed4cffeec645124f6cc3111f35d00d9029f839/special/SpecialAbuseFilter.php#L21-L37

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links