Commit graph

5797 commits

Author SHA1 Message Date
jenkins-bot
2d75c56c17 Merge "Add constant for the name of the 'main' slot for MCR" 2018-09-26 11:55:10 +00:00
Translation updater bot
a6a37af868 Localisation updates from https://translatewiki.net.
Change-Id: I07d0eeb9c99e1551899d05453abc0398444210aa
2018-09-26 12:56:01 +02:00
Gergő Tisza
6e8d39c6e7
Add constant for the name of the 'main' slot for MCR
Bug: T202142
Change-Id: I97a74e5a029b014f3c2195188936d5c8233c1b7f
2018-09-24 16:52:12 -07:00
C. Scott Ananian
eb351597e4 Deprecate the 'disabletidy' parameter for ApiParse
This will be unsupported by future wikitext parsers, which always
construct well-formed HTML.

Bug: T198214
Change-Id: Ic189cd1b38bca5b9ec0ef9810555fe0cbd8b733d
2018-09-24 17:40:51 -04:00
Translation updater bot
2edd34a881 Localisation updates from https://translatewiki.net.
Change-Id: I8256de37811bb514aeca3153f98f8aefdf8cc489
2018-09-23 09:47:04 +02:00
Brian Wolff
9c0ba336ff SECURITY: Do not allow botpassword login if account locked.
Reported by Rxy

Bug: T194605
Change-Id: Ib41005e69ab4db6f849837de12f0d41398b58f9a
2018-09-20 22:26:11 +01:00
Translation updater bot
4d191a52cd Localisation updates from https://translatewiki.net.
Change-Id: Ifab02635d866e244cff2ab4eecccdc70119e413a
2018-09-20 09:14:17 +02:00
Translation updater bot
9aa6ed1190 Localisation updates from https://translatewiki.net.
Change-Id: If4369a94a3165a063ccc3061a6f3a5e6e6487ad5
2018-09-18 09:14:02 +02:00
Bartek Łukawski
a1ac1b82fc ApiQueryInfo: fix query limits for testactions
ApiBase::LIMIT_SML2 actually belongs to apihighlimits.

Change-Id: Iaa50c6be417c9681563087b80928dc49a3bbd141
2018-09-17 11:28:23 +00:00
Translation updater bot
61fc4abe67 Localisation updates from https://translatewiki.net.
Change-Id: I4c16ddd26f216b8394faf2fdec0a0efe10d1e6bd
2018-09-17 09:42:12 +02:00
jenkins-bot
9801a1245c Merge "build: Updating mediawiki/mediawiki-codesniffer to 22.0.0" 2018-09-16 16:13:55 +00:00
Umherirrender
a4caa4d0c6 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Added spaces around .
Removed empty return statement which are not required
Removed return after phpunit markTestIncomplete,
which is throwing to exit the test, no need for a return

Change-Id: I2c80b965ee52ba09949e70ea9e7adfc58a1d89ce
2018-09-16 15:51:11 +00:00
Translation updater bot
305c495851 Localisation updates from https://translatewiki.net.
Change-Id: Ic31e0d5aef1fc08989f8d39b32a858257f43c2ef
2018-09-16 09:58:34 +02:00
Translation updater bot
6762b34394 Localisation updates from https://translatewiki.net.
Change-Id: I13ddf57c93ab420c882f38e353898715f5770e60
2018-09-15 09:28:35 +02:00
Translation updater bot
fc656f07ab Localisation updates from https://translatewiki.net.
Change-Id: I0d24aaefa10d74d6ed44ac77e3fe92003b4d766d
2018-09-14 09:22:43 +02:00
Translation updater bot
3c9df3ffea Localisation updates from https://translatewiki.net.
Change-Id: Ie5096f881b1aab8b24a3bafde2adabd1e7405e36
2018-09-13 09:36:07 +02:00
Translation updater bot
0b380d0f6e Localisation updates from https://translatewiki.net.
Change-Id: I4138398bcaf37ff156f075f01ef2efc719d2dc40
2018-09-12 08:20:43 +02:00
Translation updater bot
24f09a055e Localisation updates from https://translatewiki.net.
Change-Id: I76f3672d900827a2df2f88f668e6db92c911ba9e
2018-09-11 09:26:21 +02:00
Translation updater bot
da05cff1de Localisation updates from https://translatewiki.net.
Change-Id: Id9ce66ace073f0974d15610e14c64a565ce575dd
2018-09-10 09:07:15 +02:00
Translation updater bot
3588436058 Localisation updates from https://translatewiki.net.
Change-Id: Id50ca26cf97d5d23e50ab7f597d68827c31ac1da
2018-09-09 10:00:52 +02:00
Translation updater bot
10abc5e2ab Localisation updates from https://translatewiki.net.
Change-Id: I668054749e5551c2fe306e08b30935a916e91ae6
2018-09-07 08:37:35 +02:00
jenkins-bot
ccc2925f92 Merge "API: Use ct_tag_id in queries when applicable" 2018-09-06 19:25:50 +00:00
Translation updater bot
3e8829c5ea Localisation updates from https://translatewiki.net.
Change-Id: Ib115cf8605089085e6b52836daca2e0ae4755642
2018-09-05 22:02:00 +02:00
jenkins-bot
52a4ffbf42 Merge "ApiComparePages: Clean up handling of slot deletion" 2018-09-05 15:53:57 +00:00
jenkins-bot
d8e5553237 Merge "[MCR] Move getSecondaryDataUpdates to the page level" 2018-09-05 12:40:40 +00:00
Amir Sarabadani
0841a0f79e API: Use ct_tag_id in queries when applicable
Bug: T194162
Change-Id: I2146cd1f72b546277723102ab64c79567549ff5b
2018-09-04 22:22:29 +02:00
Translation updater bot
a0cd95dcb5 Localisation updates from https://translatewiki.net.
Change-Id: I76a715667cf1c3a87f0cbf85646e82700a0f923e
2018-09-04 21:55:19 +02:00
Gergő Tisza
51602a436c
[MCR] Move getSecondaryDataUpdates to the page level
Replaces Content::getSecondaryDataUpdates with
WikiPage::getSecondaryDataUpdates so that aggregation of
data updates from multiple page slots can be handled without
the caller having to care about it.
Also adds a WikiPage::updateParserCache method for convenience.

This is a temporary measure until DerivedPageDataUpdater
(or its replacement) can be exposed directly, at which point
the WikiPage methods will be deprecated.

Also fixes a parameter handling bug in DerivedPageDataUpdater.

Bug: T194043
Change-Id: Idbe7d582b49fcb7c90aea813773b7610ad44b1a8
2018-09-04 21:50:58 +02:00
Translation updater bot
d10b0444ed Localisation updates from https://translatewiki.net.
Change-Id: I344962ad1d1a66b6f552172811863e6a413a7b1b
2018-09-03 21:57:47 +02:00
Bartosz Dziewoński
65b11b8fee Use PHP 7 '??' operator instead of '?:' (round 2)
A few issues have snuck in since I33b421c8cb11cdd4ce896488c9ff5313f03a38cf.

Change-Id: Ib75470a7a3c19e2d48f498b396eee6ed733690e4
2018-09-03 20:48:10 +02:00
Translation updater bot
64462df23b Localisation updates from https://translatewiki.net.
Change-Id: Idc19c609271bfddaf01ba676224307b58f1b186a
2018-09-01 22:06:17 +02:00
Translation updater bot
635aa89103 Localisation updates from https://translatewiki.net.
Change-Id: Ic81e27c4502c3ec52beef3936dd5d9b509c98c1a
2018-08-31 21:55:05 +02:00
Brad Jorsch
07530dfb63 ApiComparePages: Clean up handling of slot deletion
We can't allow the main slot to be deleted. DifferenceEngine assumes it
exits.

We also shouldn't allow parameters such as `tosection-{role}` to be used
without the corresponing `totext-{role}`. This will help prevent people
from being confused into thinking that `tosection-{role}` will do
anything in that situation (as opposed to `tosection`, which did).

Bug: T203255
Change-Id: I58573bb2c1ee68e6907ef2e88385fe36e5184076
2018-08-31 11:26:07 -04:00
Translation updater bot
e73687ed84 Localisation updates from https://translatewiki.net.
Change-Id: I5515e9768e1b1348f2983ed0fa8d6475f49110da
2018-08-30 22:06:08 +02:00
Translation updater bot
db9ad97e5d Localisation updates from https://translatewiki.net.
Change-Id: I524cbcfe3d8d65c89ba38d60f7320304316ceede
2018-08-29 21:56:11 +02:00
jenkins-bot
ba6c827485 Merge "Apply content wrapping in ParserOutput::getText()" 2018-08-29 16:25:22 +00:00
daniel
0dc7ba02b4 Apply content wrapping in ParserOutput::getText()
Instead of applying wrapping the the parser and unwrapping in
ParserOutput::getText(), turn this around and apply wrapping in getText(),
and only if desired.

This avoids search&replace logic for unwrapping, and it also makes it a lot
easier to merge the output of multiple slots for MCR output.

This changes behavior in two hopefully irrelevant ways:
1) the limit report comments will be inside the wrapper div, instead of
following it.
2) if HTML with a wrapper div is explicitly injected into a ParserOutput
object, it will not be possible to unwrap the text.

Bug: T174035
Change-Id: I1641b7995af9bd297f1acd610d583fbf874f34e0
2018-08-29 16:46:25 +02:00
jenkins-bot
fa0dc93c8e Merge "API: Update examples to avoid MCR deprecation" 2018-08-27 20:08:52 +00:00
Translation updater bot
9f381111d5 Localisation updates from https://translatewiki.net.
Change-Id: I6a4ede0f5c74135b00c63d36f1a8fb9fb5ca323a
2018-08-27 21:55:42 +02:00
Brad Jorsch
f915b86820 API: Update examples to avoid MCR deprecation
ApiQueryRevisions and ApiQueryDeletedRevisions each have one example
fetching the content of the revision, which needs to be updated to add
the rvslots/drvslots parameter.

Bug: T202909
Change-Id: Ibc3cbd0fbf45361da31063a3e94afb6a22e300e0
2018-08-27 13:17:55 -04:00
Translation updater bot
d1be231540 Localisation updates from https://translatewiki.net.
Change-Id: I8b29efe4e068289d8ce775d31aaced06c8066ef8
2018-08-26 22:13:00 +02:00
Translation updater bot
46db43b12a Localisation updates from https://translatewiki.net.
Change-Id: I8e81a9820c3b8b779fa432101eb74be6831f3b48
2018-08-25 22:15:55 +02:00
Translation updater bot
cae0ae2c28 Localisation updates from https://translatewiki.net.
Change-Id: I16270a6272eeb44b42717551b9e00095094aa3a2
2018-08-24 22:52:33 +02:00
Brad Jorsch
e0d4610f29 API: Remove duplicate i18n messages from I700edfa7
Change-Id: I2e1cebf0b1e1719054fda31e2f5df1e5b7e99658
2018-08-24 13:42:54 -04:00
Translation updater bot
3454546327 Localisation updates from https://translatewiki.net.
Change-Id: I9ef6eb28a72cdaa58ddc91119924feddb89e78e6
2018-08-23 22:42:14 +02:00
jenkins-bot
91696c100c Merge "API: Catch Errors as well as Exceptions" 2018-08-23 17:05:19 +00:00
Brad Jorsch
1ab2f7a56b ApiComparePages: Update for MCR
The main external change here is that it can now return diffs per slot,
and the various parameters for providing text are deprecated in favor of
templated per-slot versions.

Also, this deprecates the 'fromsection' and 'tosection' behavior
introduced for T183823 (extracting a section's content for the diff) in
favor of the more logical behavior requested in T185723 (expanding
'fromtext-{slot}'/'totext-{slot}' as if for a section edit).

Bug: T200569
Bug: T183823
Bug: T185723
Change-Id: I700edfa766bbc320887f2e0b7507fcdb11e72cdc
2018-08-23 14:56:10 +00:00
Translation updater bot
9607a15341 Localisation updates from https://translatewiki.net.
Change-Id: I09f190dad5896844071db77b24ca54829b214976
2018-08-22 22:14:17 +02:00
Brad Jorsch
e6a75d806b API: Catch Errors as well as Exceptions
ApiMain (and also api.php) tries to catch any Exception so as to provide
a properly-formatted error message to the client instead of an HTML
error page.

With PHP 7.0, some cases that produce an Exception in HHVM instead
produce an Error. The API code should catch these too.

Fortunately neither Zend PHP nor HHVM care if you try to catch a class
that doesn't exist, so we can just add catch blocks for Throwable and
not worry about it.

Bug: T202416
Change-Id: I189eee466bd09870bc172f2420be393a7c0b1900
2018-08-22 09:30:06 -04:00
jenkins-bot
f1480bac4c Merge "Improve test coverage for ApiStashEdit" 2018-08-22 05:09:24 +00:00