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
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
Translation updater bot
4d44f0cea2
Localisation updates from https://translatewiki.net .
...
Change-Id: Id9dac05709cdd15f979c121a7849ace0fe2ab7be
2022-07-29 08:52:03 +02:00
jenkins-bot
9ea6c5dd8a
Merge "Remove deprecated static methods"
2022-07-28 22:40:57 +00:00
Translation updater bot
95d7a28d00
Localisation updates from https://translatewiki.net .
...
Change-Id: I4a44355e50552620e89b1bd9fbf4e7c4fb20ac42
2022-07-28 08:55:37 +02:00
Matěj Suchánek
3914c913e3
Remove deprecated static methods
...
They are unused in Wikimedia code (finally).
Change-Id: I74c81d950d992552d3edf184b5eecc46e5e2c567
Depends-On: I62533e21d2bc1a22c3fcba4c7c650ca9d95700ef
Depends-On: I95ce9897d89213e358c436135278b729f0adc3a2
2022-07-27 13:01:10 +02:00
Translation updater bot
678d434626
Localisation updates from https://translatewiki.net .
...
Change-Id: I81bcdd80fa46512b088f0a74075ee1dce404c2bf
2022-07-26 08:24:24 +02:00
Translation updater bot
8320b3222c
Localisation updates from https://translatewiki.net .
...
Change-Id: I6fdc0c3e2d64f0fd81883544b76ce664e0e13dd9
2022-07-25 08:32:27 +02:00
Translation updater bot
5e8d67919d
Localisation updates from https://translatewiki.net .
...
Change-Id: I2ef98aec44d1323d2cb63b01087fb7f04b1cc90d
2022-07-21 09:02:40 +02:00
jenkins-bot
42165168a6
Merge "VE integration: Remove "unrecoverable" errors"
2022-07-20 13:53:02 +00:00
Translation updater bot
3485b5f2b3
Localisation updates from https://translatewiki.net .
...
Change-Id: I8e619c736891d6ab4fc57295a218f08dbca38bc2
2022-07-20 08:26:51 +02:00
Bartosz Dziewoński
4b0bc0f47d
VE integration: Remove "unrecoverable" errors
...
Bug: T307330
Depends-On: I9680cc416da5b27881aeb3502f506dcb5d4bb71f
Change-Id: Ie133c74072fa3e9ab934a6a8b2052d25b68d1cbf
2022-07-19 21:46:48 +02:00
Translation updater bot
616bafa80c
Localisation updates from https://translatewiki.net .
...
Change-Id: Iec3d694d3dd7b7ea58538c90dc3f3e505cb31beb
2022-07-19 08:15:32 +02:00
Translation updater bot
f063d4224f
Localisation updates from https://translatewiki.net .
...
Change-Id: I7d338d5fc21c9c4ff2659af3bb2dc4032a329ee1
2022-07-18 08:13:25 +02:00
Matěj Suchánek
62e5509772
Add regression test for RunVariableGenerator
...
Test that null edits do not trigger filters, but sole
content model change does.
Also do some cleanup in AbuseFilterConsequencesTest.
For better isolation, do not access the service
container and do not initialize objects in
the constructor.
Change-Id: I043ecb312226a69d1f485a8382d558ccb899a270
2022-07-16 11:48:42 +02:00
jenkins-bot
faf77888ad
Merge "Try to unbreak tests on sqlite"
2022-07-16 09:38:44 +00:00