Commit graph

6827 commits

Author SHA1 Message Date
James D. Forrester 94034ad727 build: Upgrade eslint-config-wikimedia from 0.22.1 to 0.23.0
Manually fixed as there's no fixer (and we're likely to bin this
rule upstream anyway as it has too many false positives).

Change-Id: Ia00113afa56af57c851ee8730760a60d6f858e7c
2022-10-07 11:09:55 -04:00
James D. Forrester 2d958ad093 build: Drop PHP dependency, irrelevant given MediaWiki version
Change-Id: I98f695971390bc0c836e7aac853f399436443dab
2022-10-07 10:44:59 -04:00
Translation updater bot 89cafddaaf Localisation updates from https://translatewiki.net.
Change-Id: Id95283ac620093e8a3bed2b6f549f9a7b9465bfc
2022-10-06 08:15:01 +02:00
Translation updater bot b99741c1a4 Localisation updates from https://translatewiki.net.
Change-Id: Id302f16f7c5e441b19a1940875f2217215930bbd
2022-10-04 08:28:37 +02:00
Brian Wolff c6d3e6638c Explicitly cast mod (%) operhands to ints.
PHP does this automatically, however in PHP8 this causes an
E_DEPRECATED warning.

This fixes a phpunit test

Change-Id: Ie2b2dbf4a1c0ff500ba251ee43a37823432e3047
2022-10-03 08:30:45 -07:00
Translation updater bot 4fe1057c58 Localisation updates from https://translatewiki.net.
Change-Id: I08281d929dfee8451e1bae58de1ca0dbfc04d24a
2022-10-03 09:44:26 +02:00
Translation updater bot a42ce5eea9 Localisation updates from https://translatewiki.net.
Change-Id: Ied6c61d029b6d224e34ef3738121e36a60f7d44d
2022-09-30 08:52:38 +02:00
Timo Tijhof d2fc2ff8bb maintenance,includes: Clean up file headers
Follows-up Iaa1b4683c5c856.

* Match $IP pattern verbatim from most other WMF extensions.

* Improve descriptions a bit, and move/merge any meaningful
  information from file docblock into class docblock. The file blocks
  are visually ignored and identical in each file, and often out of
  date or duplicated when given text separately from the class block.

  See also similar changes in core:
  https://gerrit.wikimedia.org/r/q/message:ingroup+owner:Krinkle

* Use `@internal` instead of `@private` as per Stable interface
  policy.

Change-Id: I8bed9a625af003446c7e25f6b794931164767b5a
2022-09-29 17:56:49 +01:00
Translation updater bot 61f40d7d06 Localisation updates from https://translatewiki.net.
Change-Id: I67663ccfb3c4680693e543bb6dad9d3fa8f958ba
2022-09-29 08:26:29 +02:00
Translation updater bot d311b4a09d Localisation updates from https://translatewiki.net.
Change-Id: I410373d85a0e0b9103e94fce5fb431a7e8cab0a2
2022-09-28 08:20:11 +02:00
jenkins-bot 1744abb0c7 Merge "PurgeOldLogIPData.php: Minor doc and code clean up" 2022-09-27 14:09:32 +00:00
Translation updater bot afee2e436c Localisation updates from https://translatewiki.net.
Change-Id: I8d35d9fb7810d879a743d2457a0d9b8586b73788
2022-09-27 08:31:32 +02:00
Translation updater bot 0478e9337e Localisation updates from https://translatewiki.net.
Change-Id: I75bb983329e7bcfcae013550ff14feced1fe56c1
2022-09-26 08:14:06 +02:00
Timo Tijhof 9092ffab30 PurgeOldLogIPData.php: Minor doc and code clean up
* Match $IP pattern verbatim from most other WMF extensions.
* Lowercase "Address".
* Change description to be more explicit.
* Change printed lint to be shorter once it starts running.

Change-Id: Iaa1b4683c5c856c752065797cf651ca7b1b46943
2022-09-22 23:20:32 +01:00
Translation updater bot d09e530ea6 Localisation updates from https://translatewiki.net.
Change-Id: I13fa2fd0d9a8471c7138f7a07f936db3f0f74377
2022-09-22 08:44:41 +02:00
Translation updater bot 55b9b83dff Localisation updates from https://translatewiki.net.
Change-Id: I240b3a95d61616f610fae6bf858803bdc09791ba
2022-09-20 08:33:26 +02:00
Translation updater bot 7f5c31026d Localisation updates from https://translatewiki.net.
Change-Id: Idfd1b312bcbed20e823dd7b8d4409643bbf91fdf
2022-09-19 08:23:28 +02:00
Translation updater bot 7d42ca040b Localisation updates from https://translatewiki.net.
Change-Id: I59c100411eea38cbe957152df3f8654d440050f5
2022-09-16 09:23:26 +02:00
Translation updater bot ce5756bc30 Localisation updates from https://translatewiki.net.
Change-Id: I60eaad79a91d21e66584836cb122af670cfbf002
2022-09-12 09:35:22 +02:00
Translation updater bot 7bfbd3755c Localisation updates from https://translatewiki.net.
Change-Id: I84b5e1b3191983eaf70707bbac2c88f2116ad5f3
2022-09-09 10:09:08 +02:00
jenkins-bot 8b9819cfb8 Merge "Use MediaWikiIntegrationTestCase::getDb() instead of the "db" member" 2022-09-07 01:59:17 +00:00
Translation updater bot 3fbd3cf6b7 Localisation updates from https://translatewiki.net.
Change-Id: Ibf03ccab94a9ec0bccd0ad6c6fe2baf8f9fc1d2b
2022-09-05 10:09:19 +02:00
Translation updater bot 02e19e9cb5 Localisation updates from https://translatewiki.net.
Change-Id: If4d119882fc73d330204e30066b060792a283ff2
2022-09-01 09:32:30 +02:00
Aaron Schulz 67c0f72474 Use MediaWikiIntegrationTestCase::getDb() instead of the "db" member
Bug: T316841
Depends-On: Ia0f3cf49c79affb7189801852ac7e9ec67933a3c
Change-Id: If808cbab429d41e1f2289683533e4a781a4bdf5e
2022-08-31 15:58:00 -07:00
Translation updater bot dc60569e74 Localisation updates from https://translatewiki.net.
Change-Id: If18e74258d9688be9f4ea14a04be63ffa4d1bbd6
2022-08-31 09:34:23 +02:00
Translation updater bot 8684a8ab35 Localisation updates from https://translatewiki.net.
Change-Id: Ia08fac5f8bceb8654b05db0451112a7fc0cbdaec
2022-08-30 09:29:12 +02:00
Translation updater bot 50c1c3f1ee Localisation updates from https://translatewiki.net.
Change-Id: Ifb5db65430014d8abaf93fa5908cbd4430a502a8
2022-08-29 09:12:18 +02:00
Translation updater bot da7bb8447f Localisation updates from https://translatewiki.net.
Change-Id: I24d0534044d7b94f60e620ea226a2c416b84a3c5
2022-08-26 08:21:56 +02:00
Translation updater bot 6c3a2210a2 Localisation updates from https://translatewiki.net.
Change-Id: I7455d4d5ccdb5d325d4e4849399599062c3f8fc8
2022-08-24 08:23:27 +02:00
Translation updater bot b9d9a6c04a Localisation updates from https://translatewiki.net.
Change-Id: If6e85d999086e31831657022cbb95da68f061950
2022-08-22 08:21:47 +02:00
Translation updater bot 45c63aa93c Localisation updates from https://translatewiki.net.
Change-Id: Ide2041db282b84e2d837d4bc7266797212beeb5e
2022-08-19 08:28:16 +02:00
Translation updater bot 3aabbad425 Localisation updates from https://translatewiki.net.
Change-Id: I0cdfe877717c6a7613c6ac2e32a523a46b4c5502
2022-08-16 08:33:45 +02:00
Translation updater bot 35b8d0bb6c Localisation updates from https://translatewiki.net.
Change-Id: Iceca2d620155451af2adf875ee67073299d4ce3a
2022-08-15 08:25:00 +02:00
Translation updater bot aa70924a19 Localisation updates from https://translatewiki.net.
Change-Id: If0042c81b08a2302da2a97444646a46bc58525ee
2022-08-12 08:42:01 +02:00
Translation updater bot ddeca1dae0 Localisation updates from https://translatewiki.net.
Change-Id: Ibfa0090dbd371853dd87bd304931e4e78f7e81cf
2022-08-11 08:48:59 +02:00
Translation updater bot c84ea22fa4 Localisation updates from https://translatewiki.net.
Change-Id: I2b87f0798c8a32718fb5c5b4b652593aa706fc79
2022-08-09 08:18:49 +02:00
Translation updater bot a06f49905e Localisation updates from https://translatewiki.net.
Change-Id: If54bbe97952031a57ab84338cfb7d44d570ed580
2022-08-08 08:57:36 +02:00
jenkins-bot 415a958cf1 Merge "Use DISTINCT on LazyVariableComputer::getLinksFromDB" 2022-08-06 22:57:46 +00:00
Translation updater bot 117e6c0372 Localisation updates from https://translatewiki.net.
Change-Id: I2cceeb938d17dc7e56cd983f7df8b5dfbb5a9dee
2022-08-04 08:41:16 +02:00
Translation updater bot 61af19acf9 Localisation updates from https://translatewiki.net.
Change-Id: Ie542401fb4fe4740da86ff63157078fe15bf7256
2022-08-03 08:17:34 +02:00
Umherirrender 9c3fc24f85 Use DISTINCT on LazyVariableComputer::getLinksFromDB
A protocol-relative URL has two entries for el_to in externallinks table,
the different is on the el_index colum

Bug: T314373
Change-Id: I3d6229aaa10a089baf15d5ba3407f6a8870429e3
2022-08-02 11:27:31 +00:00
Matěj Suchánek 86c2695557 Treat consequences params less aggressively and consistently
In theory, it's possible that some consequences could use "0"
as one of their parameters. At least change tags, see T296642.
But PHP treats "0" as false.
Also make the code on all places consistent.

Change-Id: I5255dfb26878ceb4f78c4d8277521edbb4821d7d
2022-08-02 11:57:48 +02:00
Matěj Suchánek 08f42494d3 Send CheckUser the IP address on account creation
We mask the IP address on purpose, so that it is not
leaked to the abuse log. This breaks CheckUser because
it attempts to assign an actor id to the "fake"
(uncreated) user account. So unmask the IP address
when we send the data to CheckUser.

Bug: T233004
Change-Id: Ib58193927bc8254d36a8de0fd1b5f9fba68a0cb0
2022-08-01 09:17:35 +02:00
Translation updater bot 7b390bace2 Localisation updates from https://translatewiki.net.
Change-Id: I213f3ccbd9dc5d0299584b89157d735f5e10ed69
2022-08-01 08:20:53 +02:00
Umherirrender 4fca77068c Clean up line indent with mixed tabs and whitespaces
Change-Id: Icc418130ad34e5f169bfc51bb13b58a7806bd636
2022-07-31 16:34:07 +02:00
jenkins-bot a017d73509 Merge "Make a separate method for ManualLogEntry construction" 2022-07-31 12:57:46 +00:00
jenkins-bot 0925f0753f Merge "Add regression test for abuse log entries" 2022-07-31 12:54:35 +00:00
Matěj Suchánek f142fee102 Make a separate method for ManualLogEntry construction
This step is a simple copy-paste. In the next step,
we will change the code a bit.

Change-Id: Id303a5da33ce0bbc0b58656a3f935f6f4c02d84c
2022-07-31 12:39:43 +00:00
Matěj Suchánek cb48a6b3ae Add regression test for abuse log entries
We don't have one, and we will need it for
Ib58193927bc8254d36a8de0fd1b5f9fba68a0cb0.

Change-Id: I55c52df8aa0786f5c73a0c957a06a01f9cb86fcd
2022-07-31 14:33:29 +02:00
jenkins-bot 9b62938507 Merge "Add regression test for RunVariableGenerator" 2022-07-31 12:07:15 +00:00