Commit graph

6584 commits

Author SHA1 Message Date
Translation updater bot 6ce61e71d2 Localisation updates from https://translatewiki.net.
Change-Id: Ia9f0cb7ae648a0473a87143a5e2e8bd59d26c33a
2021-05-20 09:09:09 +02:00
Translation updater bot 41b885b50a Localisation updates from https://translatewiki.net.
Change-Id: I6b75a6c728344eeb37c5a12aacd490502070938e
2021-05-19 08:41:39 +02:00
jenkins-bot 7e8cf0d101 Merge "Selenium: update README.md file" 2021-05-18 15:45:15 +00:00
Translation updater bot ec92e55b99 Localisation updates from https://translatewiki.net.
Change-Id: I4cbb7b8b05769a7e4b91f901f1565928e87057e9
2021-05-18 08:45:15 +02:00
Translation updater bot 9371abef4e Localisation updates from https://translatewiki.net.
Change-Id: I205f125b86434872eaf0ec7c140603ce1ab006bf
2021-05-17 08:40:19 +02:00
jenkins-bot 7d0e50a2cd Merge "Use FauxRequest::setUpload in AbuseFilterUploadTestTrait::doUpload" 2021-05-15 12:22:10 +00:00
libraryupgrader 59d61b3686 build: Updating npm dependencies
* hosted-git-info: 2.8.9 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: Ic63a6a70c280f9b239f4caf3f2173454c29a68e4
2021-05-15 09:51:13 +00:00
Translation updater bot 0b10f241b5 Localisation updates from https://translatewiki.net.
Change-Id: Ifd780c389c281b1adfc1f835b99fa33c8e7f94bc
2021-05-14 08:42:02 +02:00
Umherirrender 360d41c8ec Replace uses of DB_MASTER with DB_PRIMARY
Change-Id: I60719654b2062bbe52d2eadef8b942cea477e522
2021-05-13 01:43:37 +02:00
Translation updater bot 3f2a7316f8 Localisation updates from https://translatewiki.net.
Change-Id: I86cd5af38aeb338c73469b6d49f63f61a61edd45
2021-05-12 09:19:58 +02:00
Translation updater bot 937529bfde Localisation updates from https://translatewiki.net.
Change-Id: Ia8a9ffd88099dbf7602eac25ebdc8b9d4553cb21
2021-05-11 09:04:54 +02:00
Translation updater bot f308bc1914 Localisation updates from https://translatewiki.net.
Change-Id: Ie055d17d0a229146222057d997c51dbb150bc8a7
2021-05-10 08:49:29 +02:00
libraryupgrader d10647a532 build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 2.8.8 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: I51cdfe5e8af6540a6725163f6eeea6da863cef86
2021-05-07 20:33:48 +00:00
sahil 96706a53fd Selenium: update README.md file
Bug: T282237
Change-Id: I93d7538bf191e42460e5d54532f6775a05dac661
2021-05-07 18:45:07 +05:30
libraryupgrader 5e2c99ca7c build: Updating npm dependencies
* lodash: 4.17.20 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.23 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)

Change-Id: I2bee341bc691234545676eaf5679be7fc909e6f2
2021-05-07 08:58:24 +00:00
Translation updater bot 5d4a6a1649 Localisation updates from https://translatewiki.net.
Change-Id: I027b5e8e2e5594726ee64de8c26e2efe0b4cc18c
2021-05-07 08:39:33 +02:00
jenkins-bot 45ae0752e5 Merge "Replace deprecated User::getEffectiveGroups" 2021-05-06 14:39:02 +00:00
Daimona Eaytoy 58ad3d1542 Replace deprecated User::getEffectiveGroups
Bug: T281824
Change-Id: I5487d143277a44742048668c920bbad57ebe6af1
2021-05-06 15:35:35 +02:00
Tim Starling 2c939e28a9 Move onUserMergeAccountFields to its own file
Sharing a handler class with UserRenameHandler means that attempting to
merge users fails due to a missing interface if AbuseFilter and MergeUser
are installed but Renameuser is not installed.

Change-Id: I1244ab1c446840ff2648248f943d7fc784b889a7
2021-05-06 11:33:24 +10:00
Translation updater bot 8780749798 Localisation updates from https://translatewiki.net.
Change-Id: I4db6666fff7e1af5df3a3544880e54175648257f
2021-05-04 08:50:41 +02:00
Translation updater bot 09394752d8 Localisation updates from https://translatewiki.net.
Change-Id: I88d61fecf19081e1a160a92d376f58cc5b7fe619
2021-05-03 08:35:33 +02:00
libraryupgrader 06cdddc9d0 build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I92d6f6d6f817765df24f845103a489624f4290f2
2021-05-02 06:41:54 +00:00
Umherirrender 1fa7a83f60 Use static closures where safe to use
Created by I25a17fb22b6b669e817317a0f45051ae9c608208

Change-Id: I533690311ca559685de8a4bf123348c9bcfa5931
2021-04-30 20:55:35 +02:00
mainframe98 a32d483ef4 Don't use p class="success" for success messages
These are part of legacy styles and aren't provided by all skins.
Using Html::successbox abstracts the classes away.
Internally that uses div class="successbox" instead.

Bug: T280766
Change-Id: I0cca59e2f391510095c2c6fb187ace5e91fdde8b
2021-04-30 18:19:31 +00:00
Ammarpad 6a799ec9c5 Check forcing of page_timestamp revision index
Bug: T270033
Change-Id: I16fc273b14e7f4b00e8c31ec1ed7712149aafe37
2021-04-30 13:06:43 +01:00
Translation updater bot ccd12544f1 Localisation updates from https://translatewiki.net.
Change-Id: I486daa010ab0043e2feb253fe72f2c1ad2340c35
2021-04-28 08:46:54 +02:00
Translation updater bot 37601fb676 Localisation updates from https://translatewiki.net.
Change-Id: I289b9350fdeea61d1e3c19e80e8e370d970facbc
2021-04-27 08:37:07 +02:00
Translation updater bot 7124db88eb Localisation updates from https://translatewiki.net.
Change-Id: I4186bd404c9ca22b669396d5fc5c968c7605a2ef
2021-04-26 09:09:24 +02:00
Daimona Eaytoy c091a2f749 Fix MySQL db patches compatibility
Follow-up I574bda15f0f5c92a7d97a6e3150981b8f97ee7fc
Apologies for not noticing before:

If somebody hadn't already added the afl_filter_id column, the
rename-indexes patch would try to rename a non-existing index
(filter_timestamp_full and fail). So put rename-indexes after the other
patch.
Then, for the afl_filter_id patch, check the column and not the index.
We were checking the index because it's the last thing that the DB patch
does (so if the index is found, we can be certain that the patch was
fully applied). However, now that renaming the index happens afterwards,
if somebody had already added afl_filter_id (with the old index name),
running the updater would try adding it again, because the new index
name isn't found (as it's renamed later).

Change-Id: I0250a7c187202facd932c160ace57930db510f64
2021-04-25 11:28:35 +02:00
jenkins-bot 4e7e2f6c64 Merge "Give MySQL indexes explicit names, align MySQL and SQLite" 2021-04-25 08:50:08 +00:00
Func 351f9f02bc Handle EditFilterMergedContent hook properly to break hook chains and display error message
Extensions are supposed to return false to break hook chains when failed, which can avoid unnecessary call of later handlers in other extensions and work around with problems caused by difference betwen multiple triggers.

On mediawiki version 1.36 and before, just returning false in this hook can't display error message by default.
Set $status->value manually still to provide backward compatibility.

Bug: T280312
Change-Id: I78888247063c726ebcd18ba54a21d6c7891481fc
2021-04-24 02:02:01 +00:00
Translation updater bot d26e80f882 Localisation updates from https://translatewiki.net.
Change-Id: I33db6431c56f36dc0936a78e40a080a9a08edaff
2021-04-23 08:35:47 +02:00
Translation updater bot db0110e22a Localisation updates from https://translatewiki.net.
Change-Id: I25717b5a6ea8aa75c53889d8725c6e68891fe821
2021-04-22 09:30:24 +02:00
Translation updater bot 6151feb5fe Localisation updates from https://translatewiki.net.
Change-Id: Ibd2249c27923a4178b9091b53315759cacf08f63
2021-04-21 08:51:35 +02:00
Translation updater bot 1ac9e1298c Localisation updates from https://translatewiki.net.
Change-Id: I9ad95689f758c874f1effe951a8837ba005b7c80
2021-04-20 08:46:00 +02:00
jenkins-bot ffe3b0cbc4 Merge "Clean up AbuseFilterViewHistory and AbuseFilterHistoryPager" 2021-04-19 14:37:00 +00:00
jenkins-bot ec804600c6 Merge "Stop using legacy ActorMigration fields" 2021-04-19 14:36:58 +00:00
jenkins-bot f786a438e2 Merge "QueryAbuseLog: remove duplicate setting $conds = []" 2021-04-19 08:32:36 +00:00
Translation updater bot 83fa287fb3 Localisation updates from https://translatewiki.net.
Change-Id: If0c6cd9df8450f20c62f0737c735c69b22ae7ca8
2021-04-19 08:49:13 +02:00
Tim Starling 04f298c82c Stop using legacy ActorMigration fields
Migration was completed in MW 1.34, so it's no longer necessary to
call ActorMigration.

Bug: T278917
Change-Id: I26ad45b6d26756c3074c44f0192ceb04fb2698ae
2021-04-19 15:18:47 +10:00
DannyS712 0fa804ff3a QueryAbuseLog: remove duplicate setting $conds = []
Change-Id: I50ffe91656c9c74111a3ecd4808b8a1d2cd79504
2021-04-19 01:22:57 +00:00
Matěj Suchánek 644b7aa288 Clean up AbuseFilterViewHistory and AbuseFilterHistoryPager
- Untangle circular dependency.
- Inject dependencies.
- Declare class properties as private.

Change-Id: I7b9892c85d168024d6b44d182af9443fdfee45cc
2021-04-18 18:31:17 +02:00
jenkins-bot 0dc93136d6 Merge "Improve test coverage of API modules" 2021-04-18 16:03:25 +00:00
jenkins-bot 4332a20c34 Merge "Clean up (Global)AbuseFilterPager" 2021-04-18 16:02:30 +00:00
jenkins-bot 19bc3dcf9b Merge "Api: inject more abuse filter services" 2021-04-18 09:15:17 +00:00
Matěj Suchánek a2ee8c41e2 Improve test coverage of API modules
Also solve one a TODO.

Change-Id: I61a38f3c741274f00ad0ad4789106a943daef222
2021-04-18 10:37:38 +02:00
Matěj Suchánek 7ed7b97369 Clean up (Global)AbuseFilterPager
- Inject dependencies.
- Make class variables private or protected and rename them.

Untangling the circular dependency is left for a future patch.

Change-Id: I5d625e30171bfbf60d9f5a94fa50475fdfe853dd
2021-04-17 21:02:07 +02:00
jenkins-bot 5cd39a51fa Merge "Remove the old parser" 2021-04-17 15:21:54 +00:00
jenkins-bot 8a7511c5d2 Merge "Drop database patches for MW < 1.27" 2021-04-17 15:00:26 +00:00
jenkins-bot f869c74bb6 Merge "Remove deprecated $wgAbuseFilterCustomActionsHandlers" 2021-04-17 14:58:53 +00:00