Last modified: 2012-10-24 14:58:35 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 T7835, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5835 - Remove articles matching SQL LIKE pattern
Remove articles matching SQL LIKE pattern
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Nuke (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Jeroen De Dauw
: patch, patch-need-review
Depends on:
Blocks:
  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: ---


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

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.


Navigation
Links