Commit graph

913 commits

Author SHA1 Message Date
libraryupgrader be197b8c57 build: Updating grunt to 1.3.0
* https://npmjs.com/advisories/577 (CVE-2018-3721)
* https://npmjs.com/advisories/745
* https://npmjs.com/advisories/782 (CVE-2018-16487)
* https://npmjs.com/advisories/788
* https://npmjs.com/advisories/813
* https://npmjs.com/advisories/1065 (CVE-2019-10744)
* https://npmjs.com/advisories/1523 (CVE-2019-10744)

Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".
* Committed package-lock.json (T179229) too.
* Consolidated .phpcs.xml encoding to "UTF-8" (T200956).
* Dropped .php5 and .inc files from .phpcs.xml (T200956).
* Also sorted "composer fix" command to run phpcbf last.
* Added the "composer phan" command to conveniently run phan.
* Set `root: true` in .eslintrc.json (T206485).
* Enable eslint caching.

Change-Id: I226ec86e0b2ed01892047197f2cb7bb3f1ca9fa8
2021-01-02 20:02:56 +00:00
Reedy 2b6c376414 Upgrade mediawiki-codesniffer for php7.3 support
Bug: T236070
Change-Id: I69a3c8a43c36f3389f7c575c26e9b5a7c358896e
2020-11-10 21:58:07 +00:00
Cindy Cicalese a027ec972c Fix path to maintenance directory.
Change-Id: Ife7a7076ee87938cadb84aa56982cc667bd90e2f
(cherry picked from commit f7b59db9b3)
2018-05-16 15:05:42 +00:00
jenkins-bot e3edfbd010 Merge "Add GPL file headers to PHP classes that are missing it" into REL1_31 2018-05-07 05:33:28 +00:00
jenkins-bot 352e932efc Merge "Move replaceAll.php into maintenance/" into REL1_31 2018-05-07 05:32:39 +00:00
jenkins-bot a000d3157f Merge "Standardized DB type checking" into REL1_31 2018-05-07 03:26:09 +00:00
Yaron Koren 24f0ab9bad Standardized DB type checking
Change-Id: I374c0f9ce0e79181842f53fe9e5778e3fcdc1dcb
(cherry picked from commit 43b753b86d)
2018-05-07 01:29:36 +00:00
Kunal Mehta 2a6070ab82 Move replaceAll.php into maintenance/
And fix an issue that phan found.

Change-Id: I91cb562ac674b02bb84c6c1da4236810f6a3aa3c
(cherry picked from commit 2beae377e7)
2018-05-07 01:29:30 +00:00
Kunal Mehta dd60f71983 Add GPL file headers to PHP classes that are missing it
Change-Id: Id8a0f08d9133e07bb5e03a618e6b9c0fe06d8b50
(cherry picked from commit d5342d874d)
2018-05-07 01:29:24 +00:00
Yaron Koren d5fc4b8655 Added limit for search query
Change-Id: I62cd622cfd2f9d44f09648ec51932acdb54a3991
(cherry picked from commit c854531150)
2018-05-07 01:29:17 +00:00
Yaron Koren 42748d0d6d Disable regex option for SQLite
Change-Id: I83c8b38a47fc571077fef1fccabb31f5db0ac2e5
(cherry picked from commit d7db166e4f)
2018-05-03 19:53:24 +00:00
Yaron Koren 94058ed6f2 Fix for ee7ac78ca7 - removed extra checkbox for moved pages
Change-Id: I34b3e6186a3136dd9a53ce81b44bf985fd82e7f0
(cherry picked from commit fca559a72e)
2018-05-03 13:08:12 +00:00
Cindy Cicalese e2502bffc9 Added HtmlArmor.
Bug:T191546
Change-Id: I16de28f829953eb8d1e028e600ca53f583e64e67
(cherry picked from commit 1f292fb405)
2018-05-02 15:47:39 +00:00
jenkins-bot 0ce87f0aa1 Merge "build: Simplify linter configs" into REL1_31 2018-05-01 21:00:28 +00:00
Cindy Cicalese c21c77840f Remove inline JavaScript
Bug:T191546
Change-Id: I14306c05b50a4a9319ed31f8e714a8cab629ca73
(cherry picked from commit 288bd4f5e2)
2018-05-01 20:42:25 +00:00
Cicalese 441b25f47a Merge "Fix for abc67edb70 - fixed error message" into REL1_31 2018-05-01 20:42:03 +00:00
Timo Tijhof 7726ed6a5e build: Simplify linter configs
* eslint: Already excludes node_modules by default.
  https://eslint.org/docs/user-guide/configuring#ignoring

* eslint: Expands directories by default, much faster to
  let ESLint crawl the directories while knowing what to exclude,
  then to let Grunt expand **/** recursively run each file
  individually.
  This makes Grunt run ESLint the same way as one normally
  would from the command line: `eslint .`, except without
  the eslint CLI sub-process.

* eslint: Preserve the exclude for vendor via eslint config
  so that it also works when running ESLint outside Grunt,
  e.g. in IDEs or from the command line with extra options.

* stylelint: Ignores node_modules by default.
  https://stylelint.io/user-guide/node-api/#files

Change-Id: I1a78e9d93e7666c1539bcf4a3bc50306cecf89ba
(cherry picked from commit 20f34321f4)
2018-05-01 19:58:43 +00:00
Kunal Mehta 36eecc7cb7 Add phan configuration
Change-Id: I405d1d86e43c99fbaecf027461781bf57110421e
(cherry picked from commit efd15f5058)
2018-05-01 19:58:37 +00:00
Yaron Koren 47bdb4c295 Fix for abc67edb70 - fixed error message
Change-Id: Ib98dea476efc2d690b15095fb2abccc0be0ed82d
(cherry picked from commit 7efd765c85)
2018-05-01 19:58:29 +00:00
Cindy Cicalese 6d983b645e Correctly localize special page name.
Change-Id: I05b337358b0f205dd11cf05491303f4b9068b242
2018-04-18 21:02:44 +00:00
Cindy Cicalese 64f66dba48 Fix missing message parameter.
Change-Id: Id0a1b3215064ef02c9eadf24877a4e887588c3ce
(cherry picked from commit 65f20dcea1)
2018-04-17 23:45:31 +00:00
Yaron Koren fe7c4cf38e Version 1.4.1
Change-Id: I1010f6ebfc524d41bf2a16d17b9fb2220ae58bf8
2018-04-16 20:31:08 +00:00
Yaron Koren 3d25dabe69 Fixed bolding of search term within "search context"
Change-Id: Id990ed6747138a6070889127b2967840654b59aa
2018-04-16 20:07:03 +00:00
Yaron Koren abc67edb70 Added checks for $wgCompressRevisions, $wgExternalStores
Change-Id: Id6724553a5c7624fe26fb89f4746affc744a0b87
2018-04-16 19:54:22 +00:00
Cindy Cicalese 6258d3300a Replaced Linker::link() with LinkRenderer
Bug:T149346
Change-Id: Ibf50c2dc3a80a4395f20d78bfd324ead353b93db
2018-04-16 02:44:47 +00:00
libraryupgrader dff64af71b build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I71746209a189b17b8dd21fdbd2ff1bfb6f0573c3
2018-04-14 05:49:56 +00:00
Yaron Koren a647e56345 Split up SpecialReplaceText code into more functions
Change-Id: Ifdfa89c7d5234bde6aa01bb46fc56e5c530b4dfb
2018-04-13 20:17:08 +00: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
Cindy Cicalese 267fcf5e17 Added CSRF check.
Bug: T191546
Change-Id: Ib6a951152db222b6289b9b8d09608dfe75ed2de2
2018-04-10 22:03:17 +00:00
Translation updater bot 3043f77cf1 Localisation updates from https://translatewiki.net.
Change-Id: If2b8d38f41cbdc9fab922f372174b3b5b644a9b2
2018-04-08 22:30:22 +02:00
Translation updater bot a313c3c848 Localisation updates from https://translatewiki.net.
Change-Id: I08909095a7aee8218436994018b656083e208b37
2018-04-05 22:22:33 +02:00
Yaron Koren cf7ece5637 Version 1.4
Change-Id: Ife12b49096f10be0069cc35061d52bea23bf8dce
2018-04-03 17:31:23 +00:00
Translation updater bot d0a1c038aa Localisation updates from https://translatewiki.net.
Change-Id: Ifc775a9098a87b7f537c23baf500402ed19829c8
2018-04-02 09:48:47 +02:00
Translation updater bot 0083049e20 Localisation updates from https://translatewiki.net.
Change-Id: I5f2226d5df47ccf0804bad7e1680ab056527f187
2018-04-01 09:39:09 +02:00
Translation updater bot 65fa0be835 Localisation updates from https://translatewiki.net.
Change-Id: Id30920e678cbad4c349023492deb0538def19352
2018-03-31 09:22:34 +02:00
Translation updater bot d59cd167c8 Localisation updates from https://translatewiki.net.
Change-Id: I2ebfef4ee0e55d5ecaf24d04a60da200958cd780
2018-03-30 09:34:54 +02:00
libraryupgrader 301b74fcd4 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Id1c06f59d040ed42e06ae1cfddb40dff6159475f
2018-03-29 05:30:54 +00:00
jenkins-bot c98eeabcb9 Merge "Another follow-up to ee7ac78ca7ff" 2018-03-29 01:39:09 +00:00
Translation updater bot 06a6736d79 Localisation updates from https://translatewiki.net.
Change-Id: Ie849bb1e9a9d4795379db6036ce6f257bdea37cf
2018-03-28 22:23:15 +02:00
Yaron Koren 961f73a2f1 Another follow-up to ee7ac78ca7
Change-Id: If703118d2cef3c9f92267b06b2236f7db374d1d8
2018-03-28 18:09:35 +00:00
Yaron Koren 6a4ec820e8 Slight message change
Change-Id: Ib3d8b63d7b63e8a003a411ead22723a356e4f26f
2018-03-28 17:10:17 +00:00
Translation updater bot b0a283a2db Localisation updates from https://translatewiki.net.
Change-Id: I0ad7a00dcc649a5b842d17336c2d439054faf0ba
2018-03-27 22:09:53 +02: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
Translation updater bot a1d43bf629 Localisation updates from https://translatewiki.net.
Change-Id: I3fa15a67f986e224b83c9b442810a1af9e9c19bc
2018-03-26 22:19:24 +02:00
Translation updater bot 388380f4dd Localisation updates from https://translatewiki.net.
Change-Id: I43231ae43fb5222d972b3c5ce11a581a3dd35635
2018-03-22 22:09:04 +01:00
Reedy 44fecf5fc5 Replace SpecialPage::getTitle() with SpecialPage::getPageTitle()
Change-Id: Ic04461a1737dbd3c81a2fe099024677ab05cf4e9
2018-03-15 21:42:53 +00:00
libraryupgrader 081eed2ed7 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ie9cc801f5e2b99dc5ceb39f5d60d5884c4c874de
2018-03-10 03:33:56 +00:00