Last modified: 2012-10-24 14:58:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5835 - Remove articles matching SQL LIKE pattern
Remove articles matching SQL LIKE pattern
Product: MediaWiki extensions
Classification: Unclassified
Nuke (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Jeroen De Dauw
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2006-05-05 07:51 UTC by Phil Harnish
Modified: 2012-10-24 14:58 UTC (History)
3 users (show)

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

Patches /extensions/SpecialNuke.php HEAD (5.06 KB, patch)
2006-05-05 07:53 UTC, Phil Harnish

Description Phil Harnish 2006-05-05 07:51:30 UTC
This patch adds another text box to enter an SQL LIKE style pattern. Submitting
something like %s% will give a list of matching pages where you can provide a
reason and then delete them.

(Adding patch in a comment)
Comment 1 Phil Harnish 2006-05-05 07:53:02 UTC
Created attachment 1656 [details]
Patches /extensions/SpecialNuke.php HEAD

Patches the HEAD version of /extensions/SpecialNuke.php
Comment 2 Brion Vibber 2006-08-31 17:20:20 UTC
I worry that it's a little too easy to accidentally nuke your whole wiki with this... :)
Comment 3 Rob Church 2006-08-31 17:23:37 UTC
(In reply to comment #2)
> I worry that it's a little too easy to accidentally nuke your whole wiki with
this... :)

Indeed. How about, then, if the special page produced a list of all pages which
would be affected in the delete operation, and gives the user the option to
deselect precious pages, false matches due to their crap regular expression, or
abort the entire operation?

Comment 4 Jeroen De Dauw 2011-11-10 15:48:18 UTC
Woha, this is an old patch o_O

I'm going to see if I can apply it; will need some modifications as it's using functions that no longer exist :)
Comment 5 Jeroen De Dauw 2011-11-10 17:50:43 UTC
I implemented the functionality added in this patch, although I ended up not using the code proposed here. See r102665

Thanks for the patch though :)
Comment 6 Emufarmers 2012-07-19 01:40:23 UTC
We should reconsider the syntax used for this.  SQL LIKE syntax is not what most users are going to be expecting here.  At the very least, the field should adequately explain the syntax.
Comment 7 Isarra 2012-07-19 02:46:36 UTC
Aye, this kind of pattern matching seems like the sort of thing with a very specific target audience and use case even if folks do know what it is. Perhaps also turning this into an option that can be enabled with a hook for those who want it would work better? I understand that adding something more consistent with other pattern matching typical of mediawiki extensions such as regex which would be much harder to implement, unfortunately, though a prefixindex might be easier?
Comment 8 Mormegil 2012-10-24 14:58:35 UTC
The feature was implemented exactly as initially devised in this enhancement request. Bug 35783 complains about the user unfriendliness, so closing this and leaving the unfriendliness for Bug 35783.

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