Commit graph

5262 commits

Author SHA1 Message Date
jenkins-bot
3cecf7e6f1 Merge "ApiSandbox: Indicate when login is suppressed" 2017-06-20 21:02:30 +00:00
jenkins-bot
5e2d9e1de9 Merge "API: Add the ability to flag parameter values as deprecated" 2017-06-20 20:59:17 +00:00
Translation updater bot
bb1f4e8e74 Localisation updates from https://translatewiki.net.
Change-Id: I1d2050c1a5d2cadf8f8e152037f7b80530612dcd
2017-06-20 22:06:45 +02:00
Brad Jorsch
06802684e0 ApiSandbox: Indicate when login is suppressed
ApiMain will add a header to indicate that lacksSameOriginSecurity()
forced the request to be processed as if logged out, and ApiSandbox will
detect this header to display a helpful message on the results page.

Bug: T165797
Change-Id: I56390b31563c75d83cf0a8ffb1b8e4f3283895f0
2017-06-20 12:03:39 -04:00
Brad Jorsch
e2c949677e API: Add the ability to flag parameter values as deprecated
This has a number of implications:
* A deprecation warning is automatically generated if the value is used.
* action=paraminfo can list it in a machine-readable manner.
* It is automatically flagged in the help when message-per-value mode is
  used.
* In values lists in the help, it's specially marked (currently
  strike-through).
* ApiSandbox will mark it in the widgets (currently strike-through).

Deprecation of submodules is not automatically detected here, that's
left for a later patch.

Bug: T123931
Change-Id: Idad6377063e457f9352a99df5c7cc15b1563579e
2017-06-20 11:41:26 -04:00
jenkins-bot
4d94cc1432 Merge "API: Split description messages into summary + additional text" 2017-06-20 15:34:10 +00:00
Translation updater bot
bd94612571 Localisation updates from https://translatewiki.net.
Change-Id: Ic1bbc174355e07f099f0e2e0b501f5315b9de4d2
2017-06-19 22:06:49 +02:00
jenkins-bot
5604684b44 Merge "Remove "@author Umherirrender" annotations" 2017-06-19 09:28:20 +00:00
jenkins-bot
178bada116 Merge "API: Have generator=random set a non-continuation value" 2017-06-19 07:07:56 +00:00
jenkins-bot
60cdd1f8c4 Merge "API: Deprecate diff and parse parameters in ApiQueryRevisionsBase" 2017-06-19 07:00:52 +00:00
Translation updater bot
ef91b0b7f3 Localisation updates from https://translatewiki.net.
Change-Id: I90ecf094ef908fc82a2cb1442fd7aa72405950f9
2017-06-17 21:54:33 +02:00
Translation updater bot
84c53dd9a7 Localisation updates from https://translatewiki.net.
Change-Id: Ib20d54b3faab8a606f60a8e1e03d74e826ef385e
2017-06-16 22:02:53 +02:00
Brad Jorsch
f389d14b38 API: Deprecate diff and parse parameters in ApiQueryRevisionsBase
The 'rvdifftotext', 'rvdifftotextpst', 'rvdiffto', 'rvexpandtemplates',
'rvgeneratexml', 'rvparse', and 'rvprop=parsetree' parameters to
prop=revisions are deprecated, as are the similarly named parameters to
prop=deletedrevisions, list=allrevisions, and list=alldeletedrevisions.

Use action=compare, action=parse, or action=expandtemplates instead.

Bug: T164106
Change-Id: I6deaf550a4b96f0d35488bea7bfd6637d6d1c36a
2017-06-16 12:01:44 -04:00
Translation updater bot
75705ad4da Localisation updates from https://translatewiki.net.
Change-Id: If38ca86942d9591ab9f86f8584de5ad0d136a27f
2017-06-15 21:58:08 +02:00
Brad Jorsch
45093c330f API: Split description messages into summary + additional text
To fix T123930, it would be very handy to have the summary for each
module without any of the additional explanatory text.

Bug: T166411
Change-Id: I778bab2b87971875aed4c804341ad59c1c6e021f
2017-06-15 13:46:55 -04:00
Translation updater bot
455b69b453 Localisation updates from https://translatewiki.net.
Change-Id: I6dd2ce2c8fab01838c84bc016d04192e397fb3c9
2017-06-14 22:42:42 +02:00
jenkins-bot
3bf87f3900 Merge "Linked HTML representation of a format to formatted output" 2017-06-14 13:39:23 +00:00
KeerthanaS
e1d6c40efe Linked HTML representation of a format to formatted output
Added Hyperlink to non-HTML formatted output from the HTML
representation of the output

Bug: T123905
Change-Id: Id55c524a29f679b8e06d4e3d05bd50e8685fb830
2017-06-14 13:35:09 +02:00
jenkins-bot
80f6b8c048 Merge "API: Restore ability for dieStatus() to be passed a non-fatal Status" 2017-06-13 23:25:35 +00:00
Umherirrender
8ee9fcaa17 Remove "@author Umherirrender" annotations
Also remove my name from i18n files I am not translate

Bug: T139301
Change-Id: If806324cd07e662f5e995e11cf899b5b934cd79b
2017-06-13 22:28:50 +02:00
jenkins-bot
6b67625194 Merge "ApiParse: Fetch content with parsetree" 2017-06-13 20:00:14 +00:00
Translation updater bot
4ae45da31f Localisation updates from https://translatewiki.net.
Change-Id: I3aa05ab2b7d18f6d134e4b395e2a50526cba5630
2017-06-13 21:57:04 +02:00
Brad Jorsch
2775de01c8 ApiParse: Fetch content with parsetree
I0079e10a assumed callers were correctly passing $getContent to
getParsedContent(). Apparently they weren't.

Bug: T167826
Change-Id: I85cbdfb5d0580252c1df23a0f27c8052f1d65dc3
2017-06-13 15:42:21 -04:00
Brad Jorsch
e5006ce0f0 API: Restore ability for dieStatus() to be passed a non-fatal Status
This ability was accidentally removed in Iae0e2ce3.

Bug: T167690
Change-Id: I79cc9f2f8e75c3cf4e0942d17faafa84955aa020
2017-06-13 10:30:24 -04:00
Brad Jorsch
1e2b3fb37f ApiParse: Clean up parsing code
Now that ParserOptions->isSafeToCache() exists, use it where necessary.
This also moves the use inside the makeParserOptions() method so other
callers can pick it up as well.

Then pass the flag as $forceParse into WikiPage::getParserOutput()
instead of duplicating the logic in several cases, and generally clean
up the logic in the module to let WikiPage decide when to use the cache
in more cases.

Change-Id: I0079e10a40997e4a3b59ac21ef6c92246a147736
2017-06-12 12:34:17 -04:00
Thiemo Mättig
e16191caa3 Remove unused and unnecessary imports
Change-Id: I26e623a4e4ba965c07670369a90c8a95185ea1e4
2017-06-12 15:50:43 +00:00
Translation updater bot
1d589b5b20 Localisation updates from https://translatewiki.net.
Change-Id: Ia549296daf2a571be8bab81768a656bb12570116
2017-06-11 21:54:14 +02:00
Translation updater bot
84b02287a8 Localisation updates from https://translatewiki.net.
Change-Id: I1f0cffc9ef9fb378fd2bb024e406f84606ade576
2017-06-10 23:35:39 +02:00
Translation updater bot
4816e8fa5f Localisation updates from https://translatewiki.net.
Change-Id: I1c435df7c4d1a6e081cbc708c20e55a62933c567
2017-06-09 21:57:07 +02:00
Translation updater bot
91312ec2e9 Localisation updates from https://translatewiki.net.
Change-Id: I1c0504dc1347fd79bd0c24912bc9e42bb6b7e892
2017-06-08 21:53:39 +02:00
Translation updater bot
c1a1125b7e Localisation updates from https://translatewiki.net.
Change-Id: Idda25d2f73ce81e48f6763a8f4a7d5d4a7fb0540
2017-06-07 21:58:09 +02:00
Translation updater bot
557424a197 Localisation updates from https://translatewiki.net.
Change-Id: Id393acd9be01ab3342d202931bc284e8437f5d9d
2017-06-06 21:54:43 +02:00
jenkins-bot
f4c4915571 Merge "Fix action=feedcontributions date filtering parameters" 2017-06-06 15:32:55 +00:00
Geoffrey Mon
287ddb4c9a Fix action=feedcontributions date filtering parameters
* Convert year/month date filter parameters to use start/end so that
  ApiFeedContributions still works as expected after b668887
* Move SpecialContributions::processDateFilter (used to convert
  year/month parameters to start/end parameters) to ContribsPager
  since ApiFeedContributions also uses it now

Bug: T166859
Change-Id: I34fc8388a29e4cd36474934e6266127d0e3253cd
2017-06-06 10:41:40 -04:00
Brad Jorsch
4eb3d542ce API: Have generator=random set a non-continuation value
When used as a generator, it needs a non-continuation value for
continuation to work properly. As a list it doesn't matter because lists
never non-continue.

Bug: T167141
Change-Id: I7b8ddaf73f918b31414e22fc3a13e6245c2d57d7
2017-06-06 10:15:49 -04:00
Raimond Spekking
e57267fab9 Revert "Localisation updates from https://translatewiki.net."
Overwrites API messsages

This reverts commit 8d33520e69.

Change-Id: Id4023a5038a25c368b4d58d7ab6ad3d3990ce04f
2017-06-05 20:29:27 +00:00
Translation updater bot
8d33520e69 Localisation updates from https://translatewiki.net.
Change-Id: I5bb64bf3a81ab9bc113f3f3a4be91971d8a9df4e
2017-06-05 22:18:40 +02:00
Brad Jorsch
c671ee1622 API: Rewrite ApiComparePages
Support diffing deleted revisions, user-supplied text, and additional
properties about the diffed revisions such as the user and edit summary.

Bug: T20189
Bug: T30047
Bug: T164529
Change-Id: I5565d717d9c2fd19da7cae02890a15e244cc238b
2017-06-05 12:23:32 -07:00
Translation updater bot
10fed98b84 Localisation updates from https://translatewiki.net.
Change-Id: I866f94ca519d38153c55d5aa24f7471c24dd1760
2017-06-04 22:32:50 +02:00
Translation updater bot
a1ffe2ed31 Localisation updates from https://translatewiki.net.
Change-Id: Ia81ce775bec7d92a59e1ea67a07f751fe3addbeb
2017-06-03 21:53:46 +02:00
Translation updater bot
3dc76fcf2c Localisation updates from https://translatewiki.net.
Change-Id: I06568b78ef084ebccf2769a56587a1d0e370949f
2017-06-02 21:53:44 +02:00
Translation updater bot
97198d6b0b Localisation updates from https://translatewiki.net.
Change-Id: I31b05b2abb0437e28a2feacff7b343099f620a57
2017-06-01 22:21:24 +02:00
Translation updater bot
7d1fa56efa Localisation updates from https://translatewiki.net.
Change-Id: I22cc50259ac61e5e2e4c7f7cce190275713c641a
2017-05-31 21:53:56 +02:00
Translation updater bot
563c9b4cbb Localisation updates from https://translatewiki.net.
Change-Id: I07c848f6c5e0fb9267b5dd1e0900de899f88c911
2017-05-30 21:56:06 +02:00
Translation updater bot
4497b3e570 Localisation updates from https://translatewiki.net.
Change-Id: I2ac1e5176315ced37d1067e1616a3447592429f0
2017-05-29 22:03:28 +02:00
jenkins-bot
fb742a3a8e Merge "Return 400 on invalid CSP reports" 2017-05-29 14:50:48 +00:00
Translation updater bot
6a97c7105b Localisation updates from https://translatewiki.net.
Change-Id: Id10e621f71f0522f6dcb16369cca50d95abf33dc
2017-05-28 21:54:06 +02:00
Translation updater bot
a64813f615 Localisation updates from https://translatewiki.net.
Change-Id: I62626aff6dbf017f7fb0fa3b6d33d3cc9ae2c249
2017-05-27 22:04:18 +02:00
Raimond Spekking
c8f6364c7b Revert "Localisation updates from https://translatewiki.net."
Overwrites https://gerrit.wikimedia.org/r/#/c/353696/

This reverts commit d47331a707.

Change-Id: I2db66a32c3eb1baef84c0abe797ebb9bc052670d
2017-05-26 20:05:36 +00:00
Translation updater bot
d47331a707 Localisation updates from https://translatewiki.net.
Change-Id: Iabf3bace8c57875133115d1faab44be656807657
2017-05-26 21:58:32 +02:00