Commit graph

13 commits

Author SHA1 Message Date
Kunal Mehta 2beae377e7 Move replaceAll.php into maintenance/
And fix an issue that phan found.

Change-Id: I91cb562ac674b02bb84c6c1da4236810f6a3aa3c
2018-05-03 13:08:15 -07:00
jenkins-bot d073bcd4a5 Merge "Fix items from code review" 2018-04-13 17:40:25 +00:00
Cindy Cicalese 1b237ddcee Fix items from code review
- ReplaceTextHooks:
  - Add $wgReplaceTextUser to UserGetReservedNames hook
- ReplaceTextJob:
  - Use RequestContext::importScopedSession
- replaceAll script
  - Fix summary message to use plain()
  - Fix summary message to correctly handle file-based replacements
  - Remove extra newline injected in file-based replacements

Bug: T191546
Change-Id: Ib0d7f5922761aa2fd01f989e4a0ffb7f281c2ae3
2018-04-12 12:37:49 +00:00
Kunal Mehta b7ef1e72e3 Fix @license tag on replaceAll.php
The license header added by Mark uses the standard "GPL v2 or later"
file header but had an inconsistent @license GPLv3. Since the rest of
this codebase is GPL v2 or later, I assume the @license tag added
was incorrect.

Change-Id: I17579f032bc4ab4c0d44d9c3d9094d52446ac484
2018-04-11 19:17:47 -07:00
Cindy Cicalese 3c36f7452a Update CI files, dir structure, remove inline JS.
Bug:T191546
Bug:T191919
Change-Id: Ia7ed03a98972262d164fd131bcb84994ad279c7f
2018-04-11 17:21:08 +00:00
Mark A. Hershberger ee7ac78ca7 Add option to not send enotifs on replacetext
On a wiki with thousands of users and an edit that affects thousands
of pages, ReplaceText should be able to make mass changes wihout
sending out a bunch of emails (which would then result in a bunch of
complaints from fairly active users with a long watchlist).

This adds a checkbox to disable emails.  This is done by telling
MediaWiki not to update the RecentChanges page since email
notifications are sent when the RC page is updated.

Bug: T177291
Change-Id: I119506e697a7f8e6bdda92183c098a2e733d6d3d
2018-03-27 16:29:17 +00:00
Yaron Koren 7abda3b9d7 Fix for 865bdd2b9b - added backwards compatibility
Change-Id: I60156385abff4cbb2cbbc44c9fc0f1c71414a239
2018-02-08 17:29:18 +00:00
Jayprakash12345 865bdd2b9b Update maintenance scripts to use $this->requireExtension
Bug: T152139
Change-Id: I1a6f24198538d0c8dc69997f5e4e5fa3c2cf121c
2018-01-29 18:58:39 +00:00
Kunal Mehta 8a599d3f07 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: Ic25b2569656fb1b30b759c920644c2d6f777a492
2017-06-25 13:33:00 +00:00
cicalese 11c6c2b9d8 Added nsall option. Fixed namespace and dry run handling.
Change-Id: I9d3b9a87191eea7096dc022671e271781fc7febf
2016-12-14 17:21:13 -05:00
Paladox 49b2852df6 Add composer entry point with phplint and phpcs
Bug: T136589
Change-Id: Id48228a7e90ed474ba11f3e6eea4a677c5488c03
2016-08-28 00:55:27 +01:00
yaron ecd19ebd2c Fixed inclusion of Maintenance.php
Change-Id: I712a4be0972313da7ddc862a73d8df9f01ede8fa
2015-04-30 18:53:45 +04:00
Mark A. Hershberger 133982dc59 Create CLI utility for ReplaceText jobs
This creates a new class (ReplaceTextSearch) to move the logic from
the special page so that it is available for CLI access.  Also creates
replace.php which can be used for search-replace tasks that need to be
automated.

Change-Id: I8ccec61f570f33043d8a8d00c52b40acd9d6894a
2015-04-20 14:02:28 -04:00