Commit graph

121057 commits

Author SHA1 Message Date
daniel
cea8aee05e Make Maintenance::finalSetup require a SettingsBuilder
Maintenance::finalSetup should have access to a SettingsBuilder so it
can manipulates config settings without resorting to global variables.
MaintenanceRunner will always provide a SettingsBuilder when calling
this method, so implementations should be able to rely on always getting
one.

The $settings parameter was introduced as optional in order to maintain
backwards compatibility with implementations that did not declare the
parameter. But these should all have been fixed since.

Depends-On: I8a3699b13bfb4dc15f3bed562731ed9d525651cc
Change-Id: I334a103e02fd905faafc43c7c5b95996bc91fd18
2024-01-08 09:40:18 -05:00
Jon Harald Søby
a58151885b [Languages] Add Tooro (ttj)
Bug: T354519
Change-Id: I920e0e00ffa7f500d24cdbec1b4085f058f49495
2024-01-08 13:36:32 +00:00
jenkins-bot
e577e75d94 Merge "Replace deprecated User::newFromName with UserFactory::newFromName" 2024-01-08 11:13:55 +00:00
Translation updater bot
761c98ff95 Localisation updates from https://translatewiki.net.
Change-Id: I965441edbda7c2c154b11730b7d2cfdbfdf12283
2024-01-08 10:24:15 +00:00
Dogu
a5f9538e98 Replace deprecated User::newFromName with UserFactory::newFromName
The User::newFromName is deprecated as of MediaWiki 1.36 and has been
replaced with the UserFactory::newFromName.

Change-Id: I5c03befc0e9f1a5d8d766374b44d6188f7ff0379
2024-01-08 10:13:42 +00:00
jenkins-bot
080a4667c9 Merge "Rename Mon language (mnw)" 2024-01-08 09:33:49 +00:00
jenkins-bot
c6251dc806 Merge "Replace deprecated wfParseUrl with UrlUtils::parse" 2024-01-08 05:57:09 +00:00
jenkins-bot
039542aa83 Merge "Document mw.Feedback" 2024-01-08 04:19:52 +00:00
Jon Robson
6d56fb9b8a Document mw.Feedback
Bug: T352308
Change-Id: Ic76c51d43f8bccad9d10bae1078d2f94b221bebe
2024-01-08 02:25:43 +00:00
Dogu
137d046c12 Replace all the OOUI qualifiers with imports
List of affected classes:
- TablePager
- DefaultPreferencesFactory
- SignatureValidator
- SearchFormWidget
- SpecialUndelete

Change-Id: I63ba23108adb16ee4f8b0f965b05605c70ff7957
2024-01-07 21:17:57 +00:00
jenkins-bot
bce6ee7ca2 Merge "entrypoint: Restore doc grouping for MediaWikiEntryPoint" 2024-01-07 17:07:22 +00:00
jenkins-bot
899a960906 Merge "Revert "OOUIHTMLForm: Enable OOUI only if the form is going to be displayed"" 2024-01-07 12:02:13 +00:00
jenkins-bot
52384f69e7 Merge "MediaWikiIntegrationTestCase: add comment" 2024-01-07 10:56:17 +00:00
Dogu
54b1731f88 Replace deprecated wfParseUrl with UrlUtils::parse
The wfParseUrl function is deprecated as of MediaWiki 1.39 and has been
replaced with the UrlUtils::parse method provided by the UrlUtils class.

List of affected classes:
- deleteSelfExternals
- UserMailer

Change-Id: I5e36ee80e5c30e95b79bf45e7b26860cb2668d56
2024-01-07 10:24:37 +00:00
Novem Linguae
f34b654631 MediaWikiIntegrationTestCase: add comment
Took some digging to figure this out. State it more
explicitly.

Change-Id: I66d52e54f3f4ee054d94c81510cfc85e1410db38
2024-01-07 00:35:30 -08:00
jenkins-bot
a37bf910d0 Merge "Replace deprecated MWException with InvalidArgumentException" 2024-01-07 08:26:57 +00:00
jenkins-bot
48f4b3beb6 Merge "Authority class: copy edit comment" 2024-01-07 06:33:34 +00:00
Dogu
f73d342b29 Replace deprecated MWException with InvalidArgumentException
Change-Id: I14391c156f66e9686f82b93d55e0bbcd951f8057
2024-01-07 06:18:13 +00:00
Novem Linguae
583ac58b9d Authority class: copy edit comment
Change-Id: I066e8d758b6d306d9de99d1e761959b6d353a763
2024-01-06 17:31:33 -08:00
Timo Tijhof
2953becc4d ResourceLoader: Improve docs for $wgResourceLoaderValidateJS
Change-Id: If9591e292910fc2ae7bf2041af57b053d17eb845
2024-01-06 22:33:09 +00:00
Func
0472f2905c Revert "OOUIHTMLForm: Enable OOUI only if the form is going to be displayed"
This reverts commit b08b6a7785.

Reason for revert: T354384 and T354475, we may need a safer fix for the original bug (T352592).

Bug: T352592
Bug: T354475
Change-Id: I8c1cfb2a85297a7db75f45fbd247ec654ad33b49
2024-01-06 13:48:59 +00:00
jenkins-bot
9d77e2797e Merge "Clean up MediaWiki\OutputTransform namespace casing confusion" 2024-01-06 10:44:47 +00:00
jenkins-bot
efc547aedd Merge "api: Stop further linkpurges only when ratelimited" 2024-01-06 02:19:13 +00:00
Aaron Schulz
f4261e029f Clean up MediaWiki\OutputTransform namespace casing confusion
The case mismatch was causing confusing PHP errors about missing
classes during paratest runs.

Change-Id: Iaddddd2ff825e41609e915938bc27c0bc4bba245
2024-01-05 17:53:19 -08:00
jenkins-bot
63c78d6eca Merge "rdbms: Migrate Database::query() calls in DatabaseSqlite to Query object" 2024-01-06 01:23:49 +00:00
jenkins-bot
ed4df49fe8 Merge "RELEASE-NOTES: group namespacing moves together" 2024-01-06 01:17:02 +00:00
Umherirrender
b458d37c04 api: Stop further linkpurges only when ratelimited
Failure related to page permissions (like $wgNamespaceProtection or
.js/.css-pages) should not stop further linkpurges.
Also stop further recursive linkpurges when ratelimited,
as that only repeats the api warning message.

Bug: T354461
Change-Id: I153f7d8e472dd17cc26e329bee40005e1ed914fd
2024-01-06 00:12:36 +00:00
jenkins-bot
83723d250d Merge "Edit recovery: Use addEventListener and arrow functions consistently" 2024-01-05 23:56:37 +00:00
DannyS712
ab261e20a0 RELEASE-NOTES: group namespacing moves together
Follow-up: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: Ida4b249aed39a9f82ba4506b942ae53bb2c4b970
2024-01-05 23:50:19 +00:00
Pppery
876e9883aa Allow MergeHistory to split up joined revisions with same timestamp
Bug: T183501
Change-Id: Iedd818a83838683fb07334aade11754557828062
2024-01-05 23:09:15 +00:00
jenkins-bot
1121ea90d0 Merge "Use year in temporary user names and restart index each year" 2024-01-05 22:59:47 +00:00
jenkins-bot
0fe2bbf408 Merge "Resources.php: Replace short urls with full urls" 2024-01-05 20:24:03 +00:00
Timo Tijhof
d1c85b2f5d entrypoint: Restore doc grouping for MediaWikiEntryPoint
Follows-up Ib70e4e67e4cb1.

* This removed index.php from the "entrypoint"
  group, but did not add MediaWikiEntryPoint in its stead.

* Fix broken `@see` reference, leading slash is not part of the
  identifier for the `@file` block index.php, only works without it.

* Move the defgroup to a more natural place in the parent class' file.

Bug: T354216
Change-Id: I1281e0934368884f4d1ffbbd3f5588b9a211356f
2024-01-05 20:15:46 +00:00
Reedy
db1350ef61 installer: Minor cleanup
* Minor comment tweaks

Change-Id: I76b44fcd88f27f6182f2b245301298a182e870f5
2024-01-05 18:16:42 +00:00
Reedy
0e872da7e2 Resources.php: Replace short urls with full urls
Follows-Up: Idc3242530c1a330d3a07ef9ec5041b7138cc54ce
Change-Id: I018ae5852ff9e02935b054c44b0f8929eda4424b
2024-01-05 17:21:54 +00:00
Thalia
caf9912323 Use year in temporary user names and restart index each year
Why:

* Part of a temporary user name is generated from an index that
  increments, which is stored in the database.
* As specified in T345855, the index will be restarted each year.
* Also specified in T345855, the year will be included in
  generated temporary user names.

What:
* Since the year must be included in the name in order to avoid
  naming conflicts if the index is restarted each year, both are
  implemented together and controlled by a single config.
* Add a new config option that, when true, restarts the name
  generation index at the start of each year and add the year into
  the user name: $wgAutoCreateTempUser['serialProvider']['useYear']
* Add a uas_year column to the user_autocreate_serial table, which
  is unique in combination with uas_shard, so the index can be
  stored for each shard/year combination.
* The year is added into the username just after the prefix, as
  specified in T345855. This is based on research that having the
  year near the start of the name aids understanding that the
  names are not IP addresses. The position of the year within the
  name is therefore not configurable (though whether to include
  it is). See T345855 for the research.

Bug: T349494
Bug: T349501
Depends-On: I6b3c640a4e74f52fd4a4f46de5a2cbe80fe3b665
Change-Id: If51acb3f4efa361ce36d919c862a52501a5a7d24
2024-01-05 17:14:19 +00:00
jenkins-bot
78fc98c9ae Merge "Correction: Correct the MediaWiki version this was deprecated in" 2024-01-05 17:11:45 +00:00
jenkins-bot
882dfb517e Merge "Replace FieldLayout and SearchInputWidget qualifiers with imports" 2024-01-05 17:07:51 +00:00
jenkins-bot
f587d210da Merge "Replace SerializerNode, Element, and Exception qualifiers with imports" 2024-01-05 17:06:11 +00:00
Jon Robson
d801269127 Correction: Correct the MediaWiki version this was deprecated in
Follow up to I3c8b844a207e9c86b477b50c57ebc51a1fd8fc93

Change-Id: Idc3242530c1a330d3a07ef9ec5041b7138cc54ce
2024-01-05 16:47:37 +00:00
jenkins-bot
b5d297e390 Merge "Skip TextContentHandler::merge3() when texts are identical" 2024-01-05 16:35:56 +00:00
thiemowmde
93b3710c14 Skip TextContentHandler::merge3() when texts are identical
This is mostly done for performance reasons, but can even be
user-facing in rare situations. Unfortunately it's really hard
if not impossible to provide steps to reproduce it. I hope the
proposed line of code makes sense on it's own.

The setup that made me run into this edge-case is explained in
https://www.mediawiki.org/wiki/Topic:Wugee2vl8m8kqr2h
But the idea is always the same, with or without the TwoColConflict
interface: When $wgDiff3 is misconfigured wfMerge() will return
false, as if a conflict was detected. But we can easily check if
it's even possible to have a conflict (impossible when the texts are
identical) even without having access to diff3.

The relevant caller is EditPage::mergeChangesIntoContent(). We could
add the new conditional to this spot as well. But I feel like it
makes more sense to always do it, for all possible callers. The
extra identity check is extremely inexpensive, even with long texts.

Change-Id: I5b1438b1ff71590718120367eb414b8e9754236e
2024-01-05 16:14:35 +01:00
Ed Sanders
bb957c5c5f Edit recovery: Use addEventListener and arrow functions consistently
Change-Id: Iefcf8d62a52451c7343e272414ba57193ef1aed6
2024-01-05 14:42:29 +00:00
Dogu
c5097a6167 Replace MWException with Exception in UploadChunkFileException
MediaWiki's MWException class is deprecated since version 1.40.
Accordingly, this patch replaces the MWException base class with
PHP's built-in Exception class in UploadChunkFileException to
conform to current standards.

Change-Id: Iaf18520576a237d909e02c3238eb75070bcd5a6e
2024-01-05 09:13:34 +00:00
Dogu
22dc72c424 Replace FieldLayout and SearchInputWidget qualifiers with imports
Change-Id: Ifbb9dd3438277bf4805a1ce7e8fb155388a47383
2024-01-05 08:44:10 +00:00
Dogu
29d8092f5f Replace SerializerNode, Element, and Exception qualifiers with imports
Change-Id: I34e3600632f11adb53847656c605daa3618ff0fa
2024-01-05 08:43:16 +00:00
Translation updater bot
1f6e29d2de Localisation updates from https://translatewiki.net.
Change-Id: Iec6ee0f2b1d4dd7aea746f19646a4e6d88b59e90
2024-01-05 08:24:01 +01:00
jenkins-bot
8901f72e23 Merge "Introduce MediaWikiEntryPoint and ActionEntryPoint" 2024-01-05 02:56:40 +00:00
Dogu
4476c36da0 Replace InvalidArgumentException an WebRequest qualifiers with import
Change-Id: I5bf87d213aed48ef7849c785e1b5684c78993eb3
2024-01-05 02:11:01 +00:00
Dogu
a48bf6fb98 Replace StreamInterface qualifier with import
This patch simplifies the usage of the StreamInterface by
adding a use statement for the Psr\Http\Message\StreamInterface.

Change-Id: Id3fe73a81eb4a40c341fa426367cf71a9e82a481
2024-01-05 02:10:40 +00:00