Commit graph

126862 commits

Author SHA1 Message Date
Dreamy Jazz
2d8298c36c Improve documentation for wgAutopromoteOnce
Why:
* The documentation for wgAutopromoteOnce gives one valid value
  for the "event" but says "Where the event is either"
* There is only one accepted format for "event", so this should
  be clarified in the documentation.

What:
* Improve the documentation for wgAutopromoteOnce.

Change-Id: I014c0102985152e1bb7dda3a48a5e5988f24ddbd
2024-09-23 18:31:48 +01:00
Amir E. Aharoni
fe485a0135 Add Interslavic (Cyrillic; isv-cyrl)
Also add gender aliases to Interslavic (Latin)
and custom plural rules for isv-cyrl.

Bug: T375360
Change-Id: I1ea5e36b09a4eecbc0edf085deb50a392f7fcca5
2024-09-23 10:15:53 -04:00
jenkins-bot
2bed4a942d Merge "Hide user links for anon users when temp accounts are enabled" 2024-09-23 09:20:54 +00:00
Translation updater bot
bc72d5b4f7
Localisation updates from https://translatewiki.net.
Change-Id: I88440f316b69c1196f0ad19f4aa1a826f0a02d84
2024-09-23 09:04:37 +02:00
Amir E. Aharoni
8d7246ae81 Add namespace translations for Tigre (tig)
Contributed by User:Bbeshir at
https://incubator.wikimedia.org/w/index.php?title=Talk:Wp/tig/Main_Page&oldid=6385826

Bug: T375052
Change-Id: Iae1e539ba96dc0447a8a84b7b7c3f041156f654c
2024-09-22 23:27:38 -04:00
jenkins-bot
c22e07fd1e Merge "Update English langauge name of Puxian (cpx) in comments" 2024-09-22 13:28:22 +00:00
jenkins-bot
5476caa7b8 Merge "Languages: Fix written script for Xiang (hsn)" 2024-09-22 08:34:28 +00:00
jenkins-bot
b912a90d21 Merge "Merge gan translations back to gan-hans and gan-hant respectively" 2024-09-22 08:28:26 +00:00
Winston Sung
c75df5c39b Merge gan translations back to gan-hans and gan-hant respectively
Bug: T286291
Bug: T296188
Change-Id: I18c90f3c26396699ec60b077bc438d626a0c5c7e
2024-09-22 07:56:28 +00:00
Winston Sung
18065ee139 Languages: Update fallback of Mindong (cdo)
This update the fallback language from Minnan (nan) to Minnan (Traditional Han script) (nan-hant).

Change-Id: I40182e667c72778ad8e00a1a541bbc941938b11f
2024-09-22 06:31:46 +00:00
Winston Sung
2bcd8f66c7 Update English langauge name of Puxian (cpx) in comments
Change-Id: I6b3a57958e1626f5ee7c1d8ac24ab87ff84c8dc8
2024-09-22 06:31:15 +00:00
Winston Sung
a60faebdbd Languages: Fix written script for Xiang (hsn)
The Xiang on translatewiki and Wikimedia Incubator Wikipedia-hsn were written in Traditional Han script (Hant) instead of Simplified Han script (Hans):

https://translatewiki.net/wiki/Portal:Hsn
https://incubator.wikimedia.org/wiki/Wp/hsn

Change-Id: I2b0566cb6f13556002b38f6bc9df08f7b9c6d2a4
2024-09-22 06:26:49 +00:00
Acamicamacaraca
e17f9be025 User and user talk namespaces should be gender-sensitive in Serbo‑Croatian
Bug: T373864
Change-Id: Ic9afbed7817f15031a508c3302e2b080cb48bfce
2024-09-22 04:10:47 +00:00
Acamicamacaraca
e8be5ba080 Standardize the Serbo-Croatian date and time format
Bug: T373754
Change-Id: I69957d7230f1fda5221ab4ce665b72d39cdd605a
2024-09-22 04:08:08 +00:00
jenkins-bot
50b68a25c3 Merge "SpecialExport: Prevent passing null to strtolower" 2024-09-21 19:23:28 +00:00
jenkins-bot
eb5e5afb5c Merge "SpecialBlock: Make private function getTargetAndTypeInternal non-static" 2024-09-21 18:24:24 +00:00
Fomafix
2a6782be70 SpecialBlock: Make private function getTargetAndTypeInternal non-static
This allows to access $this->blockUtils.

Also make the parameter WebRequest $request mandatory. because it is
already always present.

Change-Id: I97d5af0c5b1f54c4bd666183ae98199aa576596e
2024-09-21 15:22:41 +00:00
Paladox
deb607c350 SpecialExport: Prevent passing null to strtolower
Change-Id: I89f0776ee5d61b2f58da2115b0a00ad2ddcbfe5a
2024-09-21 14:55:36 +00:00
jenkins-bot
b145754452 Merge "tests: Use ::class for class name resolution" 2024-09-21 13:48:10 +00:00
jenkins-bot
655ff89caa Merge "REST: Introduce discovery endpoint" 2024-09-20 19:52:41 +00:00
Umherirrender
8e039f2101 tests: Use ::class for class name resolution
Also use namespaced version of the class

Change-Id: Idce009e4d0a8e77f95244d95db008d64a2025c5f
2024-09-20 21:19:22 +02:00
Jamie Kuppens
27525bbb97 Hide user links for anon users when temp accounts are enabled
Bug: T372722
Change-Id: I4d883aea869c742b32bbbba46009ded9dddd0835
2024-09-20 11:48:01 -07:00
Amir E. Aharoni
91074b8726 Add Tigre (tig) to Names.php
Bug: T375052
Change-Id: Ie7b2db805386e6eb3d3603f6d0686f27450bbf76
2024-09-20 17:24:01 +00:00
jenkins-bot
60a26f7ccd Merge "Add Codex message box style module to pages that need it" 2024-09-20 17:22:32 +00:00
jenkins-bot
e7ca5163b2 Merge "Fix names of parsercache_selective_* stats" 2024-09-20 17:12:48 +00:00
daniel
84fe1b9ccd REST: Introduce discovery endpoint
The discovery endpoint provides basic information about accessing the
wiki's APIs, as well as a directory of available modules.

Bug: T365753
Change-Id: I161aa68566da91867b650e13c8aadc87cd0c428c
2024-09-20 17:02:59 +00:00
Jon Robson
7843fbc0c2 Add Codex message box style module to pages that need it
Since legacy skins do not load the full version of Codex, many
Codex message box appeared unstyled on pages which call
functions using Html::messageBox

Legacy skins do not load Codex by default, so these should be
explicitly added by the interface using them. Since there are
lots of these, for now we'll do this in the skin to avoid
breakage.

For skins supplying Codex via other style modules,
this will be negligible because of gzip, they will also be
able to remove the style if necessary.

Bug: T373602
Bug: T375246
Change-Id: If3c2d26de3faa9f85025ea8643d97242cad27574
2024-09-20 16:53:36 +00:00
jenkins-bot
c05a3d57ee Merge "REST: validate JSON in tests" 2024-09-20 16:48:03 +00:00
jenkins-bot
634ed2c90a Merge "objectcache: Remove wanobjectcache.$keygroup.regen_set_delay metric" 2024-09-20 16:11:39 +00:00
daniel
d7ed4b14bb REST: validate JSON in tests
This applies JSON Schema validation in phpunit tests where appropriate:

1) In ModuleSpecHandlerTest, the generated OpenApi specs are validated
against the OpenAPI 3 schema.

2) In RestStructureTest, module definition files are validated against
   the mwapi schema.

This patch introduces a new trait to make it easy for phpunit test cases
to perform validation.

This patch also fixes some issues with the docs/rest/mwapi-1.0.json
schema and the includes/Rest/content.v1.json module definition.

Change-Id: I966cddb337c9373ed3a369496548a8d8c538ae84
2024-09-20 15:42:32 +00:00
jenkins-bot
a33bde8226 Merge "Debug toolbar: Fix extraneous query time precision" 2024-09-20 14:04:29 +00:00
jenkins-bot
58f644abc2 Merge "shell: Add wallTimeLimit option to CommandFactory::createBoxed()" 2024-09-20 09:36:00 +00:00
Translation updater bot
1f2a0fe3f4
Localisation updates from https://translatewiki.net.
Change-Id: I1f2e02ee4b6de6c5e18ea0a23f9a203b4e312999
2024-09-20 09:03:52 +02:00
Bartosz Dziewoński
1d8dfb276d Debug toolbar: Fix extraneous query time precision
The query runtime is recorded in Database.php with 3 decimal places:
    'runtime_ms' => round( $queryRuntime * 1000, 3 ),
So it makes no sense to display it here with 4 decimal places.

Change-Id: If6d40344bddb41950356b346d713047a4c7871ed
2024-09-20 06:05:51 +02:00
jenkins-bot
686945071e Merge "rdbms: clean up LBFactorySingle construction and documentation" 2024-09-20 03:19:17 +00:00
jenkins-bot
97437ad8a3 Merge "installer: use ConnectionStatus::getDB() in more places" 2024-09-20 03:15:14 +00:00
Aaron Schulz
9e3a1ecfb7 rdbms: clean up LBFactorySingle construction and documentation
Remove the "lb" option from __construct(). Instead, just automatically
make an instance of LoadBalancerDisabled if "connection" is null. Update
newDisabled(), the only caller using "lb", to pass a null connection.

Explicitly specify the extra LoadBalancer parameters in __construct().

Rename "lb" field to "mainLB" for consistency with other subclasses.

Tweak documentation for LBFactory subclasses to use  more consistent
language about LoadBalancer and clusters.

Change-Id: Ia81f1a9eb00e682e9a223770573d21f92857a698
2024-09-20 02:45:53 +00:00
jenkins-bot
18eb434cf5 Merge "Pass function name to IDatabase functions" 2024-09-20 01:25:26 +00:00
jenkins-bot
7c2f240169 Merge "Make $fname mandatory on private functions" 2024-09-20 01:25:19 +00:00
jenkins-bot
8194d32bc4 Merge "Pass function name to HttpRequestFactory::create" 2024-09-20 00:02:55 +00:00
jenkins-bot
a075d0e99b Merge "Prompt user to log in to access Special:My* pages" 2024-09-19 20:14:41 +00:00
Jamie Kuppens
5a0ed5bd16 Prompt user to log in to access Special:My* pages
* Redirect to the login page for anonymous users trying to view their
  IP user contributions on 'Special:MyContributions'.

* Redirect to the login page for anonymous users trying to view their
  IP user logs on 'Special:MyLog'.

* Redirect to the login page for anonymous users visiting
  'Special:MyPage'.

* Redirect to the login page for anonymous users visiting
  'Special:MyTalk'.

* Redirect to the login page for anonymous users trying to view their
  uploads on 'Special:MyUploads'.

Bug: T372722
Change-Id: I24a858488db6b64d9de337c663b136519bf0583a
2024-09-19 19:40:09 +00:00
Umherirrender
fdac97eaf3 Pass function name to IDatabase functions
Change-Id: Ie2a1e5052e5b61bbb5b89905de942f47d3f1413d
2024-09-19 21:02:52 +02:00
C. Scott Ananian
65ecdc0eea Fix names of parsercache_selective_* stats
Rename to use a unit type as a suffix to match the guidance in
 https://www.mediawiki.org/wiki/Manual:Stats#Metrics

Change-Id: Ied4c1c3a1ab7fa6148d10a7fc89094c46f568453
2024-09-19 14:41:19 -04:00
lwatson
e307e58979 Update OOUI to v0.51.1
Release notes: https://gerrit.wikimedia.org/g/oojs/ui/+/v0.51.1/History.md

Bug: T374858
Bug: T371201
Bug: T371466
Bug: T373226
Depends-On: I3663e72f4f1dbb6dd0b461b5a2464420937d3ed6
Change-Id: Ic8f80b0db5a08f00d9178163b1fbbb79515c1603
2024-09-19 14:10:51 -04:00
Umherirrender
58e26c3ef6 Make $fname mandatory on private functions
For a private function the $fname does not need to be optional,
it should be easy to pass it always.

Change-Id: Ifcddcd2479ae6f8bbf68210441c61ee7a45e1489
2024-09-19 20:09:20 +02:00
Umherirrender
63d2f5571a Pass function name to HttpRequestFactory::create
Change-Id: Iaed5489a85a5a6e685829e151436afc94310fbd0
2024-09-19 19:59:46 +02:00
jenkins-bot
6459a1a040 Merge "rdbms: clarify ownership and connection-specificity concepts" 2024-09-19 16:37:55 +00:00
jenkins-bot
23686f4a37 Merge "Allow extensions to send password resets without a local user/email" 2024-09-19 10:58:00 +00:00
jenkins-bot
0e5d1eab32 Merge "auth: Add base class for TemporaryPasswordPrimaryAuthenticationProvider" 2024-09-19 10:33:44 +00:00