Commit graph

6922 commits

Author SHA1 Message Date
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
jenkins-bot 2cff210d31 Merge "Use UserIdentity in VariableGenerator::addEditVars" 2022-07-30 13:55:24 +00:00
Umherirrender 7e8162c705 Special:AbuseFilter: Include primary key for unique pagination
A unique column is needed in the order to ensure the next offset is
correct and does not skip items

As mention in the doc for IndexPager::getExtraSortFields the extra
columns are not for pagination, only to help the optimizer building a
better query plan by mention denormalized columns.

Bug: T191694
Change-Id: I9fb9f848a0b165dbaa0a2b31d9504324f43578de
2022-07-29 17:38:13 +02:00
Umherirrender 081a8e3c3c Add LinkBatch to Special:AbuseFilter/home and /history
Combine the check for red/blue user/talk links into one database query
This can improve the performance of the page view when many filters
from many different users are linked

Change-Id: I0b87ee15ecee4cecd5d5d6164e8c18e1b788ecd1
2022-07-29 13:56:03 +02:00
Umherirrender da4bc8643a Use UserIdentity in VariableGenerator::addEditVars
Change-Id: If0a65d7a86de776e6499d43949bfb217f20d9b07
2022-07-29 12:55:52 +02:00
jenkins-bot f13f3dcd2c Merge "Call IContextSource::getAuthority instead of IContextSource::getUser" 2022-07-29 10:25:23 +00:00