Commit graph

66717 commits

Author SHA1 Message Date
jenkins-bot
226dbef3f6 Merge "user: Add default value for all "variant" user option keys" 2021-10-25 20:07:36 +00:00
jenkins-bot
c0ba482b44 Merge "Make TitleValue fields private" 2021-10-25 20:04:58 +00:00
Umherirrender
1b334a48e9 user: Add default value for all "variant" user option keys
Without a default the preference is treat as unknown and possible values
identical to the default are not excluded from javascript code or
database.

Bug: T291748
Change-Id: I37cf1cd87a5ef1fd91aba0c3cc4b0e3f9c9c08b4
2021-10-25 19:45:59 +00:00
Tks4Fish
76e3701d6a OutputPage: Remove $wgLoggedOutMaxAge experiment and related tests
Bug: T293848
Change-Id: I5e5e52fac7fe389b36715dae11cc30cdb2b9136a
2021-10-25 19:33:32 +00:00
jenkins-bot
98fbea6293 Merge "Fix PHP warning with some inputs to wfCgiToArray()" 2021-10-25 18:58:01 +00:00
Alexander Vorwerk
4d19d06455 Revert: "Update user_touched after saving user options."
This reverts commit 98878c08ba.

reason for revert: had some weird and unwanted side effects

Bug: T294265
Change-Id: I53c2175498af5b37096505dae011e65cebf029aa
2021-10-25 16:33:10 +00:00
Petr Pchelko
045d04ca2b Make TitleValue fields private
Class is extended only in JsonConfig extension, but
these fields are not accessed.

The @deprecated annotation was put in there to prevent
external access, since the fields were protected we can't
use DeprecationHelper to hard deprecate. The class is
not @stable to extend, so for all intents and purposes
protected is equivalent to private.

Change-Id: I30089cf1f1361bf8f8c544316e422581ac7aea64
2021-10-25 08:17:58 -07:00
jenkins-bot
a4b5426e4c Merge "Type-hint LinkTarget" 2021-10-25 14:53:17 +00:00
jenkins-bot
2bd3e49169 Merge "Update user_touched after saving user options." 2021-10-25 14:48:26 +00:00
jenkins-bot
d08d110088 Merge "Split PageArchiveTest" 2021-10-25 12:59:10 +00:00
Matěj Suchánek
b411cbfdaa Split PageArchiveTest
Create ArchivedRevisionLookupTest to test ArchivedRevisionLookup.
Expand tests a bit and add two more for ::getPreviousRevisionRecord.

Change-Id: I3e176b24a13479464b7e73d062639ecb4db86f8f
2021-10-25 10:41:33 +02:00
Translation updater bot
7bac868eb1 Localisation updates from https://translatewiki.net.
Change-Id: Idc34127b2fac69adb6db143700cb1a4b1d73ee0e
2021-10-25 08:15:00 +02:00
jenkins-bot
0d675c382b Merge "rdbms: mark getServerConnection() as @internal" 2021-10-23 03:09:30 +00:00
Reedy
cf90246692 CreditsAction: Minor code tweaks
Change-Id: Ie3bff75102e01ed6e174ee21541b598b746a99dd
2021-10-21 20:22:35 +01:00
Bartosz Dziewoński
2254eba8aa Fix PHP warning with some inputs to wfCgiToArray()
Also add some more tests for it.

Bug: T294017
Change-Id: I8a4faa42c2219ce415fbb82a248b07a28b59157d
2021-10-21 20:49:34 +02:00
Matěj Suchánek
61289e0290 Deprecate replaced PageArchive methods
Change-Id: I07fe12e6e96c6a27b66655f179c09f624180daa3
2021-10-21 18:28:03 +02:00
Translation updater bot
9a7d9c1e80 Localisation updates from https://translatewiki.net.
Change-Id: Idb158dfb010296a2e7b59a639d34ef6c4561e422
2021-10-21 08:09:28 +02:00
jenkins-bot
51644fcc78 Merge "ApiDelete: pass in page title to 'deleted-scheduled' message" 2021-10-21 00:45:39 +00:00
Petr Pchelko
cee52db33d Type-hint LinkTarget
These type-hints are definitely correct, but it's still
a relatively risky patch cause of how messy Title is.
I did some manual review of Title, all tests are passing,
but even still if this is approved, I'll add it to phab
as a risky deployment.

Change-Id: I1ed98ddae30066956e7adbde6780d6bab54dec04
2021-10-21 00:12:51 +00:00
jenkins-bot
1a4244ec34 Merge "Promote 4 SkinTemplate methods to Skin, add getAction" 2021-10-20 23:13:18 +00:00
jenkins-bot
40d14fee7d Merge "Change return format of DeletePage entrypoints" 2021-10-20 22:18:33 +00:00
MusikAnimal
7bdb12646f ApiDelete: pass in page title to 'deleted-scheduled' message
Change-Id: I894f8d51d60de0f8f3f078fc00be07dd4a347d7b
2021-10-20 17:56:10 -04:00
jenkins-bot
ba0eab5b0e Merge "Hard-deprecate remaining MWNamespace methods" 2021-10-20 21:15:48 +00:00
jenkins-bot
b0313250e4 Merge "file: Fix nullable documentation for property, args and return types" 2021-10-20 19:49:58 +00:00
Daimona Eaytoy
965f6db3c1 Change return format of DeletePage entrypoints
Instead of putting logID/false in the status' value, add getters that
can be used to retrieve this information. Also, make it return an array
of log IDs, which is easier to expand later on to account for deletion
of related pages (e.g. associated talk page).

Note: this change will be backported to 1.37.

Bug: T288758
Change-Id: I7ef64242ae0cb7018a4b1e8eb004a5563925b9a4
2021-10-20 19:26:12 +00:00
Alexander Vorwerk
ec2cd3dc37 Hard-deprecate remaining MWNamespace methods
MWNamespace has been deprecated in favor of the NamespaceInfo
service in 1.34 and should no longer be used.

All methods are unused in wikimedia-deployed extensions.

Bug: T291389
Change-Id: Ibe2069dea1af983d8fda53e734396c5a7a8b7321
2021-10-20 21:16:25 +02:00
jenkins-bot
f0123b83b5 Merge "Make ArchivedRevisionLookup a service" 2021-10-20 18:51:32 +00:00
jenkins-bot
91a9e2db75 Merge "Move methods from PageArchive to new ArchivedRevisionLookup" 2021-10-20 18:47:42 +00:00
jenkins-bot
c61a9dfd5c Merge "Do not cache private wiki completion results" 2021-10-20 18:47:36 +00:00
jenkins-bot
5680816a08 Merge "import/export: Add documentation for nullable arguments" 2021-10-20 18:47:28 +00:00
jenkins-bot
e875b742e2 Merge "HistoryBlobStub: add getLocation() to get $mOldId" 2021-10-20 18:42:25 +00:00
jenkins-bot
24373dab6b Merge "Replace Content::getParserOutput call to ContentRenderer::getParserOutput" 2021-10-20 17:56:19 +00:00
jenkins-bot
9065442e54 Merge "Don't pass nulls to CommentFormatter::formatStrings" 2021-10-20 17:51:36 +00:00
jenkins-bot
a5384e5f7f Merge "Register omitted tracking categories" 2021-10-20 17:51:26 +00:00
Umherirrender
b914247380 file: Fix nullable documentation for property, args and return types
Change documentation to null or false where the type is allowed

Change-Id: I7c9a612adabf47da8ce11265907702ad5d83699a
2021-10-20 14:23:29 +00:00
Petr Pchelko
cf4b335aaf Don't pass nulls to CommentFormatter::formatStrings
Bug: T292797
Change-Id: I00607ef2a65076a34f99d2f5fdc658e1c6e11832
2021-10-20 06:56:13 -07:00
Roman Stolar
fa5237eb48 Replace Content::getParserOutput call to ContentRenderer::getParserOutput
Bug: T287158
Change-Id: I8a13f45027e08e2d8ddefa140dd47a0c55094934
2021-10-20 12:11:24 +03:00
Translation updater bot
aa4d25ce15 Localisation updates from https://translatewiki.net.
Change-Id: I3f2f772e91197d33990f4d9685555dfe1d0a111b
2021-10-20 08:20:16 +02:00
jenkins-bot
c55307829c Merge "Use correct default value when calling Status::getWikiText" 2021-10-20 02:36:11 +00:00
jenkins-bot
c0844fae83 Merge "mediawiki.page.ready: Fire hook 'wikipage.indicators' with children" 2021-10-20 00:45:42 +00:00
jenkins-bot
38c3844213 Merge "resourceloader: Replace outdated references to "globalEval"" 2021-10-20 00:31:41 +00:00
Fomafix
8bec93a573 mediawiki.page.ready: Fire hook 'wikipage.indicators' with children
The parameter of the hook 'wikipage.indicators' in mediawiki.page.ready
and in mediawiki.action.edit.preview was inconsistent:

* mediawiki.page.ready fired the hook with the root element.
* mediawiki.action.edit.preview fired the hook with the children
  elements.

This should be consistent.

mediawiki.action.edit.preview fires the hook before adding the elements
to the DOM. Therefor it can't fired with the root element before adding
to DOM. To be consistent the behavior in mediawiki.page.ready must
changed to the behavior in mediawiki.action.edit.preview.

Also remove the text nodes with the newline from the value in
mediawiki.action.edit.preview to be consistent with the value in
mediawiki.page.ready.

This change is a follow-up to bea70565d9.

Bug: T293564
Change-Id: Ie8890e6396db071975794655c4e4ec3616891f96
2021-10-20 00:24:24 +00:00
DannyS712
10d63f057b resourceloader: Replace outdated references to "globalEval"
Since T192623 the startup code has used its own function,
domEval, instead of relying on the jQuery globalEval method.

Follow-up: Icdd5d76546a6c265a8e941c4e9b28f73bf9dd028
Change-Id: Ic1d0e02597c3e335acb7e0407e077dd4e62f3982
2021-10-20 00:11:48 +00:00
jdlrobson
c5f9f38c9a Promote 4 SkinTemplate methods to Skin, add getAction
These methods are used by both SkinMustache and SkinTemplate
In future we don't want SkinMustache to have to extend
SkinTemplate

The getAction method is added as preparation for eventually
removing setupTemplateContext

Bug: T263213
Change-Id: I0f8f3f0061dad396abcabd2bb9cb284949a0ac6f
2021-10-19 16:17:29 -07:00
jenkins-bot
03d5277a26 Merge "Replace deprecated JobQueueGroup::singleton in JobQueueEnqueueUpdate" 2021-10-19 20:32:30 +00:00
jenkins-bot
3c697fd5ee Merge "api: Inject services into ApiQuery class" 2021-10-19 20:16:07 +00:00
jenkins-bot
fca74c9c17 Merge "media: Add missing false return types to doc" 2021-10-19 20:09:51 +00:00
jenkins-bot
1b3285578e Merge "Change User::isAnon to !User::isRegistered in PageEditStash" 2021-10-19 20:09:45 +00:00
Umherirrender
b1e1a11ca6 Replace deprecated JobQueueGroup::singleton in JobQueueEnqueueUpdate
Fix documentation and type hint in JobQueueEnqueueUpdate

Change-Id: I68487d0c44ed4f3064455f79f36ce896e8eff143
2021-10-19 20:09:02 +00:00
jenkins-bot
8a5bc391aa Merge "Use LocalFile::getHookRunner instead of LocalFile::hookRunner" 2021-10-19 20:06:25 +00:00