Commit graph

95195 commits

Author SHA1 Message Date
jenkins-bot
65906da2c2 Merge "MCR: provide MultiContentSave hook to replace PageContentSave" 2020-03-30 17:09:45 +00:00
jenkins-bot
bdf9afe4af Merge "Remove direct access to Article::mPage from ImagePage" 2020-03-30 16:47:31 +00:00
jenkins-bot
7984b86ed5 Merge "Hard deprecate Revision::setUserIdAndName" 2020-03-30 16:37:01 +00:00
ArtBaltai
bd623394e9 Remove direct access to Article::mPage from ImagePage
Bug: T239975
Change-Id: Idddea952591c4a7acb172497c4c38ea548c8a1bb
2020-03-30 16:27:28 +00:00
DannyS712
9dd9b0cb46 Hard deprecate Revision::setUserIdAndName
Bug: T246284
Change-Id: I97d476bbffac99f8169e13a3f7c1dfca967be8ea
2020-03-30 16:10:53 +00:00
jenkins-bot
412d9c8bbc Merge "Make REST tests more robust against content language" 2020-03-30 14:49:27 +00:00
jenkins-bot
d5142e021a Merge "Localisation updates from https://translatewiki.net." 2020-03-30 08:25:08 +00:00
jenkins-bot
3c1f85b809 Merge "Localisation updates from https://translatewiki.net." 2020-03-30 07:13:05 +00:00
Translation updater bot
d7f4f7c2a5 Localisation updates from https://translatewiki.net.
Change-Id: Iffce1621d37b02710d51ac98bfcbc62423321547
2020-03-30 09:11:38 +02:00
jenkins-bot
a47e4d0e06 Merge "[docker] Add note for Linux users to manage Docker as non-root" 2020-03-30 07:04:14 +00:00
Translation updater bot
e8b8d2d40f Localisation updates from https://translatewiki.net.
Change-Id: I0991834166ca8fc1d4dba52e70a17a34650ebeab
2020-03-30 08:35:07 +02:00
DannyS712
0dbf98e6c6 ServiceWiring: Fix double spacing
Change-Id: I036d5d52a5101ec1d40a7698e5eecb92b9145928
2020-03-29 22:26:10 +00:00
Timo Tijhof
031a91e9ff build: Remove old ZUUL_PROJECT hack from Gruntfile.js
This was here from a year ago when we added CHROMIUM_FLAGS, which
has since rolled out.

Also make the assert-mw-env less fragile by checking the
env variables in one place each instead of two places. Before this,
it was relatively easy to accidentally add a warning for one, without
the shell exit code changing.

Change-Id: I6b85483981b415fe251b3760d5f282433e7fc4e9
2020-03-29 20:02:25 +00:00
jenkins-bot
bced1fc879 Merge "resourceloader: Add more $wgResourceModules documentation" 2020-03-29 16:44:26 +00:00
jenkins-bot
20a0c8ab5a Merge "rdbms: add QUERY_IGNORE_DBO_TRX to duplicateTableStructure() queries" 2020-03-29 16:42:34 +00:00
jenkins-bot
1b8df07387 Merge "rdbms: add "loadMonitor" parameter to LBFactoryMulti/LBFactorySimple" 2020-03-29 16:42:27 +00:00
Max Semenik
b04e62f31d phpunit: Simplify StructureTest
* Get rid of a long regexp that had to be maintained and
  was broken anyway, resulting in a false negative.
* Fix that false negative.
* Make the failures array a bit more readable.

Bug: T248075
Change-Id: I4e4e5d6487d23b0d64f29c113d84bddce758e516
2020-03-29 15:40:45 +00:00
Kosta Harlan
1ffbcfa1ed [docker] Add note for Linux users to manage Docker as non-root
This has come up a few times already with users (T248624#6008494,
T246827#5944100) so it would be useful to document the solution here.

Change-Id: I7c2fa16fd3f129e03c053935f32ebda3b589b9fe
2020-03-29 17:40:29 +02:00
Aaron Schulz
fcfea80fa3 rdbms: add "loadMonitor" parameter to LBFactoryMulti/LBFactorySimple
This allows full configuration of the LoadMonitor, not just setting
the class name like loadMonitorClass allows. Deprecate the later.

Also fix obsolete LoadBalancer constructor documentation and
standardize the style of LBFactoryMulti::__construct() comments.

Change-Id: Icfdc0d6bbf227dce56e65ad679b93ce3f604e9f7
2020-03-27 20:43:00 -07:00
jenkins-bot
7c4a3f8aae Merge "Maintenance: Don't create DBLoadBalancerFactory to destroy it" 2020-03-27 23:43:40 +00:00
ArtBaltai
4328688606 Complete WikiPage/Article split and deprecate Page interface
Use Action::getWikiPage(), Action::getArticle() instead Action::$page
add private RevertAction::getFile wrapper

Bug: T239975
Change-Id: I249ac2786f3a89de12bda6082a5166e8984912d0
2020-03-28 00:50:37 +03:00
jenkins-bot
7befa95957 Merge "Set logger to null in RefreshSecondaryataUpdateTest integration test" 2020-03-27 20:51:40 +00:00
jenkins-bot
0a58eb7e7b Merge "Hard deprecate Revision::isUnpatrolled" 2020-03-27 20:09:20 +00:00
Edward Chernenko
9cf8427865 MCR: provide MultiContentSave hook to replace PageContentSave
Old hook PageContentSave only received the main slot of the article.
In order for extensions to intercept changes in all slots, they should
receive a RevisionSlots object with new content.

PageContentSave hook is still preserved for backward compatibility.

Note: parameters $iswatch and $section (from PageContentSave) are
not added into the new hook, because they are obsolete in the old hook.

Note: new hook also doesn't unnecessarily pass-by-reference (T193950),
which was an issue with the old hook.

Bug: T205982
Change-Id: I55455639c5ff6ccbf3917d85c1ab0dac847ec853
2020-03-27 23:06:33 +03:00
jenkins-bot
787c9c4969 Merge "UDPTransport: move payload size to accessible constant" 2020-03-27 19:59:14 +00:00
jenkins-bot
827fed0ca2 Merge "[selenium] Make tests skin agnostic" 2020-03-27 19:49:17 +00:00
DannyS712
aff1cfd0b0 Hard deprecate Revision::isUnpatrolled
Bug: T246284
Change-Id: I5817ec0041cb2119a5febc8dd57f66700743e752
2020-03-27 19:35:33 +00:00
Cole White
9d40c5d7bf UDPTransport: move payload size to accessible constant
UDPTransport by default will truncate the payload to 64k.
In order to allow a user of UDPTransport to format the payload
length to fit, the configured max payload length must be
accessible.

Change-Id: I5406eda588d2ee748872aecd8c64eb20afacea74
2020-03-27 12:53:02 -06:00
jenkins-bot
fe598a9600 Merge "mediawiki.base: Merge mw.notify stub into mediawiki.base" 2020-03-27 18:12:04 +00:00
Nikki Nikkhoui
8b43050319 Set logger to null in RefreshSecondaryataUpdateTest integration test
The code is appropriately logging when it encounters an exception.
However, the CI interprets that as an actual exception being thrown.
Setting the logger to null allows the CI to complete.

Bug: T248189
Change-Id: I9ce7c451b9951892e509afa048213e7691498e47
2020-03-27 10:56:05 -07:00
jenkins-bot
573e32a652 Merge "Deprecate unusual uses of the ParserGetVariableValueSwitch hook" 2020-03-27 17:46:16 +00:00
jenkins-bot
55b5d6f210 Merge "Update default configuration of Parsoid VirtualRESTService" 2020-03-27 16:56:18 +00:00
jenkins-bot
83fc4e8c11 Merge "SearchHandler: add support for completion search" 2020-03-27 15:55:48 +00:00
jenkins-bot
c9320b7153 Merge "PageHistoryHandler: use getRouteUrl." 2020-03-27 15:54:00 +00:00
jenkins-bot
3811118cbc Merge "Use class keyword for classname resolution" 2020-03-27 14:38:06 +00:00
jenkins-bot
5aa3d1fd2a Merge "Always cache magic word expansions" 2020-03-27 14:09:10 +00:00
jenkins-bot
8e3b4a91c9 Merge "Reintroduce accidentally dropped referenceness" 2020-03-27 14:07:43 +00:00
Lucas Werkmeister
fe257bd4e1 Reintroduce accidentally dropped referenceness
Bug: T248672
Change-Id: I6a82b2e2c1fda7ee362903641d59673bf75912f7
2020-03-27 14:28:27 +01:00
C. Scott Ananian
a3c9621ad0 Deprecate unusual uses of the ParserGetVariableValueSwitch hook
Ensure that the value returned is always also added to the cache, since
we (eventually) want to remove the hook's access to
$parser->mVarCache.  Also don't allow monkeying with the value passed
as $magicWordId, even though it's a reference.

Code search:
https://codesearch.wmflabs.org/deployed/?q=ParserGetVariableValueSwitch&i=nope&files=&repos=

Bug: T236813
Depends-On: Ia12faefada7e4cf04f1a6b12b3ed1703bf28e437
Depends-On: Ia9e2e00c6b7d0e62cbe80c3b124165b691b1ff3d
Depends-On: I1e48fa47b8723958d543a69aaf9b62b872200dc5
Depends-On: If9a0885a8664c22473ade712364c2dd0a5c04e0b
Change-Id: I3d6b281f8e4e0bf68eefbf9767047527b4573b79
2020-03-27 08:59:21 -04:00
C. Scott Ananian
063445581c Always cache magic word expansions
The existing magic word API (including hooks) gives implementers direct
access to $parser->mVarCache and full control of caching.  Simplify the
implementation (prior to moving the magic word implementations out of
Parser.php) by always caching built-in magic words in $parser->mVarCache.

The cases which were skipping the cache don't vary anyway.

This behavior change is split from the rest of the refactoring in
I68fb1e786374e445b7df047934c532d7e10b8e94 to allow it to be deployed
separately, just in case there was some strange reason this would
cause regressions in practice.

Bug: T236813
Change-Id: I34a0d9a37e41c854c801d546427fc8cd0fe39dc4
2020-03-27 08:58:39 -04:00
jenkins-bot
fa5c5b1ad9 Merge "Remove skipcaptcha from the basic grant" 2020-03-27 12:00:49 +00:00
jenkins-bot
ef8a34d4a2 Merge "REST: page/ endpoints: don't use tokens with OAuth" 2020-03-27 11:43:30 +00:00
jenkins-bot
e0e72b165c Merge "Document the deprecations in I46684bc492bb74b728ff102971f6cdd4d746a50a" 2020-03-27 11:41:11 +00:00
daniel
905f6fc890 REST: page/ endpoints: don't use tokens with OAuth
CSRF tokens should only be required (and only be allowed) if
the current session isn't already inherently safe against
CSRF due to the way the authentication mechanism works.
This allows (and requires) tokens to be omitted for requests
that use an OAuth Authorization header.

Bug: T230843
Bug: T230842
Bug: T237852
Change-Id: Ib2922d556ff2470d4bf8c386c18986ca9f37d1b5
2020-03-27 12:20:22 +01:00
jenkins-bot
55d3efdb7c Merge "Add a new UserNameUtils service" 2020-03-27 08:58:48 +00:00
DannyS712
de2abc19f3 Document the deprecations in I46684bc492bb74b728ff102971f6cdd4d746a50a
Change-Id: Ieecd40e49ea7c382ce479782c60e43969c91a39a
2020-03-27 08:46:22 +00:00
Ammar Abdulhamid
61ff46196e Use class keyword for classname resolution
Change-Id: I149abf837c6bd79f05648b1acbfaf45dc900125e
2020-03-27 09:33:01 +01:00
daniel
c8acf2655e Make REST tests more robust against content language
Change-Id: Id24536e96d89be768b96c2acd0edde6d371f438b
2020-03-27 09:23:36 +01:00
Translation updater bot
c6ac92433e Localisation updates from https://translatewiki.net.
Change-Id: I781f73e3d3c5f75aff1d8b0e07fb17bab19102d5
2020-03-27 08:39:40 +01:00
jenkins-bot
b2be858d92 Merge "Remove direct access to Action::page and Article::page properties" 2020-03-27 04:36:51 +00:00