Commit graph

66687 commits

Author SHA1 Message Date
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
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
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
Universal Omega
2708a82ea0 HistoryBlobStub: add getLocation() to get $mOldId
For use in the checkStorage and resolveStubs maintenance scripts, in order to fix them.

Follows-Up: Id1f530c2c8ec1171615f726dc7446431ee7ca8fe
Change-Id: Iade3d1660f2b7db62f829f5e5ca94372614ae7e5
2021-10-19 18:23:30 +00:00
Umherirrender
5018000e35 Change User::isAnon to !User::isRegistered in PageEditStash
Also use another variable for the full user object to make clear which
parts needs it and which part is fine with an UserIdentity

Change-Id: I8422159a462cc54b54006a44e7b46079919691ad
2021-10-19 20:05:35 +02:00
Petr Pchelko
2ae3e55f64 Remove Title dependency from RenderedRevision
Change-Id: I8da86277e0c8406a49ebd86faddf3dc2abbf5328
2021-10-19 07:53:26 -07:00
Petr Pchelko
66e58d1ea7 wfParseUrl: rely on parse_url for proto-relative urls
On July 12 2011 in df2306b97 Roan added this workaround
for parse_url lacking support for protocol-relative URLs.

In 2012 PHP 5.4.7 came out, that added support for
protocol-relative URLs to parse_url, see [1].

It's 2021, and after a decade of honorably serving our
community, this workaround can be now be retired.

It's not a simple deletion since we have custom 'delimiter'
bit that wfParseUrl returns, and we need to keep supporting
that.

[1] https://bugs.php.net/bug.php?id=62844
Change-Id: If9b3bb2a51afa7af1ba8e674eadaa8db4f6f33f9
2021-10-18 20:30:29 -07:00
jenkins-bot
6210feb3db Merge "ApiQueryBacklinks: Simplify getAllowedParams returns" 2021-10-18 23:02:15 +00:00
drynok
9b202c52f4 Change WatchedItemStore to cache an array instead of MapCacheLRU
Updated the closure in WatchedItemStore::resetNotificationTimestamp() to return
an array obtained from MapCacheLRU->toArray(), instead of an object.
Updated the two places that fetch from the cache to read cache entries in either format,
for backwards compatibility.

Added testResetNotificationTimestamp_stashItemTypeCheck test to
WatchedItemStoreUnitTest which verifies correct behaviour with
cache values supplied by the test case.

Bug: T282105
Change-Id: Ibfe4c205ffdf7af7087f6f862004b95b29bdc394
2021-10-18 13:00:03 -07:00
jenkins-bot
6fd447783a Merge "Make PageEditStash::checkCache() accept an UserIdentity" 2021-10-18 19:20:11 +00:00
Umherirrender
226264adfa Use LocalFile::getHookRunner instead of LocalFile::hookRunner
Do not depend on File::__get()

Follow-Up: Iaa84edfe215e71d3d5fd814053d4b787652fa3b5
Change-Id: Ib344a2fa7681e176de863d99e8df13ec37eb143d
2021-10-18 17:50:05 +00:00
jenkins-bot
c20a33cade Merge "objectcache: Change variable name from master to primary" 2021-10-18 17:43:17 +00:00
jenkins-bot
04acc6d8a9 Merge "Add the Farefare language (gur) to Names.php" 2021-10-18 16:55:53 +00:00
jenkins-bot
7592511876 Merge "block: Stop passing list of blocks around by ref" 2021-10-18 16:40:36 +00:00
jenkins-bot
e330e7d839 Merge "block: Add BlockManager::getIPBlock()" 2021-10-18 16:40:30 +00:00
Amir E. Aharoni
d7c1b8999e Add the Farefare language (gur) to Names.php
Bug: T293656
Change-Id: I4c6f0af1ce7f8e8e54a07b2ac78c0507c9b0bb31
2021-10-18 18:28:45 +03:00
jenkins-bot
34be0ddc8c Merge "Fix return type of PageStore::newSelectQueryBuilder()" 2021-10-18 13:47:50 +00:00
Translation updater bot
b810aed1f1 Localisation updates from https://translatewiki.net.
Change-Id: I9926854c81b553cf774981d06e66c51fd91235cb
2021-10-18 14:58:58 +02:00
Reedy
47171749aa ApiQueryBacklinks: Simplify getAllowedParams returns
Change-Id: If9576513db1bf78113efee441676a6c7f8d27768
2021-10-18 13:51:56 +01:00
jenkins-bot
e7ca1c8718 Merge "Fix nullable doc for EditPage::$editRevId" 2021-10-18 12:39:00 +00:00
Lucas Werkmeister
3393545f44 Fix return type of PageStore::newSelectQueryBuilder()
Only the PageSelectQueryBuilder subclass has the methods that are
interesting for users of this method.

Bug: T291288
Change-Id: If73748cc24d2ab2ee7999db14201d7fc19b2cd34
2021-10-18 11:56:17 +02:00
jenkins-bot
bd57a2ee6b Merge "WikiImporter: improve error handling" 2021-10-18 08:14:07 +00:00
jenkins-bot
d2917abef6 Merge "Always encode spaces in cookie values as "%20"" 2021-10-18 00:02:27 +00:00
Gergő Tisza
bdbc5d13eb
WikiImporter: improve error handling
This is an attempt at getting a more useful error message than
"Import failed Expected <mediawiki> tag, got"
(ie. XMLReader thinking that the root tag name is the empty string).

E.g. with the dump file I'm debugging at the moment, after applying
this patch I get "XML error at line 1: Extra content at the end of
the document" instead.

Change-Id: I365eebf78c30b644808eb5ac42d0946c8cf60778
2021-10-16 21:13:52 -07:00
Umherirrender
0bd6c0f180 media: Add missing false return types to doc
Change-Id: Ieefa5bbfddb803ceb41196725c1f344f175c10c3
2021-10-16 21:49:29 +00:00
Umherirrender
10e2f98a17 import/export: Add documentation for nullable arguments
Change-Id: Id8e4553a054a36011433d5705c699d1c2730456e
2021-10-16 21:49:18 +00:00
Umherirrender
66d4e6a3d0 Use correct default value when calling Status::getWikiText
Both parameter have a default of false, not null.

Change-Id: I5754895347db244eee155f8cf5965df5f4fd2d1a
2021-10-16 22:35:01 +02:00
Umherirrender
f7fd5338dc Fix nullable doc for EditPage::$editRevId
Change-Id: Id79b5f3a34779f18e035632de690200713d77640
2021-10-16 22:31:28 +02:00
Meno25
1c936cb662 Update link target
Link redirected on website

Change-Id: Ib7dafdf63dfe1240b2f78c9296999db6ef454ed3
2021-10-16 19:26:02 +00:00
Matěj Suchánek
9f12b36208 Register omitted tracking categories
Both categories are emitted from the StripState class
but are not displayed on Special:TrackingCategories.

Bug: T212072
Change-Id: I4431ec08a22f9c7f143fa7e6e4d72c4a092b2828
2021-10-16 12:14:47 +00:00
jenkins-bot
93821348aa Merge "Allow using a reverse proxy for local HTTP requests" 2021-10-16 04:41:08 +00:00