Commit graph

71464 commits

Author SHA1 Message Date
Gergő Tisza
3fb272daee Include AuthManager API endpoints in authmanager channel
Change-Id: I0fa6e9687d02a67c5d36e16b3827e7cc3beb8259
2016-08-05 02:17:28 +00:00
jenkins-bot
695481aa3f Merge "Add search-ignored-headings string, copied from cirrus-search-ignored-headings." 2016-08-04 19:44:28 +00:00
jenkins-bot
912acabeab Merge "Allow closures as HTMLInfoField values" 2016-08-04 19:10:09 +00:00
jenkins-bot
213154a322 Merge "resourceloader: Implement 'deprecated' option for FileModule" 2016-08-04 18:48:39 +00:00
Stanislav Malyshev
723bb18646 Add search-ignored-headings string, copied from cirrus-search-ignored-headings.
Change-Id: I4178f872996800379843301f7119840f4a4551df
2016-08-04 11:12:26 -07:00
jdlrobson
8af960e484 resourceloader: Implement 'deprecated' option for FileModule
ResourceLoader modules can now carry a 'deprecated' option which can
be a boolean or an object with message key. This message or a default
deprecation message will be show whenever that module is used in production.

Note: This will not work in debug mode for ResourceLoaderFile modules
and this is deemed acceptable for the time being. We can revisit later.

Bug: T137772
Change-Id: Ib9ebd2d39a59fd41d8537e06884699f77b03580c
2016-08-04 18:01:53 +00:00
Kunal Mehta
1d7221d066 Autodiscover extension unittests
Instead of requiring every extension that wants to add unit tests to
copy the exact same boilerplate over and over, let's just automatically
discover them. We now have an extension registry, so we know exactly
which extensions are loaded (this won't work for extensions not being
loaded through extension.json).

For each extension, we check to see if the directory "tests/phpunit/"
exists, and if it does, add those unit tests. If there is a
`UnitTestsList` subscriber already set, PHPUnit will automatically
de-duplicate test cases so we won't be running anything twice.

Change-Id: I6ec654ef2d8ee3630b121b1277b4ee21ba0b6cd4
2016-08-04 09:49:43 -07:00
jenkins-bot
356b3420d6 Merge "Make content handlers assemble content for search" 2016-08-04 15:54:36 +00:00
jenkins-bot
43b7b5ef94 Merge "MediaHandlerFactory: Don't use any global state" 2016-08-04 09:34:34 +00:00
jenkins-bot
1cdd4682ed Merge "Move MediaHandler defaults out of global scope" 2016-08-04 09:30:53 +00:00
jenkins-bot
81fddcf9e4 Merge "Override MediaHandlers in tests using MediaWikiServices" 2016-08-04 09:27:33 +00:00
jenkins-bot
c5f68ec77a Merge "Introduce MediaHandlerFactory to create MediaHandler objects" 2016-08-04 09:27:23 +00:00
jenkins-bot
5928784f99 Merge "OutputPage: Add addHeadItems() method" 2016-08-04 02:14:01 +00:00
jenkins-bot
ce3a2f5621 Merge "Pass $archivedRevisionCount to the ArticleDeleteComplete hook" 2016-08-04 01:18:54 +00:00
Andrew Otto
b10bb9c5f5 Pass $archivedRevisionCount to the ArticleDeleteComplete hook
Bug: T134502
Change-Id: I1df89beeadbec2a3592e51fbb525ed6db2424619
2016-08-04 01:05:59 +00:00
jenkins-bot
6ff5f4ef32 Merge "phpdoc File::makeTransformTmpFile can return null" 2016-08-04 00:14:34 +00:00
Kunal Mehta
20bd328eb0 MediaHandlerFactory: Don't use any global state
Instead inject the configured MediaHandlers in the service constructor.

Change-Id: I039c01ef531389c74524cb7adcb8cf1229d9a95d
2016-08-03 16:47:46 -07:00
Kunal Mehta
1b1b3cdb54 Move MediaHandler defaults out of global scope
The defaults that were in $wgMediaHandlers are now listed in
MediaHandlerFactory.

The main advantage of doing this is we get O(1) replacement when
extensions set a media handler in their extension.json.

Bug: T141305
Change-Id: I05771a673837ab8d6331eedc24eb707be7f3a250
2016-08-03 16:47:46 -07:00
Kunal Mehta
9ae93d74fd Override MediaHandlers in tests using MediaWikiServices
Change-Id: Ie39fd9243e7817191b87179f792d932f7b96de0c
2016-08-03 16:47:46 -07:00
Kunal Mehta
b4596edd00 Introduce MediaHandlerFactory to create MediaHandler objects
This will allow further refactoring of override logic in parser tests.

Ideally the factory class would not use $wgMediaHandlers directly, but
that ends up breaking too many tests for now.

Change-Id: I34a63ee7089ff26f86f3dd6f3cd1a37928bc4005
2016-08-03 16:47:41 -07:00
jenkins-bot
2d8c31a000 Merge "Wrap revision info and nav in a div for easy formatting in MobileFrontend" 2016-08-03 21:17:02 +00:00
Translation updater bot
3e7b27fa56 Localisation updates from https://translatewiki.net.
Change-Id: I0ac53363139c522e4b35b8fbe49a7ac8d5ccbf45
2016-08-03 21:59:27 +02:00
jenkins-bot
7e43e3242d Merge "Pingback: Fix phpdoc" 2016-08-03 18:31:23 +00:00
jenkins-bot
56c6ddf7ad Merge "auth: Fix case of function call" 2016-08-03 18:27:27 +00:00
addshore
95dbcfa843 phpdoc File::makeTransformTmpFile can return null
Change-Id: Ibeefb87919dfa2e5f850570942cbeab01e84e8a7
2016-08-03 18:42:54 +01:00
James D. Forrester
46708622dd Update OOjs UI to v0.17.7
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.17.7

Change-Id: I0f36a3485a75ad0346eef9ae98aa47eddb099faf
2016-08-03 09:41:35 -07:00
Florian
23c79b228c Structure test: Add autoload.php order check
If a class is added manually to the autoload.php another run of
the maintenance script will probably add unnecessary noise to
another change. The added structure test checks, if the output of
the maintenance script equals to the contents of the commited
autoload.php.

Bug: T121921
Change-Id: I3a426b92892f4c00cab33a13f6a717751120367c
2016-08-03 09:50:27 +00:00
Kunal Mehta
fa887f2fc2 Pingback: Fix phpdoc
Change-Id: Ib4fd932a9b65e46e9b43e594a6e1ab5a4dac76d9
2016-08-03 01:56:28 -07:00
Kunal Mehta
5c7bd77867 auth: Fix case of function call
Change-Id: I415a7f7ba2ea97515a110cd963ed96bb77ec7b97
2016-08-02 23:53:51 -07:00
Baha
02d71fa2cf Wrap revision info and nav in a div for easy formatting in MobileFrontend
Revision info and nav used to be combined with breadcrumbs which made
styling the revision info and nav complicated. The patch wraps these
two divs into an outer div so that MF can style them together easily.

Also make sure rev info and nav appear on different lines as the
`br` tag between them has been removed because of wrapping.

Bug: T139930
Change-Id: Ic7ecf3be7eac6500c20cfc3b3b1fa49d4b4e0d19
2016-08-03 01:03:54 -04:00
jenkins-bot
8472c63448 Merge "UploadBase: Formally deprecate old methods for stashing files" 2016-08-03 00:10:52 +00:00
Bartosz Dziewoński
521742a9ff UploadBase: Formally deprecate old methods for stashing files
Change-Id: I4c60083a4e773e401aae8c90b99a051cbca4c961
2016-08-03 01:59:36 +02:00
jenkins-bot
10d3db9af0 Merge "Add 'targets' => [ 'desktop', 'mobile' ] to all UploadWizard dependencies" 2016-08-02 23:28:25 +00:00
jenkins-bot
11e717f121 Merge "Skin: Remove long-deprecated aliases for Linker methods" 2016-08-02 23:03:39 +00:00
jenkins-bot
d5c40c584a Merge "Canonicalise '@deprecated since' doc comments" 2016-08-02 22:55:19 +00:00
Bartosz Dziewoński
a49b3216fc Canonicalise '@deprecated since' doc comments
Change-Id: I440041512feb47a998efb45e76e3fd00e0655752
2016-08-02 22:21:57 +00:00
Timo Tijhof
ae762b1157 resourceloader: Separate 'user.styles' module from 'user'
Fixes addModuleStyles() violation from T92459 (a464d1d41).

Similar to 93ed259cf and Id2342454b for the 'site' module.
Doesn't need to be in separate commits since per-user HTML isn't
cached the same way.

Bug: T92459
Bug: T108590
Change-Id: I195f67d061de1306c97413aada7919e9f1b1d12c
2016-08-02 22:07:07 +00:00
Bartosz Dziewoński
dcdf25f0b5 Skin: Remove long-deprecated aliases for Linker methods
They don't seem to be used anymore in any skins in our version control.
I searched for:

  (->|(?<!Linker)::)(commentBlock|generateRollback|link|linkKnown|userLink|userToolLinks)

Change-Id: Id558c2d307dc6e9fbf0e642d5d638f7c2c9544b2
2016-08-02 23:48:24 +02:00
Gergő Tisza
3cc87a8b12 Allow closures as HTMLInfoField values
This makes it possible to parametrize info fields so they can be
easily altered.

Change-Id: I17328cf3f1a710096c64b17dde0864cb9be3892d
2016-08-02 21:22:31 +00:00
jenkins-bot
ebdda3267b Merge "Remove unused conds.mustache test file" 2016-08-02 21:16:17 +00:00
Translation updater bot
ac7c0bda71 Localisation updates from https://translatewiki.net.
Change-Id: If70dbb59179e6529b838f963aca55c4dab68f663
2016-08-02 22:08:19 +02:00
jenkins-bot
3ef9d19368 Merge "Provide missing system message corresponding to "right-purge"" 2016-08-02 19:23:35 +00:00
jenkins-bot
ed3245661d Merge "Move HTMLFormField subclasses to a separate directory" 2016-08-02 19:06:30 +00:00
jenkins-bot
4737ea0412 Merge "Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache" 2016-08-02 13:19:50 +00:00
Aaron Schulz
5f921702d2 Avoid stack overflow in LoadBalancer with CACHE_DB WAN/server cache
* Add the ability to expose key BagOStuff attributes like whether the
  emulation SQL cache is being used. Several callers use hacks to detect
  this and can be updated later.
* Fallback to a safe empty WAN cache in the CACHE_DB case. This fixes
  a regression from f4bf52e843.
* Also add this protection to the server cache, which could break
  similarly before too.
* Also fix CACHE_ANYTHING by avoid the recursion risk from
  fc1d4d7960 by just checking the disabled service map.

Bug: T123829
Bug: T141804
Change-Id: I17ee26138f69e01ec1aaddb55ab27caa4d542193
2016-08-02 13:06:49 +00:00
jenkins-bot
2b8d66c4cd Merge "MessagesGom_deva: Correct syntax in namespace alias" 2016-08-02 11:10:47 +00:00
jenkins-bot
4817afdfda Merge "resourceloader: Remove styles from 'site', depend on 'site.styles'" 2016-08-02 09:18:30 +00:00
jenkins-bot
88205cb458 Merge "Unification of Czech terminology in Special:Listgrants" 2016-08-02 09:06:45 +00:00
Kghbln
99d4a5e99b Provide missing system message corresponding to "right-purge"
Change-Id: I2f98da7e1537da9d9b9a02f881465be11c31d698
2016-08-02 11:06:31 +02:00
Martin Urbanec
5eda03c6fc Unification of Czech terminology in Special:Listgrants
The title of Special:Listgrants was "Svolení" in Czech
and the name of the special page was "Seznam grantů".
None of this has the exact meaning as the original title/name.
The Czech word "Grant" (another form of "grantů")
usualy means a financial gift from somebody limited by its purpose.

The Czech word "Svolení" has similar meaning as "agreement" in English.

"Skupina oprávnění" can be translated as "Group of permissions".

I've changed related pages in translatewiki.net to update
the description, displayed title and the title of the first
column in table which is generated by this special page.

It has been suggested by Dvorapa at my talk page in cswiki, see
https://cs.wikipedia.org/?oldid=13980091#Granty.3F_Svolen.C3.AD.3F
(in Czech).

Change-Id: Ic3148fc689de32bcba6344ad1f98491c5f540973
2016-08-02 08:48:28 +00:00