Commit graph

96830 commits

Author SHA1 Message Date
DannyS712
e36fc3a8dd Remove use of the Revision object returned in WikiPage::doEditContent
Each file's changes are independent and can be reviewed separately

Bug: T251853
Bug: T254952
Change-Id: I197c3db4cfb2ead920c8e6071120ae29543ee404
2020-06-09 23:38:03 +00:00
mainframe98
4e2897575a Replace BaseTemplateAfterPortlet with SkinAfterPortlet
BaseTemplate should not handle anything but rendering.
In order to allow replacing it with another renderer,
such as Mustache or Vue, its hooks should be moved to
the Skin class instead.

BaseTemplateAfterPortlet is soft deprecated to allow
filtering, preventing the hook from running twice.

Both BaseTemplate::getAfterPortlet and ::renderAfterPortlet
have been deprecated as well, with both now calling
Skin::getAfterPortlet after running the
BaseTemplateAfterPortlet hook.

Bug: T253797
Change-Id: I438daa79d3d97e2518e6258c3213a805bd1f30e8
2020-06-09 21:51:58 +00:00
jenkins-bot
2c910958dc Merge "Hard deprecate wfIsBadImage()" 2020-06-09 21:50:04 +00:00
jenkins-bot
75690b7c61 Merge "Fix failing UserContributionsHandlerTest" 2020-06-09 21:48:17 +00:00
jenkins-bot
b44e51fe8e Merge "Lazy load footer icons" 2020-06-09 21:36:33 +00:00
Nikki Nikkhoui
3a6649c27e Fix failing UserContributionsHandlerTest
Some changes to UserContributionsHandlerTest.php were lost and were failing.
To fix, unused mock for ContributionsLookup::getParentRevisionSizes() was
removed. As well as supplying a new, anonymous user in
UserContributionsHandlerTest::testThatAnonymousUserReturns401()

Bug: T254909
Change-Id: I8aeb8a266369725014900487fa4ccbd8a83fb843
2020-06-09 14:23:56 -07:00
gilles
e60b08e212 Lazy load footer icons
Bug: T239377
Change-Id: I71270faf939f9187fafecf5b32defb3412c27580
2020-06-09 21:15:50 +00:00
Reedy
567e1bbb5d Hard deprecate wfIsBadImage()
Bug: T249459
Depends-On: Iec58118198864704b1860aeb630476391e3a2c23
Change-Id: I939ded72427adc973739e7b376ea85cbf4b3e258
2020-06-09 19:27:16 +00:00
jenkins-bot
416dd55228 Merge "REST /me/contributions: return revisions" 2020-06-09 16:18:30 +00:00
jenkins-bot
4c9810aad4 Merge "Introduce DeprecatablePropertyArray and use it for PageUpdater" 2020-06-09 16:13:36 +00:00
jenkins-bot
12dff6cb53 Merge "REST me/contributions: Returns 401 Unauthorized" 2020-06-09 15:28:52 +00:00
daniel
5ac84ffd12 REST /me/contributions: return revisions
This is part of a chain of patches to complete the REST User Contributions
endpoint. This change returns a list of the 2 (hard-coded for now) most
recent revisions for a given user.

Package.json was also updated for new api-testing module (v 1.1.0)

Bug: T252202
Change-Id: I42a5dfc0e1ff7600848e89ac2c4b002e8a3612df
2020-06-09 08:19:45 -07:00
Nikki Nikkhoui
300fcfd00b REST me/contributions: Returns 401 Unauthorized
This is the first in a chain of patches that iteratively create
the me/contributions endpoint that returns a list
of contributions by the currently logged in user.

This patch contains stubs for major classes needed
as well as implementation and test just for returning
a 401 Unauthorized for anonymous users.

Bug:T252202
Change-Id: Ib75711bb015f476e9d486cb3008eb7b06b148d00
2020-06-09 15:00:25 +00:00
jenkins-bot
c5183ccd2a Merge "Fast stale ParserCache responses" 2020-06-09 14:14:09 +00:00
Petr Pchelko
2704be7df8 Introduce DeprecatablePropertyArray and use it for PageUpdater
Bug: T250638
Change-Id: I53e39be59228ac5a57f34d51d733d1647331889c
2020-06-09 07:09:00 -07:00
jenkins-bot
4bdf5c5c1a Merge "Format file sizes in upload warning" 2020-06-09 12:09:06 +00:00
jenkins-bot
13926c3dd0 Merge "Fix method name in comment" 2020-06-09 11:05:22 +00:00
jenkins-bot
f14d96ce60 Merge "Fix typo in ipblocks_restrictions table documentation" 2020-06-09 11:00:00 +00:00
MarcoAurelio
9604fd92d3 languages: Add Southern Altay (alt)
Bug: T254854
Change-Id: I62c5c4a7115d0d9d3a08f038ae90b274934930a2
2020-06-09 09:53:53 +00:00
Translation updater bot
5429ea97d0 Localisation updates from https://translatewiki.net.
Change-Id: Ie2194cee768cf5b87aa2e9b0ca5219c9c829b6e5
2020-06-09 10:20:15 +02:00
Translation updater bot
14614883c4 Localisation updates from https://translatewiki.net.
Change-Id: If78bd6583a9e6125acde07e7d03dbf50f48c6329
2020-06-09 09:12:16 +02:00
jenkins-bot
edf782a180 Merge "wfIsBadImage: Remove deprecated $blacklist parameter" 2020-06-09 01:51:58 +00:00
jenkins-bot
eafe225ed8 Merge "Deprecate setting $wgAllowImageMoving to false" 2020-06-09 00:35:04 +00:00
Reedy
dc5fc0301a wfIsBadImage: Remove deprecated $blacklist parameter
wfIsBadImage still used in Flow\Parsoid\Fixer\BadImageRemover

Bug: T254646
Change-Id: Ieb1ba83593da5c7789b9da5b6a931eedcd391bf3
2020-06-09 00:14:42 +00:00
jenkins-bot
f6a337e6f6 Merge "Rename i18n key from laggedslavemode to laggedreplicamode" 2020-06-08 23:56:22 +00:00
jenkins-bot
9b98dcaf33 Merge "readonly_lag: s/slave/replica/" 2020-06-08 23:56:14 +00:00
Reedy
7461056852 Rename i18n key from laggedslavemode to laggedreplicamode
Bug: T254646
Change-Id: I75e08d4d794eda6e6afa14256054107da6494813
2020-06-08 23:34:35 +00:00
Reedy
1613b12d4e readonly_lag: s/slave/replica/
Bug: T254646
Change-Id: I2fbe225e511e30ed35a09db90e2f95819118ba7b
2020-06-08 23:34:03 +00:00
jenkins-bot
1196b326b0 Merge "eslint: Remove duplicate OO global, now upstream" 2020-06-08 23:23:54 +00:00
jenkins-bot
c6b47d8623 Merge "BadFile keeps a "bad file list", not a "blacklist"" 2020-06-08 22:32:22 +00:00
Ed Sanders
fb6c6f779b eslint: Remove duplicate OO global, now upstream
Change-Id: I6e99919e6c6d3ff76c081a77c57f0d6915cd9031
2020-06-08 23:25:40 +01:00
jenkins-bot
e72fa53069 Merge "NamespaceInfo: Throw specifically if called on a non-int/non-int-like namespace" 2020-06-08 22:12:06 +00:00
C. Scott Ananian
a2d1bf79c3 BadFile keeps a "bad file list", not a "blacklist"
Bug: T254646
Change-Id: I23c76f42d451b8d22f178efd6a3edbc822617831
2020-06-08 18:07:24 -04:00
jenkins-bot
12e424bb78 Merge "Move final batch of tests from api-testing to core" 2020-06-08 19:37:11 +00:00
Daimona Eaytoy
92e864fb32 phan: Conditionally load PHP extension stubs with dedicated option
Stubs for PHP extensions like wikidiff2 or excimer can be conditionally
loaded using autoload_internal_extension_signatures, which is basically
a wrapper around extension_loaded.

Change-Id: I3e844427733339283c41fa9f4aeb23a776c36ce6
2020-06-08 18:39:25 +00:00
jenkins-bot
2aca1e9d11 Merge "PageHistoryHandler: fix self-reference route" 2020-06-08 18:17:09 +00:00
jenkins-bot
9a9872e221 Merge "Hard deprecate Revision::getContent" 2020-06-08 17:51:15 +00:00
jenkins-bot
4c7fbea780 Merge "mediawiki.misc-authed-pref: Limit dblClickEdit to 'view' action" 2020-06-08 17:38:46 +00:00
daniel
2051b84e5f PageHistoryHandler: fix self-reference route
THis introduces Handler::getRouteUrl() and uses it in
PageHistoryHandler() to generate self-reference links to adjacent
segments of the response.

Bug: T252566
Change-Id: Ie7b2c6cc63c8a499d4714336b917a9e3328294ca
2020-06-08 18:56:26 +02:00
Timo Tijhof
d6f0cd0643 mediawiki.misc-authed-pref: Limit dblClickEdit to 'view' action
Follows-up c656980498, which led to this also being loaded when
the rightClickEdit feature is loaded (which is loaded on all actions).
It's a tiny opt-in script so no issue there, but we do need to make
sure it's self-contained in terms of what it is meant to do, and not
rely purely on when it is included in a bundle send to the client.

Change-Id: Ie13a4de90c0ef3cc6673bd352bc25d1e02df8dc4
2020-06-08 17:45:18 +01:00
Timo Tijhof
8ab8755015 mediawiki.misc-authed-curate: Check for 'showrollbackconfirmation' preference
Regression Ibd00e0eddfaf. Most code like this already checked
for user.options, but I forgot to make sure this code did as well.

Bug: T254538
Change-Id: I40d93d95817810d4c9d1b99c8ff97c3e2fa75ccb
2020-06-08 17:39:58 +01:00
jenkins-bot
26095750d5 Merge "Simplify \stdClass object creation in ApiResultTest" 2020-06-08 16:28:12 +00:00
jenkins-bot
5f0b7b59e5 Merge "Remove minor pieces of unused code from TextContentTest" 2020-06-08 16:24:13 +00:00
Thalia
cbe7a5caa4 Fix typo in ipblocks_restrictions table documentation
Change-Id: If4548c46eb1d96da061655967b84a38b05d24a89
2020-06-08 17:21:13 +01:00
Lucas Werkmeister
a340fe20e9 Fix method name in comment
There is no addMetaLink() method; I assume it’s meant to be addMeta().

Change-Id: I4f59d5dd96d3a59522fbc7cf38badc93698e29fa
2020-06-08 12:35:36 +02:00
Translation updater bot
ee5892141b Localisation updates from https://translatewiki.net.
Change-Id: I446f6ae6b92ccc25033ebf7d4686da45baa05372
2020-06-08 08:47:58 +02:00
jenkins-bot
436f2c7621 Merge "debug: Refactor from $levelName to $prefix in handleError()" 2020-06-08 03:09:14 +00:00
DannyS712
df7906cd0f Hard deprecate Revision::getContent
Bug: T254703
Change-Id: I50e82d29f87725a2d583a0fc1ebacc467ffee935
2020-06-08 02:44:21 +00:00
jenkins-bot
dd5b40d619 Merge "Remove PreferencesFactory::setUser()" 2020-06-08 01:49:45 +00:00
jenkins-bot
487a71fd5d Merge "Simplify SkinTemplateTest test setup and assertions." 2020-06-08 01:29:36 +00:00