Commit graph

7170 commits

Author SHA1 Message Date
Translation updater bot 4668c4a744 Localisation updates from https://translatewiki.net.
Change-Id: I5a1ff58b5d09d6601518a9f142a256b7ec537231
2023-08-21 08:46:50 +02:00
Umherirrender 62127964b7 Use namespaced MediaWiki\User\ActorMigrationBase
Bug: T321681
Change-Id: If3940c982d55643a685e2dedccab0540f86b9ae9
2023-08-20 01:08:09 +02:00
jenkins-bot e23b4bf8ef Merge "Use namespaced Title" 2023-08-19 18:33:50 +00:00
Umherirrender cd7e9d31a7 Use namespaced Title
Bug: T321681
Change-Id: I66fd9b70a5de06ac3c81bdf6a2a5bca64ed094c2
2023-08-19 19:49:36 +02:00
jenkins-bot 96f6e1961f Merge "Clean up AbuseFilterConsequencesTest a bit" 2023-08-19 17:29:27 +00:00
Daimona Eaytoy 85f8f90531 Clean up AbuseFilterConsequencesTest a bit
Most notably, make it not use additional DB tables to test global
filters. Instead, just pretend that the local database is not local (via
config) and "hide" local filters with a simple test-only flag in
FilterLookup.

Change-Id: Ib431dbf6c9d84978ee84e7f0671cfcbf8a54d7a2
2023-08-19 15:31:41 +00:00
MdsShakil 438cb640ed Add Bengali translation of BlockedExternalDomains
Change-Id: I77cb8d29ea30aab4bed5e6933a96cefddd183d40
2023-08-19 11:05:33 +00:00
gerritbot f5258d16bc Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I0402e835b5c05bac0a890b6fe0036516751c411b
2023-08-19 04:13:30 +00:00
Daimona Eaytoy a10765baec Use real user ID in EchoNotifierTest
Echo will at some point try to load the user with the given ID, and will
throw an exception if it doesn't exist. The test is currently passing
just because we're not properly cleaning DB tables, and the user with ID
1 happens to exist at that point, but it will fail with core change
Ie2f1809d.

Change-Id: Ie686f4d5c2842e45a6ed564b311bb5d9b0265091
2023-08-18 01:51:09 +02:00
Translation updater bot 33a5fec0ec Localisation updates from https://translatewiki.net.
Change-Id: I4055a691ac09acf1f4da71c623bf47df8b51d21f
2023-08-17 12:09:11 +02:00
jenkins-bot ba4de29abf Merge "Use HookHandlers for UserMerge hook" 2023-08-16 08:51:38 +00:00
Umherirrender 8e6d820154 Use HookHandlers for UserMerge hook
Bug: T254306
Depends-On: Ib78dae49854863af1a37a00636737c94694776ae
Change-Id: If2bc517fb612199f4d744efbfa261ee5c556b6a5
2023-08-16 09:44:30 +02:00
Translation updater bot 2e9c7318d8 Localisation updates from https://translatewiki.net.
Change-Id: I34a1a6151690490c1fe68ac70b42324db337db35
2023-08-16 09:10:17 +02:00
jenkins-bot e80a4337c0 Merge "Use HookHandlers for Echo hook" 2023-08-16 05:26:14 +00:00
gerritbot ae1262fb68 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I505b97ffbb74f1b1a12bf141b73b1414c60c5020
2023-08-16 01:54:05 +00:00
Umherirrender a328477b8d Use HookHandlers for Echo hook
Bug: T254306
Depends-On: Iffa2b409502b4269c9746e0304feb4aaee37a86e
Change-Id: I0e27c535367b37b7038a54955e43ff96d9c81d32
2023-08-16 00:18:02 +02:00
Translation updater bot df19f5bd13 Localisation updates from https://translatewiki.net.
Change-Id: Idc4e790ad9620e42286421a9b0e398f3a4b26dd6
2023-08-14 09:16:23 +02:00
Translation updater bot 0943d1b521 Localisation updates from https://translatewiki.net.
Change-Id: Iac7319cb2fcdfaba6ff434b7ac9375df082d4966
2023-08-11 08:58:30 +02:00
jenkins-bot 3727a2978b Merge "tests: Split long line in importingFilters.js" 2023-08-10 22:11:58 +00:00
Umherirrender aef4466d4b tests: Split long line in importingFilters.js
tests\selenium\specs\importingFilters.js
   81:1  warning  This line has a length of 106. Maximum allowed is 100
max-len

Change-Id: Ic8bee37971afb6fe4ba7102d687f0fa212092f4c
2023-08-10 23:53:17 +02:00
Translation updater bot 8d387b2c28 Localisation updates from https://translatewiki.net.
Change-Id: I120b2edf8da49b8ad111fd7b8b931b76ce8bb156
2023-08-10 09:39:39 +02:00
Translation updater bot 88d5def911 Localisation updates from https://translatewiki.net.
Change-Id: I47bb883334256d6e587c4943317effd3f6200067
2023-08-09 09:14:10 +02:00
Translation updater bot 13ea7ab8ee Localisation updates from https://translatewiki.net.
Change-Id: I158e6e0ede1ae6982089756cb41faf08ab70787b
2023-08-08 09:00:12 +02:00
jenkins-bot 4f6ff34a26 Merge "tests: Avoid DB access in non-Database tests" 2023-08-07 13:13:27 +00:00
jenkins-bot e566cb1327 Merge "Avoid TestUser in non-database tests" 2023-08-07 13:13:25 +00:00
Translation updater bot 9fe571e33f Localisation updates from https://translatewiki.net.
Change-Id: I6324c4496d60a98515c9b7ae2edf29eb49e6e3ac
2023-08-07 08:36:51 +02:00
Daimona Eaytoy dcef8cebc6 tests: Avoid DB access in non-Database tests
These tests were accessing the Database, for mainly 3 reasons:
- User::newSystemUser
- Static methods in ChangeTags
- Echo's Event class

There isn't much we can do about them, so add tests to the Database
group where needed. In some cases, there are already comments that these
tests should be made unit tests once possible.

Bug: T155147
Change-Id: I8a0d52e0a4cae8a4059b62867853a73e60c878a1
2023-08-06 22:19:03 +00:00
Daimona Eaytoy 2a6b7edecb Avoid TestUser in non-database tests
TestUser requires a DB connection, so avoid using it in database-less
tests. Add to the Database group tests that are making DB writes (e.g.,
for log entries).

Change-Id: I211cb60296e5c2446128fcdf2caaadc728a8c272
2023-08-06 22:18:49 +00:00
Amir Sarabadani 049e602b07 BlockedDomains: Move filtering logic to a dedicated class
I'm planning to add support for bypass and regex-based blocking which
means it'll grow a bit. So let's give it a dedicated class.

Bug: T337431
Change-Id: I5a6fe2fd2f1efdebd8cada0ba6c481341f830e27
2023-08-06 16:27:23 +02:00
jenkins-bot a3ffaba341 Merge "Replace userNameUtils with UserIdentityUtils" 2023-08-06 10:00:04 +00:00
jenkins-bot 8618667500 Merge "Migrate ILB::getConnectionRef() calls to ILB::getConnection()" 2023-08-06 08:48:46 +00:00
Translation updater bot 29eb7a4f43 Localisation updates from https://translatewiki.net.
Change-Id: Id88a71c869500f878d5f641469f7e705ac33a468
2023-08-04 09:19:31 +02:00
gerritbot 806ac5285d Migrate ILB::getConnectionRef() calls to ILB::getConnection()
Deprecated since 1.39 (I6e7544763bd)

Bug: T343277
Change-Id: I1d6d8d8bee8b39a5d364d8bb65f5f9a85194114d
2023-08-03 22:28:51 +00:00
Translation updater bot cb408cb1cb Localisation updates from https://translatewiki.net.
Change-Id: I34957049f2475e18ad851648390a3649e5bd9a6a
2023-08-02 09:03:07 +02:00
Translation updater bot e387f34908 Localisation updates from https://translatewiki.net.
Change-Id: Ic190aad42e19f30593592996c0a58510a2662c02
2023-08-01 08:35:54 +02:00
Translation updater bot 01d087e62a Localisation updates from https://translatewiki.net.
Change-Id: I64b64567ca7d8cdf18d615535543ed3ea86ed21d
2023-07-31 08:53:16 +02:00
Umherirrender c72b6a20f0 Pass ParserFactory to LazyVariableComputer
Make the init of Parser lazy

Bug: T343070
Change-Id: If0f0ca3c4aa2136c85903289f7f80b95dc5132c8
2023-07-29 14:20:07 +02:00
Translation updater bot 0f2372b73d Localisation updates from https://translatewiki.net.
Change-Id: I77f6f3311e0b24c26707cf38677c804af0486855
2023-07-28 09:16:50 +02:00
AnaïsGueyte 2efd6d9ac9 Replace userNameUtils with UserIdentityUtils
Where UserIdentity is available and where it's necessary to check ::isNamed

Bug: T342741
Change-Id: I5b52686f1c072282e76874f3863962345ca8097e
2023-07-27 10:29:31 -03:00
Translation updater bot 0cae16c8cb Localisation updates from https://translatewiki.net.
Change-Id: I3274dc5fbfc9b9e60357c779fed672b0397e624b
2023-07-25 10:41:43 +02:00
Translation updater bot 06c69c69e7 Localisation updates from https://translatewiki.net.
Change-Id: Ie724b1f5914e1c5f7a3c725437420a32ee302498
2023-07-24 09:35:27 +02:00
Matěj Suchánek 82ff324ae9 Remove faulty phan suppression
Change-Id: I5928d14f92d2bf7e8ceae9b40086533d7e0d0061
2023-07-21 21:47:34 +02:00
Translation updater bot b9a44cb905 Localisation updates from https://translatewiki.net.
Change-Id: Iea73c29bcc80a2698bda70076f0d63294d30d846
2023-07-21 08:39:53 +02:00
Translation updater bot 9bb5d1b448 Localisation updates from https://translatewiki.net.
Change-Id: I78193f0b5b28bed8fd3058979737c534abb57092
2023-07-20 09:31:30 +02:00
Translation updater bot eac12c6d75 Localisation updates from https://translatewiki.net.
Change-Id: I7baf22a6b4c2c1f4a3b7b1db8f61970789ddcdfb
2023-07-19 09:00:01 +02:00
jenkins-bot ad37cd8725 Merge "Get parsed content from PreparedUpdate" 2023-07-18 14:15:40 +00:00
jenkins-bot 78c7334d6a Merge "Split VariableGenerator::addEditVars" 2023-07-17 23:26:53 +00:00
Translation updater bot c5846196fb Localisation updates from https://translatewiki.net.
Change-Id: I56645e99b8d29d47d6d2730f852397af95341d98
2023-07-17 10:15:44 +02:00
Matěj Suchánek 1e93f8b674 Get parsed content from PreparedUpdate
This finally makes new_html work for non-wikitext contents.

Bug: T264104
Change-Id: I1174b63a8e3a96e83ee7472dd086bfc91636316c
2023-07-16 14:48:30 +02:00
Daimona Eaytoy 2a89b3fb6d Skip CheckUserHandlerTest if CheckUser is not installed
The handler class uses hook interfaces from the CheckUser extension, so
it can't run if CheckUser is not installed.

Change-Id: I5f40366f27cc885e95e1bb93ec421b09c7caa9a6
2023-07-15 22:04:42 +02:00