Commit graph

126341 commits

Author SHA1 Message Date
jenkins-bot
c94d1a1d82 Merge "specials: Improve SpecialExpandTemplates form" 2024-09-02 18:54:51 +00:00
jenkins-bot
ea7005551f Merge "search: Replace IResultWrapper::fetchObject()/next() with foreach loop" 2024-09-02 18:42:38 +00:00
Yiannis Giannelos
084f43a6a3 Bump wikimedia/parsoid to 0.20.0-a19
Bug: T373593
Depends-On: I3f013d457fafcebf1651770012c0044a7f1ef3b9
Change-Id: I6674cf31c164005582437568ab8ed3f1ddd51817
2024-09-02 18:39:37 +03:00
jenkins-bot
e80ea2602e Merge "CleanupTitles: Check if title exists from primary database" 2024-09-02 13:44:28 +00:00
jenkins-bot
aa11d1fcc0 Merge "collation: Add type declaration for RemoteIcuCollation class properties" 2024-09-02 13:38:26 +00:00
jenkins-bot
d134909864 Merge "Make "View contributions" menu item the default, instead of "Contribute"" 2024-09-02 11:32:43 +00:00
Yiannis Giannelos
a3ef4cce0f Add missing phpdoc param in SiteConfig
Change-Id: Ib688e9d1c830a841093160415d48d699ec947c39
2024-09-02 12:31:01 +03:00
Translation updater bot
909aac2eca Localisation updates from https://translatewiki.net.
Change-Id: I765638759751cb748490d3f2a3391854ae1dd986
2024-09-02 08:18:40 +00:00
Umherirrender
0ed4f6f889 upload: Use const for UploadBase::$safeXmlEncodings
Change-Id: I897106d15c9e43f75eb006c35a14ac49edeb3ecd
2024-09-01 20:22:51 +02:00
jenkins-bot
a6c216ad8d Merge "exception: Use const for MWExceptionHandler::$fatalErrorTypes" 2024-09-01 17:43:40 +00:00
jenkins-bot
451ac0891b Merge "filerepo: Remove unused LocalFileMoveBatch::$archive" 2024-09-01 17:07:13 +00:00
Pppery
6c3de9d41e CleanupTitles: Check if title exists from primary database
It's possible for multiple invalid titles to normalize to the same
title. The script tries to catch this, but it uses a replica database
for it, which might not have picked up an earlier change in the same
maintenance script. This caused the cleanupTitles run on ptwiki to crash
(and somehow escaped notice until now)

Bug: T195546
Change-Id: I2a4a34ce99067986d7c44605c796323c4d77dc4e
2024-09-01 11:35:52 -04:00
jenkins-bot
53936dc79c Merge "utils: Add missing documentation to class properties" 2024-09-01 15:19:10 +00:00
jenkins-bot
83be286ed6 Merge "utils: Remove unused ZipDirectoryReader::$data class property" 2024-09-01 15:13:48 +00:00
Umherirrender
574e8b702c utils: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Improve a mixed type to string

Change-Id: Id994553eaeac181775ac782423ff53928ad45466
2024-09-01 14:40:01 +00:00
jenkins-bot
104e1c05c8 Merge "filerepo: Add missing documentation to class properties" 2024-09-01 13:42:26 +00:00
jenkins-bot
811e4f2785 Merge "auth: Add missing documentation to class properties" 2024-09-01 13:31:02 +00:00
Umherirrender
20dadba5be filerepo: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: Ifbc2ce0c68865c5d32689e56c6215a5099f7478b
2024-09-01 12:09:37 +00:00
Umherirrender
3a09698763 utils: Remove unused ZipDirectoryReader::$data class property
Unused since addition of class property in 6906724935 (r100779)
Unused since dynamic creation in 0a21e2de12 (r82783)

Change-Id: I72c7dab67ef12d229fb232311e404467260d742d
2024-09-01 12:07:08 +00:00
Umherirrender
c9a4f4c9c5 filerepo: Remove unused LocalFileMoveBatch::$archive
Unused since the addition in 8d85629c58 (r34169)

Change-Id: Id08ee260e320d8c97c2c3576d998af1b70952f27
2024-09-01 14:00:13 +02:00
Umherirrender
31c1011105 exception: Use const for MWExceptionHandler::$fatalErrorTypes
Also remove @var from const, the type is given by the value of the const
and does not need documentation.

Change-Id: I65636f2b97b44387c4320ebfb4be6c81d6f771b9
2024-09-01 13:24:03 +02:00
jenkins-bot
d1c03580c5 Merge "title: Use const for NamespaceInfo::$alwaysCapitalizedNamespaces" 2024-09-01 11:11:05 +00:00
Umherirrender
e95bfeae60 title: Use const for NamespaceInfo::$alwaysCapitalizedNamespaces
Change-Id: I29bc609c5148668e533a9ed9f72b29f780f00dba
2024-09-01 12:06:28 +02:00
Umherirrender
0005b14e65 collation: Add type declaration for RemoteIcuCollation class properties
Also use type declaration on the remaining argument for the constructor

Change-Id: I39ce744ee4f4a9356b0788b6e38ece9635a5ca49
2024-09-01 11:47:57 +02:00
Umherirrender
e44aee1f74 auth: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: Ib6081f5519d2294bb14f81bf399f9c45315f2b69
2024-09-01 11:27:45 +02:00
Umherirrender
7bee34c99d Permissions: Avoid assignment in condition in PermissionManager
Change-Id: I7a9b5c89129fe4b555d03861f2c3ce3e9e2b2446
2024-09-01 00:03:29 +02:00
Umherirrender
cfa2cf73ff search: Replace IResultWrapper::fetchObject()/next() with foreach loop
Avoid assigment in conditions
foreach starts at begin of iterator, the while loop can process the next
from within the result, but all the iterator in search are rewinded
before iterator starts

Change-Id: I38b2729418e8389c681c6cd84858f5e5ed25bd3e
2024-08-31 23:58:02 +02:00
jenkins-bot
684496b621 Merge "Message: Add more tests for serialization and unserialization" 2024-08-30 22:13:07 +00:00
jenkins-bot
f4d75a2ee3 Merge "CodexModule: Fix double-flipping in RTL" 2024-08-30 22:10:26 +00:00
Bartosz Dziewoński
087e676cea Message: Add more tests for serialization and unserialization
Bug: T373719
Change-Id: I153b9ba9edf67d940ef6c7b1ab1fe9f806e534d7
2024-08-30 17:47:33 -04:00
jenkins-bot
9ba29602e7 Merge "tests: Remove deprecated MediaWikiIntegrationTestCase::addCoreDBData" 2024-08-30 21:38:53 +00:00
jenkins-bot
332310d7a1 Merge "maintenance: Replace deprecated Maintenance::$mOptions" 2024-08-30 21:32:39 +00:00
jenkins-bot
9e9aeb9926 Merge "i18n: Use "Don't" over "Do not" in tog-diffonly" 2024-08-30 21:17:51 +00:00
jenkins-bot
750aa11700 Merge "Start on tests for install.php" 2024-08-30 20:17:55 +00:00
jenkins-bot
c188ff067e Merge "Fully test createBotPassword.php" 2024-08-30 20:17:48 +00:00
jenkins-bot
614c47f905 Merge "Test deleteOrphanedRevisions.php" 2024-08-30 20:14:38 +00:00
jenkins-bot
b40cef955f Merge "Test dumpRev.php" 2024-08-30 20:14:29 +00:00
jenkins-bot
7eaeffdbfe Merge "Test fixUserRegistration.php" 2024-08-30 20:14:20 +00:00
jenkins-bot
5984c36efd Merge "Start on tests for renameUser.php" 2024-08-30 20:14:09 +00:00
jenkins-bot
5fa154cce9 Merge "Start on tests for resetAuthenticationThrottle.php" 2024-08-30 20:14:02 +00:00
Roan Kattouw
c13dbc8a93 CodexModule: Fix double-flipping in RTL
CodexModule::processStyle() looks at the path of the style file to
detect whether it's an already-flipped Codex file. In
I11c6a81a1ba34fe10f4b1c98bf76f0db40c1ce98 we broke this logic so that it
was comparing a full path (prefixed with MW_INSTALL_PATH) to a relative
path (not prefixed), so the detection always failed and we'd flip every
file. For Codex files, this meant we double-flipped the RTL files back
to LTR.

Follow-Up: I11c6a81a1ba34fe10f4b1c98bf76f0db40c1ce98
Bug: T373676
Change-Id: I49f14dcc503a3279362559197f12b2852276fb5e
2024-08-30 13:13:00 -07:00
Dreamy Jazz
bcb2112850 Start on tests for install.php
Why:
* Maintenance scripts in core are mostly untested and testing them
  will help to avoid regressions.

What:
* Create CommandLineInstallerTest.

Bug: T371167
Change-Id: Ia9ef03326d7c25b7eb310c191034932fffcbff8c
2024-08-30 19:44:52 +00:00
Dreamy Jazz
a805898fa1 Fully test createBotPassword.php
Why:
* Maintenance scripts in core have low test coverage
* Improving this will reduce the chances of regressions and bugs

What:
* Create CreateBotPasswordTest which fully tests
  createBotPassword.php maintenance script.
* While doing this, address a PHP warning that appears when the
  user does not specify the 'grants' option.

Bug: T371167
Change-Id: I8256c278b8397de896906e5714d478883b518ba0
2024-08-30 19:18:23 +01:00
Dreamy Jazz
0a89e2b019 Test deleteOrphanedRevisions.php
Why:
* Maintenance scripts in core have a low percentage of test coverage
* Testing these scripts helps avoid regressions and bugs

What:
* Create DeleteOrphanedRevisionsTest which fully tests the
  maintenance script.

Bug: T371167
Change-Id: I759a9203c52fd00cdeb5effe38f01190dec1fc80
2024-08-30 18:07:43 +00:00
jenkins-bot
618c745106 Merge "Fix vertical align of collapsibleFooter toggle across skins" 2024-08-30 17:56:06 +00:00
Ammarpad
8a2495432c specials: Improve SpecialExpandTemplates form
* add required attribute for inputbox
* move autofocus to the required inputbox
* move optional context title field below the more relevant inputbox

Bug: T161295
Change-Id: Id9ff5bb1386f28ccf3c6999dc0d1dcd04975e7c5
2024-08-30 18:14:27 +01:00
Dreamy Jazz
cf089f77ff Test dumpRev.php
Why:
* Maintenance scripts in core have poor test coverage
* Improving this coverage will help reduce the chances of bugs
  and regressions.

What:
* Create DumpRevTest which mostly covers dumpRev.php

Bug: T371167
Change-Id: I0707bd92abb8b39e257b97aafdadef6bc600bee2
2024-08-30 16:59:00 +00:00
Dreamy Jazz
05c7a34fa6 Test fixUserRegistration.php
Why:
* Maintenance scripts in core are mostly untested and testing them
  will help to avoid regressions.

What:
* Create FixUserRegistrationTest that fully tests the associated
  maintenance script.

Bug: T371167
Change-Id: Ifb3594f7dc0055568431002a9180df7db4da9692
2024-08-30 17:39:11 +01:00
Dreamy Jazz
3bcf2cae8c Start on tests for renameUser.php
Why:
* Maintenance scripts in core have low test coverage, and
  increasing the test coverage will help avoid regressions and
  bugs.

What:
* Create RenameUserTest which tests the renameUser.php
  maintenance script for when invalid arguments are provided.

Bug: T371167
Change-Id: I778f45e74708d1ad25b8bda918f5c3ca03e4668d
2024-08-30 16:35:30 +00:00
Dreamy Jazz
62943e496f Start on tests for resetAuthenticationThrottle.php
Why:
* Maintenance scripts in core have low test coverage, and testing
  them is important to avoid regressions and bugs.

What:
* Create ResetAuthenticationThrottleTest which tests the script
  for invalid or missing options, as well as resetting the
  throttles for temporary account creation and name acquiration.

Bug: T371167
Change-Id: Ied9619f12f3f41040b1837e0923f8c7fb345175c
2024-08-30 16:35:24 +00:00