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
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
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
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
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
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
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
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