Commit graph

121622 commits

Author SHA1 Message Date
James D. Forrester
21d8d9863b Drop old ResourceLoader class aliases, deprecated since 1.39
Depends-On: Iff15a2e13a3507ef1ab5cfa504ca1a1c8d2b2a60
Depends-On: Icf8331e35acf6fe51a8303ee639921b9e4f3e6bb
Depends-On: I5a5af003026db69b279ddde0b0dedbfcfe7d70fd
Change-Id: I5929a2f760c8d21c1cb2542a19220a91ac7240e4
2024-01-31 18:24:37 -05:00
Volker E
00ccdd7fa4 mediawiki.diff.styles: Apply border-color-muted token
Apply newly defined `border-color-muted` token and also fix comment.

Change-Id: I2521b50664bfe6661065b6e160dd5924ca6fab2f
2024-01-31 21:21:20 +00:00
jenkins-bot
2d4b281b68 Merge "Split User::getRightDescription into two methods" 2024-01-31 20:55:53 +00:00
jenkins-bot
ef3d347f00 Merge "Add populateUserIsTemp.php to update.php" 2024-01-31 20:54:38 +00:00
jenkins-bot
3140725166 Merge "Always allow local IP actors to be created when importing" 2024-01-31 20:30:36 +00:00
Samuel Guebo
15402237af Split User::getRightDescription into two methods
- Add getRightDescriptionHtml() to return HTML
  the change handles cases where the message contains wikitext
- Use the new method getRightDescriptionHtml() in createBotPassword

Bug: T312819
Change-Id: If3b9bce2f02806572cc6cc1194a07cb7d5b8d6da
2024-01-31 15:28:37 -05:00
jenkins-bot
e6eb387e4a Merge "Make ExtensionRegistry available via MediaWikiServices" 2024-01-31 20:05:59 +00:00
jenkins-bot
bb004b6065 Merge "composer: Allow unreleased composer versions" 2024-01-31 20:00:24 +00:00
jenkins-bot
b8d4fca1a0 Merge "Refine Command and Shell classes" 2024-01-31 18:43:54 +00:00
jenkins-bot
a3f9273a24 Merge "Use typed properties in Settings classes" 2024-01-31 17:58:34 +00:00
Doğu Abaris
b18f2d6bd1 Refine Command and Shell classes
Refactor includes/shell/Command.php and includes/shell/Shell.php:
- Use typed properties, improve method signatures.
- Remove unused (not thrown) import in Command.php.
- Clarify documentation and method parameters.

Change-Id: I08f7b31c8c2029bf224c7c3c30712024d7119d8f
2024-01-31 17:02:54 +00:00
jenkins-bot
88cbe20aba Merge "api-testing: Increase highest expected revId" 2024-01-31 16:54:30 +00:00
Doğu Abaris
6dbefa012e Use typed properties in Settings classes
This patch updates several Settings classes within the includes/Settings
directory to use typed properties, thus simplifying the codebase by
removing explicit docblock annotations for class properties.

- DynamicDefaultValues.php: Convert $configSchema property to use
  typed property syntax.
- LocalSettingsLoader.php: Apply typed property syntax to
  $settingsBuilder and $baseDir.
- WikiFarmSettingsLoader.php: Switch $settingsBuilder to typed property.

Change-Id: Iec8ee9c91362d13f49dea65f314d5c1113a19306
2024-01-31 16:47:54 +00:00
jenkins-bot
7fd9371724 Merge "ResourceLoader: Convert resourceloader_build metric to statslib" 2024-01-31 16:22:33 +00:00
jenkins-bot
c157068b30 Merge "upload.js: Fire wikipage.content with a single element" 2024-01-31 15:46:50 +00:00
Jakob Warkotsch
c307f70b4c api-testing: Increase highest expected revId
999 edits isn't that many, even for a freshly created CI wiki.
Wikibase's e2e test suite started hitting this limit which causes
this test to fail.

Change-Id: I0aff1fcc648780201cb2ad14a1e27aafb3e90774
2024-01-31 16:41:11 +01:00
jenkins-bot
9844cb8a4e Merge "Make use of the [ ... ] operator instead of array_merge" 2024-01-31 15:11:34 +00:00
jenkins-bot
077b6ca44e Merge "upload: Distinct logs in UploadFromChunks as mention in comment" 2024-01-31 15:00:11 +00:00
thiemowmde
ab1e3a66e7 Make use of the [ ... ] operator instead of array_merge
The array spread operator is documented to behave identical to
array_merge. The syntax is just much shorter and easier to read in
situations like this, in my opinion.

Change-Id: I3b016e896e552af53d87d5e72436dc4e29070ce1
2024-01-31 15:47:44 +01:00
jenkins-bot
3edf6c704e Merge "EmailUserTest: check user in getOption() in mutelist test" 2024-01-31 13:13:10 +00:00
Keith Herron
1204f0dee4 ResourceLoader: Convert resourceloader_build metric to statslib
Bug: T355960
Change-Id: Ida574150735560f8265133754cf27d12cb7a4221
2024-01-31 10:41:18 +00:00
Translation updater bot
f3f3c2638f Localisation updates from https://translatewiki.net.
Change-Id: Ieecdb31b2362638d25c621d632ab331f74b79b5f
2024-01-31 08:14:54 +01:00
Tim Starling
2ed8bb915d composer: Allow unreleased composer versions
If you try to do `composer update` using a git checkout of a Composer
branch, it fails because "@package_version@" is less than 2.0.0.

So in that case, use Composer::getVersion() which falls back to
Composer::SOURCE_VERSION. The method doesn't exist on very old versions
of Composer, so we can't use it unconditionally.

Change-Id: I53ea01c2f992499a25ba851bd8ed3593c9a13711
2024-01-31 10:07:49 +03:00
jenkins-bot
a0e1796f37 Merge "mediawiki.less: Amend neutral @border-color-muted value" 2024-01-31 02:20:23 +00:00
jenkins-bot
ccd35e3b01 Merge "Replace qualifiers with import in PHPSessionHandler" 2024-01-31 00:57:53 +00:00
jenkins-bot
5b84d8a558 Merge "Refactor CsrfTokenSet to use typed property" 2024-01-31 00:48:49 +00:00
jenkins-bot
483c79921c Merge "Remove unnecessary namespace qualifiers in CookieSessionProvider" 2024-01-31 00:43:57 +00:00
Doğu Abaris
5c5985c3cb Replace qualifiers with import in PHPSessionHandler
This patch optimizes the use of namespaces in the PHPSessionHandler.
It imports the `SessionHandlerInterface` and `PhpSessionSerializer`
classes

Change-Id: Iab4f000d315b75da95db3bc368ddcb0b8ac9312b
2024-01-31 01:29:40 +01:00
jenkins-bot
e4ab75aad5 Merge "rdbms: clarify allowed characters in DBname/DBschema/DBprefix" 2024-01-31 00:25:42 +00:00
Doğu Abaris
a0bf1cb820 Refactor CsrfTokenSet to use typed property
Refactored CsrfTokenSet by removing the doc comment for the `$request`
member variable and adding a type declaration directly in the property
definition.

Change-Id: I997ce2db44528fcf4599d71126551cb42cd9f9f6
2024-01-31 01:12:21 +01:00
jenkins-bot
2559711ad1 Merge "Remove angle brackets from specialmute-email-footer" 2024-01-31 00:07:25 +00:00
Doğu Abaris
de334a5589 Remove unnecessary namespace qualifiers in CookieSessionProvider
In CookieSessionProvider, unnecessary namespace qualifiers for the
WebRequest parameter in method documentation have been removed,
making the documentation cleaner and more consistent. This change
applies to the getUserInfoFromCookies and getCookie methods.

Change-Id: Ib9f8cf22dda6015abf84df5203300534df63da15
2024-01-31 01:05:22 +01:00
jenkins-bot
a0087c99ec Merge "Html: Remove unused ?? null" 2024-01-30 23:54:09 +00:00
jenkins-bot
26b0ba314e Merge "stats: add more detail about label order significance" 2024-01-30 23:47:06 +00:00
jenkins-bot
72cdc3f9f5 Merge "rdbms: Remove $domain support from ::getDBFromRecency" 2024-01-30 23:32:21 +00:00
jenkins-bot
7618b35100 Merge "installer: Update the updatelog table on UpdateCollation run" 2024-01-30 23:12:40 +00:00
jenkins-bot
f73ce681cd Merge "stats: Document that label order is significant" 2024-01-30 22:43:38 +00:00
jenkins-bot
8098688638 Merge "MimeAnalyzer: Add @since to isValidMajorMimeType" 2024-01-30 22:41:41 +00:00
Volker E
bb566555b3 mediawiki.less: Amend neutral @border-color-muted value
Following-up to Idcfdee458301, the neutral colors should not feature
Wikimedia User-Interface colors as they are fallbacks for custom
MediaWiki skins outside of Wikimedia.

Change-Id: I4cbf2c6754f1ee75c7b976651c3234d3202af8d2
2024-01-30 23:30:54 +01:00
Umherirrender
b7e9611d4d upload: Distinct logs in UploadFromChunks as mention in comment
Use the unused variable for that

Follow-Up: I3f03b93de835f6f5497f4b5904b37d62d40eb9f2
Change-Id: Id46783bd8d8fd155471fe842d209a7680f2436ea
2024-01-30 22:01:34 +01:00
Cole White
5a54518717 stats: add more detail about label order significance
Adds example code alongside expected output.
Adds test.

Change-Id: I5a73d931757fa9bba25963ddb6ee78040b942a60
2024-01-30 20:53:32 +00:00
jenkins-bot
42ed9ea230 Merge "Simplify and cleanup ComposerInstalledTest" 2024-01-30 19:24:20 +00:00
Amir Sarabadani
3c7cc637eb installer: Update the updatelog table on UpdateCollation run
Without this, it's trying to run update every time.

Bug: T356189
Change-Id: Ib005316f67af748bb3da81079d22d2aa572e4493
2024-01-30 20:04:09 +01:00
jenkins-bot
8db391e4fc Merge "Rest/HeaderParser: Give full context rather than simply Expected """" 2024-01-30 18:28:06 +00:00
Fomafix
2ab0d5ca78 Html: Remove unused ?? null
I93845e8d6f870d147bd55cfe3827bc94b375d0ba the value in
$selectAttribs['id'] is not null.

Change-Id: I6ca9bba7d73fe1328bb08e0f97b8d34c017424dd
2024-01-30 18:15:52 +00:00
DannyS712
897f08d707 Simplify and cleanup ComposerInstalledTest
No need for a data provider for only a single case, use class-level @covers

Change-Id: Ie0893e991dc0875520fd542c60a1a3e4f8282213
2024-01-30 18:05:49 +00:00
Fomafix
bc9d87ad60 ChangesList: Use <details> for collapsing of the legend box
The collapsing of the legend on the changes list now works without
JavaScript. For storing the state in a cookie still JavaScript is used.

The HTML elements <details> and <summary> are supported by newer
browsers:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

Bug: T172618
Change-Id: I67d1e791dc99e25f8ef80920ec9a8420354f3412
2024-01-30 16:52:21 +00:00
jenkins-bot
88fc006712 Merge "updateCollation: Fix output of spacing text" 2024-01-30 16:51:05 +00:00
James D. Forrester
67547915f3 Rest/HeaderParser: Give full context rather than simply Expected """
Also make the error thrown by ConditionalHeaderUtil slightly more
obvious where the upstream content ends and the context starts.

Bug: T350852
Change-Id: Ia76c0974487f151c3ca37fba2c666143bd435843
2024-01-30 11:27:47 -05:00
Reedy
1d5a25aa65 updateCollation: Fix output of spacing text
Before:
```
Updating category collations...Selecting next 100 pages from cl_from = 0...  processing...0 done.
Selecting next 100 pages from cl_from = 100...  processing...0 done.
Selecting next 100 pages from cl_from = 200...  processing...0 done.
```

Change-Id: Ib55854f38506c5f7e0c09c530bc4f66285c29e60
2024-01-30 15:47:49 +00:00