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
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
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
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
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
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
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
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
* 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
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