Commit graph

4081 commits

Author SHA1 Message Date
jenkins-bot
a74baa198c Merge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop" 2015-09-26 19:04:19 +00:00
Translation updater bot
4fbc3008b4 Localisation updates from https://translatewiki.net.
Change-Id: If14c9f2c908b47b278bdcc455f024b055a9ec47c
2015-09-26 20:50:52 +02:00
Reedy
355e58da2f Re-enable Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
Change-Id: I07b4043163e5d00709f72dbbb3e2a46b17414d1c
2015-09-26 17:45:29 +01:00
Translation updater bot
e063811c3c Localisation updates from https://translatewiki.net.
Change-Id: Ia63ccceda88256df242e36291e45c8e4db0ab0fa
2015-09-25 22:16:38 +02:00
Amir E. Aharoni
c049d9216e Improve the wording of apihelp-parse-param-section
* Change "retrieve" to "parse" (according to Anomie's comments).
* Split the first sentence for easier understanding and translation.
* Rephrase the last sentence about "new"'s validity to be more
  precise and less English-centric.

Change-Id: I71473fb186ded9e9929682d145a2381becf68767
2015-09-25 21:32:44 +03:00
Translation updater bot
25fc4eeb82 Localisation updates from https://translatewiki.net.
Change-Id: I3d916f4015f1885e3ac041c3f780209e0dee35d6
2015-09-24 21:14:52 +02:00
jenkins-bot
1dba068307 Merge "Remove dead code" 2015-09-24 17:52:50 +00:00
jeroendedauw
220e5c4482 Remove unused $pageSet var
Change-Id: Ic9c8bf9ed840703128a4c0e873ef7d70b6155494
2015-09-24 19:06:59 +02:00
jeroendedauw
8cac7794d9 Remove dead code
Change-Id: Iafcb15a8843889bf7fbfb191b64d86e9f8561185
2015-09-24 19:06:19 +02:00
umherirrender
271da88127 Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes
Changed some old bugzilla links to new phabricator links in comments,
test data and error message. This reduces the need for redirects from
old bugzilla to new phabricator from our source code.

Change-Id: Id98278e26ce31656295a23f3cadb536859c4caa5
2015-09-24 17:17:25 +02:00
Translation updater bot
b5285e26e7 Localisation updates from https://translatewiki.net.
Change-Id: I8ae3ae761cc2dd0e418bc584d8b1c0328a1a9dbb
2015-09-23 21:14:28 +02:00
jenkins-bot
70e760ee4e Merge "Add hook to allow lazy loading of import sources" 2015-09-23 16:30:36 +00:00
Brad Jorsch
462a7baa00 API: Correct 'from_namespace' logic in ApiQueryBacklinksprop
The code for the rdnamespace parameter to prop=redirects was trying to
use a nonexistent rd_from_namespace field when miser mode was not
enabled.

Bug: T113453
Change-Id: I7ef77a01c25fec34623b888f439261423cebdaef
2015-09-23 10:14:07 -04:00
This, that and the other
d3b85592ea Add hook to allow lazy loading of import sources
Currently import sources have to be set into $wgImportSources as part of
wiki startup. This is not practical for the WMF cluster, where we need some
reasonably complex logic to set up the import source structure.

This change allows the import source list to be populated from a new
"ImportSources" hook. This hook is only called when the list of import
sources is actually needed (namely, when a user with relevant permissions
loads Special:Import).

Bug: T17583
Change-Id: Ice9a19cb6dfe53ae72aa71353d0553ee9338f233
2015-09-23 17:54:31 +10:00
Translation updater bot
5ed149d76a Localisation updates from https://translatewiki.net.
Change-Id: I22fc6e0c1af4d2db3c1a7e053a1597764dce8339
2015-09-22 21:50:09 +02:00
Translation updater bot
96981e40a4 Localisation updates from https://translatewiki.net.
Change-Id: I63f5687fe78418403fdb3de398ece449efd3c72a
2015-09-21 21:42:14 +02:00
Brad Jorsch
ec658adad5 Add i18n messages for ApiStashEdit
Bug: T113189
Change-Id: Iee7b2fbb7b9cd4e7255c87d78be9396073f41236
2015-09-21 10:31:01 -04:00
Translation updater bot
d51732b3d4 Localisation updates from https://translatewiki.net.
Change-Id: Icdbc2c339c73d7535bff79444065260c8a9a8065
2015-09-20 21:38:30 +02:00
Translation updater bot
fe9ede9864 Localisation updates from https://translatewiki.net.
Change-Id: I211d55ab5194485af47b42a5e428c7475d9a7c44
2015-09-19 22:54:08 +02:00
jenkins-bot
25bb740e50 Merge "API: Finish killing "raw mode"" 2015-09-18 06:31:33 +00:00
Translation updater bot
22c163326f Localisation updates from https://translatewiki.net.
Change-Id: I7269d03a73a9afa677d08dc517da608328932c18
2015-09-17 22:16:37 +02:00
Brad Jorsch
f9c1bfa594 API: Finish killing "raw mode"
It was kept around in the ApiResult rewrite because Wikibase was
(mis)using it as an "XML mode" flag.

Bug: T96596
Change-Id: Ic8259649c8cb0cce0444c907607c36d96fb2eb7e
2015-09-17 13:51:45 +00:00
Translation updater bot
5f2fe0f791 Localisation updates from https://translatewiki.net.
Change-Id: Id35e5c6fd7a706cc76e88d9181edb8f39a3ac201
2015-09-16 22:20:29 +02:00
jenkins-bot
02ec1ea797 Merge "Move query rewriting into search backend" 2015-09-16 18:57:55 +00:00
jenkins-bot
2f0a765a9c Merge "Add missing argument to dieDebug call so it does not die" 2015-09-16 17:43:04 +00:00
jeroendedauw
a7b5f242e1 Remove dead local vars in ApiRevisionDelete
Change-Id: I9c5ab515e9c95402e73423d4aa8632d57660bdff
2015-09-16 14:58:34 +00:00
jeroendedauw
41a22065e6 Add missing argument to dieDebug call so it does not die
Change-Id: I672f4f1a407b35bf88216508156035ef96a7289f
2015-09-16 16:52:39 +02:00
Translation updater bot
f7afae7468 Localisation updates from https://translatewiki.net.
Change-Id: Ia4020fe3ad9f37dc5f8a5f1b27974582edfdd2f4
2015-09-15 22:06:39 +02:00
Translation updater bot
64e31cb1e3 Localisation updates from https://translatewiki.net.
Change-Id: I4dc82c7424593f75b6247775104503b7eec82fff
2015-09-14 21:40:34 +02:00
Translation updater bot
6812ce1230 Localisation updates from https://translatewiki.net.
Change-Id: I4893e65a430118dbe35f90144afa492899f90150
2015-09-13 21:42:12 +02:00
Translation updater bot
4a99d20db9 Localisation updates from https://translatewiki.net.
Change-Id: Ib11cc9121522a71ea2a8ea13192e445f44ee4cb3
2015-09-12 19:41:28 +02:00
Amir E. Aharoni
81ac529690 Rephrase api-help-param-list for clarity
What is currently shown on the ApiHelp is something like this:
One value: title, text, nearmatch

It would be clearer to say
One of the following values: title, text, nearmatch

The example is from
https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bsearch

Change-Id: I92f17f90ae77c6c151b817bae8b2f08d858a0f64
2015-09-12 13:04:51 +03:00
Translation updater bot
365a72c220 Localisation updates from https://translatewiki.net.
Change-Id: I71bc38489ea62625740f6dd9d73ca046bcf8e400
2015-09-12 00:49:35 +02:00
jenkins-bot
c71024dd27 Merge "Remove return of void method results" 2015-09-10 18:57:29 +00:00
jeroendedauw
10d117368f Remove return of void method results
Change-Id: I095ba37ceb150fcb7bee9df80201437c78426938
2015-09-10 18:45:22 +00:00
Translation updater bot
90c2c3ab4a Localisation updates from https://translatewiki.net.
Change-Id: Iec30781dc432dea8d3a6a0773309937baaa1b916
2015-09-10 20:42:38 +02:00
Brad Jorsch
eb6bea8b54 API: Add support for selected HTTP precondition headers
Specifically, GET requests can now return ETag and Last-Modified
headers, and If-None-Match and If-Modified-Since headers on such GET
requests will be honored. This doesn't change any API modules to
actually return these values, it just provides the infrastructure.

For reasoning on why only GET requests and why only these two of the
five precondition headers defined by RFC 7232, see the doc comment on
ApiMain::checkConditionalRequestHeaders().

Change-Id: Ia18874c9360fcffdad323b341ca867ba773788fd
2015-09-10 10:19:25 -04:00
Brad Jorsch
a83346f118 API: Improve list=random
Changes are:
* Raise limits to be in line with other modules.
* Deprecate boolean rnredirect in favor of rnfilterredir that allows for
  including both redirects and non-redirects.
* Allow continuation, for applications that want to traverse the entire
  "random" sequence without repeats.

Bug: T99926
Change-Id: Id5a8b0f1591c73044524ac508d2add8ab1b3a22e
2015-09-10 00:12:45 +00:00
jenkins-bot
8897fc1f47 Merge "ApiQueryDeletedRevisions: Optimize ascending title generation" 2015-09-09 23:59:50 +00:00
jenkins-bot
a007bbecc2 Merge "ApiResult: Fix size checking" 2015-09-09 23:42:49 +00:00
Translation updater bot
2f47f2391a Localisation updates from https://translatewiki.net.
Change-Id: If0c00caf736f8b4854eed1b080482d44164ab950
2015-09-09 21:33:06 +02:00
Translation updater bot
915bbec070 Localisation updates from https://translatewiki.net.
Change-Id: I6e694565182afacf0482af8988b198b50da0a913
2015-09-08 21:32:27 +02:00
jenkins-bot
12798ba690 Merge "Remove dead local var in ApiQueryAllDeletedRevisions" 2015-09-08 19:04:27 +00:00
jenkins-bot
408d6a5132 Merge "Remove dead local var in ApiQueryUserInfo" 2015-09-08 19:04:23 +00:00
Brad Jorsch
46322fff07 ApiResult: Fix size checking
Two bugs here:
* Setting NO_SIZE_CHECK also bypassed validation
* ApiResult::valueSize() didn't handle ApiSerializable, which is fixed
  by defining that the value needs to be passed through
  ApiResult::validateValue() first.

Bug: T111796
Change-Id: I7c00d8ee53364a26f8f63f82a4d83b92baf5383e
2015-09-08 11:40:23 -04:00
jenkins-bot
75da4fe3e6 Merge "Rephrase apihelp-query+logevents-param-action" 2015-09-08 12:53:08 +00:00
Translation updater bot
41d14e4110 Localisation updates from https://translatewiki.net.
Change-Id: I8afcef58e0baf09582da036bedf12fcf6cc451d2
2015-09-07 22:20:20 +02:00
jeroendedauw
3095012f12 Remove dead local var in ApiQueryUserInfo
Change-Id: I8620848f22bddd133b618a7c4918adbf7adcb8c0
2015-09-07 21:48:54 +02:00
jeroendedauw
21d213ff01 Remove dead local var in ApiQueryAllDeletedRevisions
Need tools to find these is the methods are that huge >_>

Change-Id: I8571aee1459f318e147fa5b4e740432cdeadbfe1
2015-09-07 21:47:28 +02:00
jenkins-bot
60743c11ad Merge "Improve wording of imageinfo API userid prop" 2015-09-07 10:23:45 +00:00