Commit graph

117551 commits

Author SHA1 Message Date
jenkins-bot
43498b96fc Merge "CoreParserFunctionsTest: Avoid username pattern reserved for temp users" 2023-07-16 20:58:19 +00:00
jenkins-bot
419a4ed2d4 Merge "AuthManagerTest: Use localhost instead of local.wmftest.net" 2023-07-16 20:55:55 +00:00
Daimona Eaytoy
2d9b8797ef AuthManagerTest: Use localhost instead of local.wmftest.net
AIUI, the latter is vagrant-specific and doesn't work e.g. in
MediaWiki-Docker.

Change-Id: I63891b6796dbaeab63e7f34b1fddfafa5106fd1f
2023-07-16 20:26:22 +02:00
Daimona Eaytoy
5035ecd2f7 CoreParserFunctionsTest: Avoid username pattern reserved for temp users
The leading "*" is currently used as the username pattern for temp
users, meaning this test will fail if

  $wgAutoCreateTempUser['enabled'] = true;

Put the star at the end instead, and use a variable for the username
instead of repeating it multiple times.

Change-Id: Ie0414de5f9d9054dfec540f14bd0dc9ec7b4cb72
2023-07-16 19:55:50 +02:00
Winston Sung
64c005972c Merge zh and zh-tw namespace translations back to zh-hans, zh-hant,
zh-hk respectively

* Merge zh-tw translations back to zh-hant
* Split zh-hans, zh-hant, zh-hk translations and aliases from zh to
  respective message files
* Language->getNamespaceAliases() with the updated language fallback
  chain can already fetch aliases from language variant i18n files

All translation authors are added when merging those translations.

Bug: T286291
Bug: T296188
Change-Id: Ia2aa17fa15fe6d6b9396bf06b472d28b3ab12f68
2023-07-16 16:27:07 +00:00
Amir E. Aharoni
fbcc0eb52d Mention change of Buginese main page name in Release notes
Bug: T341943
Change-Id: I2d176eae812ec70b352fcec31042b8ab754be664
2023-07-16 15:59:49 +03:00
Amir E. Aharoni
0a37637d13 Update autonym for Buginese
Bug: T341942
Change-Id: I1470d65a61d9a65d41681d4a6a49a1d78b399b0a
2023-07-16 15:41:51 +03:00
jenkins-bot
a98f83cb3a Merge "mediawiki.user: Validate the cookie in sessionId() before returning" 2023-07-16 09:27:57 +00:00
jenkins-bot
d38b0e11ef Merge "tests: Pass Title to editPage() when already parsed" 2023-07-16 09:10:27 +00:00
Taavi Väänänen
bca86887cb
ExtensionJsonTestBase: add session provider tests
Depends-On: I28776e62017c680c11f97363540c1192f6c8932f
Change-Id: I85a2df9bdbfa500756a625b11d1ad3d3e71b8b32
2023-07-15 19:26:33 +03:00
Taavi Väänänen
34a9c3b343
ExtensionJsonTestBase: add auth provider tests
Change-Id: Ic6a3420090665fb7ef253882d18add7b8c59e0a1
2023-07-15 19:20:33 +03:00
jenkins-bot
0681d5a5fa Merge "phpunit: Avoid hardcoded URL in UserRightsProxyTest" 2023-07-15 14:15:47 +00:00
Daimona Eaytoy
cd2fc91d40 phpunit: Avoid hardcoded URL in UserRightsProxyTest
The hardcoded value doesn't work in all MW installs, because it depends
on the configured URL scheme. For instance, the test fails with the
default MediaWiki-Docker setup.

This test actually doesn't need URLs at all, so avoid unnecessary URL
conversion and config mocks, and just assert that the page title is the
one we expect.

Change-Id: If7ed01f7c2404bbd8a2751131647960816828949
2023-07-15 15:38:46 +02:00
Umherirrender
59191d19f0 tests: Pass Title to editPage() when already parsed
editPage() converts strings to Title object, but parsing title is
expensive. When a title object already exists, reuse this object to
avoid this in the test run.

Also avoids that a NS_MAIN get reparsed as NS_CATEGORY in
CategoryChangesAsRdfTest

Bug: T225730
Change-Id: I6be4f34bb7fa9789c7eee111317bffe60e34227c
2023-07-15 00:45:47 +02:00
jenkins-bot
426bcb65ba Merge "tests/parser: Use UserIdentity/Authority in ParserTestRunner" 2023-07-14 21:51:05 +00:00
Umherirrender
654f21e507 tests/parser: Use UserIdentity/Authority in ParserTestRunner
Change-Id: Idc300a6e53770e7d7390211af2764bc530c3330c
2023-07-14 23:18:49 +02:00
Daimona Eaytoy
b04576b3be phpunit: Sync phpunit.xml.dist with tests/phpunit/suite.xml
Since the latter is going to be removed, make sure that the former has
everything we need. In particular:
- Add failOnRisky=true from suite.xml
- Reorder config options and add comment about stderr from suite.xml
- Remove non-existent tests/phpunit/skins and
  tests/phpunit/documentation from the test suites. These cause an error
  when trying to run all the suites with `composer phpunit`.
- Leave the other suites as they are. Compared to suite.xml,
  phpunit.xml.dist has separate suites for core, extensions, and skins
  unit tests.
- Leave includeUncoveredFiles to false. The rationale in
  I3d19627fa36f6cc6666c29fdb638272fdaa30630 seems convincing. CI already
  sets it to true: https://w.wiki/72qE
- Leave slowThreshold to 100 as per
  Ia6ed404d4d4cc8a7b4b8a48b232f644f400f8103. I believe that change
  simply missed suite.xml. The same rationale that led to the threshold
  being increased for unit tests is valid a fortiori for integration
  tests, which are generally slower.

Rename SuiteDirectoryTest and make it check phpunit.xml.dist too.

Bug: T227900
Change-Id: Ib4b47b337870dffc61dd44817a21d11809075d5b
2023-07-14 20:59:42 +00:00
jenkins-bot
f9f7c81341 Merge "MediaWiki.php: Add a note about HTMLFileCache::useFileCache() path" 2023-07-14 20:32:15 +00:00
jenkins-bot
1901e3fbc4 Merge "Add tests for RequestContext::getSkin()" 2023-07-14 18:50:11 +00:00
jenkins-bot
538ae0af3b Merge "Html: Move encodeJsVar() + encodeJsCall() from Xml" 2023-07-14 18:03:41 +00:00
Lucas Werkmeister
3c5a0c862f Html: Move encodeJsVar() + encodeJsCall() from Xml
These methods really belong in the Html class, not Xml. Leave behind
soft-deprecated Xml methods that forward to the Html ones, as well as a
class alias for HtmlJsCode (renamed from XmlJsCode).

Bug: T341779
Change-Id: I99a5f9de1411d4eb5ee30226b4e8ace3ea8b2c3b
2023-07-14 13:42:02 -04:00
Amir E. Aharoni
75d15250f3 Remove comma splice from renameuser-error-temp-user-reserved
Change-Id: I00add34dfb7bf5fa48505577168a198eb245524b
2023-07-14 18:25:53 +03:00
Amir Sarabadani
77342327ee tests: Migrate calls to Database::update to UpdateQueryBuilder
Bug: T330640
Change-Id: I30f9e84658fbd996b5512e96dda3f6412ebf3a20
2023-07-14 15:40:11 +02:00
jenkins-bot
5551326fa0 Merge "tests: Migrate Database::delete calls to DeleteQueryBuilder" 2023-07-14 13:23:46 +00:00
Amir Sarabadani
614cd41507 tests: Migrate Database::delete calls to DeleteQueryBuilder
Bug: T340065
Change-Id: I92e85efd5d23d100a5df38aedb8edaecc5cbfc65
2023-07-14 14:48:42 +02:00
jenkins-bot
9e8b735140 Merge "Set default migration stage of externallinks to read new and write both" 2023-07-14 12:35:41 +00:00
Derick Alangi
06a4aa11bb MediaWiki.php: Add a note about HTMLFileCache::useFileCache() path
This code path is not used in our production environment but provided
for third-party wikis to speed up "view" and "history" actions on their
wikis.

Change-Id: Ib144317607acffb7b98bb346419b0c4a9bbecc72
2023-07-14 12:07:15 +00:00
jenkins-bot
162123db7f Merge "Simplify WHERE conditions with field = '' OR IS NULL" 2023-07-14 10:39:18 +00:00
jenkins-bot
aff42eff5d Merge "diff: make ins and del elements inline instead of inline-block" 2023-07-14 10:03:53 +00:00
jenkins-bot
e94c93399c Merge "diff: break spacing in inline ins and del elements" 2023-07-14 09:42:36 +00:00
Translation updater bot
4899542f8c Localisation updates from https://translatewiki.net.
Change-Id: I13e414066eb7c3c1b07e8169b8198a44e685ae82
2023-07-14 08:21:43 +02:00
jenkins-bot
9ce0343f4d Merge "EnhancedChangesList: Use HTML/CSS for collapsing" 2023-07-13 23:30:57 +00:00
jenkins-bot
bfec87c1c0 Merge "search: Make DB-backed search engines use ICP instead of LB/LBF" 2023-07-13 23:17:44 +00:00
Fomafix
9bf98ab9db EnhancedChangesList: Use HTML/CSS for collapsing
The collapsing on the enhanced changes list now works without
JavaScript.

Keyboard navigation is still supported but only the space and not the
return toggles the collapsing toggle button.

The <input type="checkbox"> element needs an unique identifier in the
`id` attribute and the same value must be in the `for` attribute of the
<label> element. A simple counter in the class EnhancedChangesList
starts twice from the beginning if the recent changes get included as:

 {{Special:RecentChanges|enhanced=1}}
 {{Special:RecentChanges|enhanced=1}}

Therefore a random value is used as checkbox identifier.

The module 'jquery.makeCollapsible' and its classes `mw-collapsible`,
`mw-collapsed` and `mw-collapsible-toggle-collapsed` are not needed
anymore.

The icons from module 'mediawiki.icon' are directly included because the
module has fixed selectors which do not fit here.

Bug: T172618
Change-Id: Iafd27e5d760b78ae386d833946005f86cee8dd64
2023-07-13 23:12:45 +00:00
jenkins-bot
28ffdd4146 Merge "ParsoidParser: Record ParserOptions watcher on ParserOutput object" 2023-07-13 21:31:03 +00:00
jenkins-bot
eedadc2743 Merge "user: Assert cross-wiki users in UserGroupManager" 2023-07-13 20:55:38 +00:00
Amir Sarabadani
c7056e8fd8 Set default migration stage of externallinks to read new and write both
Bug: T341828
Depends-On: I2d4ef8fc3bffa43bc611af3eab0494f4900df557
Change-Id: Ia55cb6cbdb28484e820f9cf3d6aacac00a86ffab
2023-07-13 22:43:43 +02:00
jenkins-bot
bffa95de81 Merge "Prevent saving groups to a Temp User" 2023-07-13 17:37:14 +00:00
MusikAnimal
bdbff334ac diff: make ins and del elements inline instead of inline-block
Bug: T327645
Change-Id: I64ee0e0bb1fe2e072c5a397de1c43cb093bc8ef5
2023-07-13 12:52:54 -04:00
MusikAnimal
ac0d507ab1 diff: break spacing in inline ins and del elements
Bug: T327642
Change-Id: I0cd0f078679bda820c1211ab3fc7c326285319c5
2023-07-13 12:48:12 -04:00
Isabelle Hurbain-Palatin
8706602346 Sync up core repo with Parsoid
This now aligns with Parsoid commit 273c783374efdb148f26d7a0f3d590eb6ae66551

Change-Id: I742825115730b5697a1da47ce5d135adcdef1f8c
2023-07-13 18:15:47 +02:00
jenkins-bot
ddb4e2ae38 Merge "Add a config to stop shipping the legacy media styles" 2023-07-13 16:00:12 +00:00
jenkins-bot
b45e48b35c Merge "phpunit: Streamline loading of Setup.php" 2023-07-13 15:04:31 +00:00
jenkins-bot
2ac7daac82 Merge "phpunit: Use PHPUnit hooks to tear down the test DB after the last test" 2023-07-13 14:51:47 +00:00
James D. Forrester
75af8c90df ResourceLoaderImageModule::getCssDeclarations: Tweak doc explanation
There's no optionality here, which is what we normally mean by 'default';
if users wanted an alternative, they'd have to sub-class.

Follows-Up: I32209b5c7628eea874dc0dbdb0bb361098fd2da8
Change-Id: I946626371c63b82df58ea7d075259676a3f5134d
2023-07-13 10:28:13 -04:00
jenkins-bot
546e2873c1 Merge "phpunit: More improvements for PHPUnit bootstrap files" 2023-07-13 13:49:31 +00:00
jenkins-bot
070b0bcd8a Merge "phpunit: Improve PHPUnit bootstrap files" 2023-07-13 13:47:35 +00:00
jenkins-bot
3960b7a6e9 Merge "ResourceLoader: Remove unused rasterized URL in ImageModule::getCssDeclarations" 2023-07-13 12:41:17 +00:00
jenkins-bot
10450b7af0 Merge "specials: Simplify query on Special:ListRedirects" 2023-07-13 10:49:24 +00:00
jenkins-bot
a6437b7520 Merge "Sort the default config for DefaultUserOptions" 2023-07-13 10:36:47 +00:00