Commit graph

108924 commits

Author SHA1 Message Date
Aaron Schulz
892c3383dd objectcache: clarify usage of getMultiWithUnionSetCallback()
The examples and comments were misleading with regard to the handling
of missing entities.

Bug: T303092
Change-Id: Ib672fd18d1270c35253683eb54b48be056e6dc3c
2022-03-17 17:40:45 +00:00
jenkins-bot
501eb16601 Merge "Fix @since of Title::getId()" 2022-03-17 17:21:39 +00:00
Func
1b432d4c00 listFiles: Display file name instead of version
Bug: T293576
Change-Id: If97f83dbf95de2fc3e0e3fc366034610dfce3f4d
2022-03-17 22:50:01 +08:00
jenkins-bot
a41d695814 Merge "tests: Make sure deferred updates are done and re-enable TemplateCategoriesTest" 2022-03-17 13:19:30 +00:00
Func
53afd761b0 tests: Make sure deferred updates are done and re-enable TemplateCategoriesTest
LinksUpdate is a group of deferrable updates, not jobs till now.
See HtmlCacheUpdater::purgeTitleUrls().

Bug: T165099
Change-Id: Icf40c4ff9e14ee06d48600bcbfdc39e2baf68b23
2022-03-17 13:01:08 +00:00
jenkins-bot
cc5db32e0a Merge "Don't re-check "Move subpages" on Special:MovePage after a warning" 2022-03-17 11:36:11 +00:00
jenkins-bot
67a520437d Merge "SuiteEventsTrait: don't call setUp() for an empty suite" 2022-03-17 10:31:10 +00:00
Translation updater bot
142595c9b0 Localisation updates from https://translatewiki.net.
Change-Id: I0a1854a11d232f940a85b3a3a6d44f2887c9422d
2022-03-17 08:13:09 +01:00
Tim Starling
43db499d13 SuiteEventsTrait: don't call setUp() for an empty suite
SuiteEventsTrait is a hack to support the parser test suite classes. If
the suite is empty due to e.g. group filters, doing setUp() and
tearDown() is unnecessary and expensive (requiring DB cloning). Also,
errors from setUp() or tearDown() on an empty suite were not properly
handled.

So if the suite is empty, do the same thing as TestSuite::run(), leave
the result unmodified.

Bug: T292239
Change-Id: I0828257d6dd0bbc5b1633afde5ff162e96169675
2022-03-17 14:47:21 +11:00
Aaron Schulz
eed58f2f61 rdbms: fix owner id and RELEASE_ALL_LOCKS query in session flushing methods
Use the LoadBalancer id in flushPrimarySessions(), not the LBFactory one,
and use assertOwnership() to check $owner, similar to other methods.

In DatabaseMysqlBase::doFlushSession(), change RELEASE_ALL_LOCKS() query
to use RELEASE_LOCK(), since only newer MariaDB versions (>=10.5.2) support
it. No errors were thrown in the method since they are suppressed, but the
syntax error would cause the transaction to be placed in an error state.

Add assertion to testTransactionCallbackChains() that would otherwise fail.

Randomize lock names in lock() tests to avoid contention.

Bug: T292239
Bug: T303887
Follow-Up: ee3c65d541
Follow-Up: 4cac31de4e
Change-Id: I414d737028338cfd5369eee24576df4aa26a2f6f
2022-03-17 02:55:43 +00:00
jenkins-bot
30b8cff7f2 Merge "Use badfilecontexttitle to set targetlang for imageinfo requests" 2022-03-17 02:07:44 +00:00
jenkins-bot
4a1adcda44 Merge "ParserTestRunner: Remove unused property $dbClone" 2022-03-17 02:07:37 +00:00
jenkins-bot
cc5ccc0b4e Merge "Add convenience methods for asserting status." 2022-03-17 01:46:17 +00:00
Kunal Mehta
8303a8a08f Don't re-check "Move subpages" on Special:MovePage after a warning
In T222953 we want "Move subpages" to be checked by default, but if the user
un-checks it, and then is prompted with a warning, like the page already
existing, we don't want to re-check it.

Test plan:
* Create pages Talk:A, Talk:A/1, Talk:B
* Open the form to move Talk:A
* Verify that "Move subpages" is checked by default
* Try to move it to Talk:B, which already exists
* Verify that you get a warning, and in the new form "Move subpages" is still
  checked.
* Re-open the move form for Talk:A, un-check "Move subpages" and try to move
  it to Talk:B.
* Verify that you get a warning but "Move pages" is still un-checked.

Bug: T304008
Change-Id: I4b6e64117c561173e9ff1bacd5741a5b20bc61f6
2022-03-16 18:08:23 -04:00
Umherirrender
9327bdd953 tests: Fix @group Broken on MediaWikiIntegrationTestCaseSchemaTest
Group names can contains spaces in phpunit

Bug: T292239
Follow-Up: I7061f5e630858443e9127c3267069ae6bba192e2
Change-Id: I3b2e5a630e40bc55368784885ae221b0f925711b
2022-03-16 21:50:33 +00:00
daniel
e239b02a5e Add convenience methods for asserting status.
This ensures that assertions work in a uniform way,
and provides meaningful messages in cause of failure.

Change-Id: Ic01715b9a55444d3df6b5d4097e78cb8ac082b3e
2022-03-16 22:44:25 +01:00
jenkins-bot
5ec380a8f6 Merge "Integration test for extension registration" 2022-03-16 17:05:36 +00:00
Ammarpad
e8d2f182e6 ParserTestRunner: Remove unused property $dbClone
Also fix type doc of $fileBackendName.

Change-Id: Ifac11a89c0a4bf8c8c0c6219d2751813cd52b3ea
2022-03-16 16:42:09 +00:00
jenkins-bot
064f0b7def Merge "SpecialComparePages: Use show() instead manual displayForm()" 2022-03-16 15:52:49 +00:00
jenkins-bot
602d477ad8 Merge "Improve ensureMockDatabaseConnection() error message" 2022-03-16 12:38:31 +00:00
Func
7be2e3e38d ApiEmailUser: Mark the subject as a required parameter
This matches the behavior of Special:EmailUser.

Bug: T303862
Change-Id: I445a9388a573383ffbbe451be1f925045d15a556
2022-03-16 11:33:29 +00:00
jenkins-bot
27ba493b70 Merge "Bump minimum required version for upgrade to 1.31" 2022-03-16 07:53:53 +00:00
Translation updater bot
3bf65505ad Localisation updates from https://translatewiki.net.
Change-Id: I53de505d9117ac1fd8cfcbb2d83fe8cebe03f7a4
2022-03-16 07:56:04 +01:00
jenkins-bot
0a401b6ac6 Merge "Try to ensure tags are arrays" 2022-03-16 04:20:36 +00:00
jenkins-bot
fdc1b304f2 Merge "rdbms: factor out session state helper class from Database" 2022-03-16 03:28:07 +00:00
Aaron Schulz
7ee3bc9334 Improve ensureMockDatabaseConnection() error message
Bug: T292239
Change-Id: I8f892d0148cbd3f475751d71143ac07a4b3b29d6
2022-03-15 20:07:57 -07:00
Func
745716dbc7 SpecialComparePages: Use show() instead manual displayForm()
trySubmit() should happen before displayForm(), and loadData() should
be replaced with prepareForm(), so use convenience method show() which
handle all of them correctly.

Bug: T256805
Change-Id: Ia3cf0ac134c65ce6aa9001fb316b0eb2dc62fdce
2022-03-16 09:28:11 +08:00
jenkins-bot
f8392d38f8 Merge "DevelopmentSettings.php: Remove obsolete comment about --mwdebug param" 2022-03-16 00:06:21 +00:00
jenkins-bot
b5dd025fcb Merge "ParamValidator: Allow to use User:0 in UserDef" 2022-03-15 23:25:24 +00:00
Aaron Schulz
604bf984ef DevelopmentSettings.php: Remove obsolete comment about --mwdebug param
Change-Id: Idf2e03341abd0b5c9d8a2e1e2fc1baf91c92aa60
2022-03-15 23:11:31 +00:00
jenkins-bot
682f7844d0 Merge "search: Improve null documentation on RevisionSearchResultTrait" 2022-03-15 22:57:43 +00:00
jenkins-bot
cc1be8304d Merge "Hard deprecate PageProps::getInstance()" 2022-03-15 22:48:30 +00:00
Aaron Schulz
d189665ea6 rdbms: factor out session state helper class from Database
Also, rename some private session state methods in Database

Change-Id: Ie784c45f2eed9cd6dd88dc35f765d6384097e24e
2022-03-15 22:32:52 +00:00
jenkins-bot
4461495cb9 Merge "api: Get all services for ApiPageSet in constructor" 2022-03-15 22:28:03 +00:00
jenkins-bot
7e5a2477ff Merge "Pass a ConvertibleTimestamp to CoreMagicVariables" 2022-03-15 22:26:32 +00:00
Alexander Vorwerk
006c5a1314 Hard deprecate PageProps::getInstance()
No usages in Wikimedia-deployed extensions left.

Bug: T289544
Change-Id: Ia94a913d9b406c8a74ef41a82f502ebf0205667c
2022-03-15 22:58:48 +01:00
Umherirrender
2ce35ff185 api: Get all services for ApiPageSet in constructor
build: Removes phan suppresses due to changed parse order of phan-taint

Bug: T283314
Change-Id: I616d1f8f62225210566d0ea5b9cc295fdc3e54fb
2022-03-15 21:38:34 +00:00
Alexander Vorwerk
0ca55105dd Fix @since of Title::getId()
Follow-Up: Iaed4871e0d32c67d4fb13e487625527f6a21e9c5

Bug: T303871
Change-Id: I37e7711c01ec7844476872af08d7d57b339512cf
2022-03-15 22:29:06 +01:00
Umherirrender
67f6d2c8da ParamValidator: Allow to use User:0 in UserDef
UserNameUtils returns string|false. Check explicit for false to take the
string '0' as valid, which was a falsy check before.

Change-Id: I04c6b5303f9c2356ca85855686694b48f6448d56
2022-03-15 22:25:35 +01:00
Alexander Vorwerk
d66fe8b7c7 Bump minimum required version for upgrade to 1.31
The policy allows this and since 1.39 is going to be the next LTS
release, I think it is fine to do this now.

Change-Id: If426e0ee349252ccc0ba9c4222c7d6865ab57fa2
2022-03-15 22:12:59 +01:00
jenkins-bot
f426a261ff Merge "rdbms: Remove deprecated IDatabase functions" 2022-03-15 20:28:56 +00:00
jenkins-bot
02d2459fe1 Merge "tests: Remove unused mock of getLazyConnectionRef" 2022-03-15 20:00:01 +00:00
jenkins-bot
c453c835b9 Merge "Follow-up 753a4ec: UPGRADE: Minimum upgradable version is now 1.29" 2022-03-15 19:59:51 +00:00
jenkins-bot
85d62b69ef Merge "[doc only] Update filename for config-schema.yaml in doc comment" 2022-03-15 19:59:44 +00:00
jenkins-bot
ac46c35b4a Merge "Follow-up 753a4ec: RELEASE-NOTES-1.39: Minimum upgradable version is now 1.29" 2022-03-15 19:41:01 +00:00
DannyS712
0a2fc53be0 Follow-up 753a4ec: UPGRADE: Minimum upgradable version is now 1.29
Change-Id: I18b9a518b084691edbe8e498b25bc3dca690e0fd
2022-03-15 19:31:16 +00:00
Amir Sarabadani
46374a8e3e rdbms: Remove deprecated IDatabase functions
Soft-deprecated in 1.37, hard-deprecated in 1.38

Bug: T286694
Change-Id: Icd23271149bba3e4632d595c057a733d13707503
2022-03-15 19:33:32 +01:00
jenkins-bot
3e1ef14018 Merge "rdbms: provide $owner argument in LoadBalancer::flushPrimarySessions()" 2022-03-15 18:32:53 +00:00
jenkins-bot
60007eb739 Merge "Upgrading symfony/polyfill-php80 (v1.24.0 => v1.25.0)" 2022-03-15 18:24:55 +00:00
Umherirrender
e1900f228c tests: Remove unused mock of getLazyConnectionRef
Follow-Up: I82683596d644bb61a109e79dde6b0cb22c72b399
Change-Id: I20641dbfe6e3c98331c1a732781e761ceccc46f6
2022-03-15 19:08:12 +01:00