jenkins-bot [Mon, 8 Feb 2016 23:30:32 +0000 (23:30 +0000)]
Merge "Implement action=mergehistory"
Reedy [Mon, 8 Feb 2016 22:24:19 +0000 (22:24 +0000)]
getFooterIcons returns an array
Change-Id: I4824bafbc7fd72c7b5e6b117a94d95051524190e
Translation updater bot [Mon, 8 Feb 2016 20:58:30 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I228c0b58c9b9df6849c3c70eb1a39e402f679bca
Aaron Schulz [Mon, 8 Feb 2016 20:48:45 +0000 (12:48 -0800)]
Set doesWrites() for SpecialWatchlist
Change-Id: Ic843ade3dabbbbd10b2b2eade9bda65c9548c492
Aaron Schulz [Mon, 8 Feb 2016 20:26:39 +0000 (12:26 -0800)]
Avoid setRequestExpectations() call in internal API mode
This can avoid some pointless log spam.
Change-Id: I14be6eca00a9ba3faeb1febb9ed31033cad11831
Brad Jorsch [Wed, 3 Feb 2016 18:30:54 +0000 (13:30 -0500)]
Use stub threshold from ParserOptions when parsing
Linker::linkAttribs() needs the stub threshold to determine the classes
in some cases. For the code path from Parser → LinkHolderArray → Linker,
we can pass down the correct threshold from ParserOptions instead of
pulling a potentially-different threshold from $wgUser.
Bug: T124367
Change-Id: I16b9d6c3044ae60d5a7fd340569c019ffc4b2a55
Brad Jorsch [Wed, 3 Feb 2016 20:18:52 +0000 (15:18 -0500)]
OutputPage: Don't get a ParserOptions for $wgUser before the end of Setup.php
Until Setup.php completes, we can't access the "current" user and
trying to do so logs a warning. So don't try.
Bug: T124367
Change-Id: I1acc82760c368a24448f3c90e268b24414e43a30
jenkins-bot [Mon, 8 Feb 2016 16:02:45 +0000 (16:02 +0000)]
Merge "Update session log messages"
jenkins-bot [Mon, 8 Feb 2016 15:28:30 +0000 (15:28 +0000)]
Merge "Revert "TableSorter: Avoid FOUC and preserve styling in VisualEditor""
jenkins-bot [Mon, 8 Feb 2016 13:24:34 +0000 (13:24 +0000)]
Merge "Use class for toggle links on Special:Log"
Bartosz Dziewoński [Mon, 8 Feb 2016 12:57:47 +0000 (12:57 +0000)]
Revert "TableSorter: Avoid FOUC and preserve styling in VisualEditor"
That was, unfortunately, way too optimistic. The logic for
choosing header cells that are used for sorting is a lot more
complicated than current CSS selectors can express.
This reverts commit
9e363d0e8a12f4fc205de08958622d6e8e250c81.
Bug: T126007
Change-Id: I7c08e06a4f61d69b6858958218d9a6233aee18de
jenkins-bot [Mon, 8 Feb 2016 09:11:21 +0000 (09:11 +0000)]
Merge "Allow callbacks to be passed to $wgContentHandlers"
Fomafix [Mon, 8 Feb 2016 07:30:37 +0000 (07:30 +0000)]
mediawiki.action.edit.preview.js: Use formatversion=2 for API requests
With formatversion=2 the JSON response uses UTF-8 instead of escape sequences
with hexadecimal numbers for encoding of non-ASCII characters.
The other syntax changes of formatversion=2 requires here a lot of changes.
Change-Id: Icc2ca23bfc8ab0d2ed91e5ae67ada2a14147fb87
jenkins-bot [Mon, 8 Feb 2016 02:09:34 +0000 (02:09 +0000)]
Merge "Output PHP version before running PHPUnit tests"
Kunal Mehta [Mon, 8 Feb 2016 01:24:52 +0000 (17:24 -0800)]
Output PHP version before running PHPUnit tests
For sanity checking CI changes, as well as to match the PHPUnit
version output.
Change-Id: Ib807f8650992adada97226cd96282484392f71e8
jenkins-bot [Mon, 8 Feb 2016 00:55:04 +0000 (00:55 +0000)]
Merge "Introduce User::INVALID_TOKEN"
jenkins-bot [Mon, 8 Feb 2016 00:51:05 +0000 (00:51 +0000)]
Merge "Use semver for wgVersion alpha versions"
jenkins-bot [Mon, 8 Feb 2016 00:51:01 +0000 (00:51 +0000)]
Merge "Remove duplicate array keys from tests"
jenkins-bot [Sun, 7 Feb 2016 23:13:07 +0000 (23:13 +0000)]
Merge "Add $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor"
Brad Jorsch [Sun, 7 Feb 2016 22:46:34 +0000 (17:46 -0500)]
Don't try to auto-create users when MW_NO_SESSION is defined
Bug: T126177
Change-Id: Ia62ec77cd2cc177d81923a96171498dbc8c0ed50
Tim Starling [Mon, 1 Feb 2016 02:37:36 +0000 (13:37 +1100)]
Add tests for LanguageConverter classes that didn't have them
Some of them don't have many test cases, or have test cases that don't
represent the ideal transliteration and so are subject to change. But
this is better than nothing.
Change-Id: I4aae693bd77d9ff365f48113923ed7f9fed8d668
Bryan Davis [Sun, 7 Feb 2016 21:04:55 +0000 (14:04 -0700)]
Add $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor
Add a 'mwversion' value to log events processed by WikiProcessor to help
with classifying log events emitted by a wiki farm running mixed
versions of MediaWiki.
Bug: T125707
Change-Id: I5f5dfd051ebf251bec0d6e6a83a15e81f59540f3
Tim Starling [Sun, 7 Feb 2016 22:01:30 +0000 (09:01 +1100)]
Remove extra line breaks in memcached debug output
Possibly introduced by
ed90263776367
Change-Id: Ibbead449289eb1ffeec737c4c520925542b2fcfc
Reedy [Sun, 7 Feb 2016 21:22:53 +0000 (21:22 +0000)]
Remove duplicate array keys from tests
Change-Id: I437b87151be6589a8d5c984b90cd249c2d0ecd3c
Translation updater bot [Sun, 7 Feb 2016 20:56:26 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ib6ae0a764d9e8f7e4e49c66bf79aa55a6b1d234e
James D. Forrester [Sun, 7 Feb 2016 02:06:57 +0000 (18:06 -0800)]
build: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0
Taking the opportunity to modernise our .jshintrc file, I have made the
following changes there and adjusted the repo to pass:
* Replaced the deprecated `"es3": true` with `"esversion": 3`; nil change.
* Adjusted `"latedef": true` to `"latedef": "nofunc"`, a new setting for this
option that lets us retain previous behaviour. One call needed to be adjusted
for the update with this change; without it, several dozen were needed.
* Added `"futurehostile": true`, to make bumping `esversion` easier in future.
I have reviewed the rest of the options and chosen not to apply them:
* No need to over-ride the runtime option `maxerr`.
* No need to add the additional 'enforcing' options: `forin`, `nocomma`,
`nonbsp`, `notypeof`, `predef`, `shadow`, `singleGroups`, `varstmt`.
* No need to add the additional 'relaxing' options, as ideally we should use
none: `asi`, `boss`, `debug`, `elision`, `eqnull`, `evil`, `expr`,
`lastsemic`, `loopfunc`, `moz`, `noyield`, `plusplus`, `proto`, `scripturl`,
`supernew`, `validthis`, `withstmt`
* Definitely no need to add any of the deprecated coding style-related items:
`camelcase`, `curly`, `immed`, `indent`, `laxcomma`, `maxlen`,
`maxcomplexity`, `maxdepth`, `maxparams`, `maxstatements`, `newcap`,
`noempty`, `quotmark`, `sub`
Note that we retain two deprecated options, `laxbreak` and `multistr` which are
set to be removed in the next major version of jshint but are as-yet required
for the repo so that it passes.
Change-Id: I2a780f655010f2231ab2ab93c40b34943828b4df
James D. Forrester [Sun, 7 Feb 2016 01:45:42 +0000 (17:45 -0800)]
build: Bump devDependencies to latest
* grunt-contrib-copy: 0.8.1 -> 0.8.2
* grunt-jscs: 2.6.0 -> 2.7.0
* karma-qunit: 0.1.5 -> 0.1.9
Leaving grunt-contrib-jshint for a follow-up patch.
Avoiding upgrading qunitjs again due to incompatibility of recent versions.
Change-Id: Ie4d2f63c3ec247f1bad26ca5d954362210394618
Alex Monk [Fri, 5 Feb 2016 02:17:43 +0000 (02:17 +0000)]
Move EditPage robot policy out into EditAction
So that it's default even when CustomEditor is used
Bug: T126145
Change-Id: If49d1dc39fb6ad9a2a0fa507ea9a0ccdc1088c59
Bryan Davis [Tue, 2 Feb 2016 16:37:27 +0000 (09:37 -0700)]
Update session log messages
* Use PSR-3 templates and context where applicable
* Add log coverage for exceptional events
Bug: T125452
Change-Id: I8f96fa1c5766c739a21219abcae2dbb76de53e2a
Gergő Tisza [Sat, 6 Feb 2016 21:04:34 +0000 (13:04 -0800)]
Expand documentation of User::isSafeToLoad
Change-Id: I7f018b7f7219e7a17a3059b3ec9cbdf1c2c1e043
umherirrender [Sat, 6 Feb 2016 22:08:26 +0000 (23:08 +0100)]
Get file from WikiFilePage, instead of ImagePage
Change-Id: Ib28354fde2dc084ae9aff8cfa960785bb2012933
umherirrender [Sat, 6 Feb 2016 21:01:08 +0000 (22:01 +0100)]
Use class for toggle links on Special:Log
The toogle links All, None, Invert on Special:Log are shown at top and
at bottom, but using the same id, which make the page invalid and the
second link not working. Change to class.
Follow up: I92141a7079fc7fcd7152ef418d82f4f7969b163b
Change-Id: I1107b320efe5d3b63ea091ea986e35158d24c098
Paladox [Sat, 6 Feb 2016 18:14:16 +0000 (18:14 +0000)]
Update oyejorge/less.php to 1.7.0.10
Depends-On: Ifeec0870df1e0504be795dfb32be5ecd795325d5
Change-Id: Ibf17232bb51563360ff47b42d4c0f9cb0d5f8b18
Florian [Sat, 6 Feb 2016 17:07:08 +0000 (18:07 +0100)]
Use semver for wgVersion alpha versions
Currently, the "alpha version" of MediaWiki is the only version, that doesn't
follow semantic versioning (1.27alpha), wmf branches are named according to the
sember convention (e.g. 1.27.0-wmf.1) and releases, too (e.g. 1.26.0). Change the
alpha version naming to follow semver, too:
1.27alpha -> 1.27.0-alpha
Change-Id: I026825c688e2eaed104ed2d0ec206b5a897a3527
Geoffrey Mon [Wed, 30 Dec 2015 04:53:34 +0000 (23:53 -0500)]
Implement action=mergehistory
* New class ApiMergeHistory handles action=mergehistory
* Merge History functionality moved from SpecialMergeHistory to
MergeHistory
* SpecialMergeHistory now uses MergeHistory for actual merging
* Unit tests and i18n messages for above
Bug: T69742
Change-Id: Ic5078307dae78a2b3687e34a5d0a584988d483a1
Glaisher [Sat, 6 Feb 2016 12:33:43 +0000 (17:33 +0500)]
Special:Version: Use addModuleStyles to load mediawiki.special.version
Currently, there is a brief delay before the stylesheet is loaded so
use addModuleStyles as this is a stylesheet only module.
Change-Id: I6adfeae88dddeab427928ef800152a4e1353cbe5
Bene [Fri, 5 Feb 2016 13:40:39 +0000 (14:40 +0100)]
Allow callbacks to be passed to $wgContentHandlers
Change-Id: Icf980313a6e7fcc83f5183c450b0a824353596b8
Bartosz Dziewoński [Mon, 1 Feb 2016 18:07:03 +0000 (19:07 +0100)]
Clarify and expand messages mentioning "loss of session data"
Saying "loss of session data" in error messages is meaningless to the
user. It basically means "you might have been logged out", and is
sometimes normal (as login sessions are not stored forever).
MediaWiki gives this error when it isn't sure if it's still the same
user who started the edit, instead of just re-creating the session and
saving the page, which could potentially expose user's IP address.
Expanded 'session_fail_preview' message with this information, changed
which parts of it we bold, and updated three other messages for
consistency. Updated their documentation to refer for each other, too
(https://translatewiki.net/wiki/Template:Identical/Loss_of_session_data).
Bug: T125334
Change-Id: Ia99f39fac506855804ce5c40b0df3381d2782e48
jenkins-bot [Fri, 5 Feb 2016 20:52:05 +0000 (20:52 +0000)]
Merge "Add $wgRateLimits types ip-all and subnet-all"
Translation updater bot [Fri, 5 Feb 2016 20:28:39 +0000 (21:28 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I833de3a05f11dedaead4ace0757e37abc5d34351
jenkins-bot [Fri, 5 Feb 2016 16:46:30 +0000 (16:46 +0000)]
Merge "Add Special:UserLogin/signup to search suggestions"
Alex Monk [Fri, 5 Feb 2016 15:15:23 +0000 (15:15 +0000)]
Add Special:UserLogin/signup to search suggestions
Change-Id: I8aa1c7526f5c8d4c80b2cc649b39a30c1da3946a
jenkins-bot [Fri, 5 Feb 2016 11:44:16 +0000 (11:44 +0000)]
Merge "mediawiki.api.parse: Use formatversion=2 for API requests"
jenkins-bot [Fri, 5 Feb 2016 11:28:18 +0000 (11:28 +0000)]
Merge "mediawiki.userSuggest: Use formatversion=2 for API request"
jenkins-bot [Fri, 5 Feb 2016 00:04:30 +0000 (00:04 +0000)]
Merge "mw.loader: Guard localStorage access with try/catch in mw.store.clear()"
Bryan Davis [Thu, 4 Feb 2016 16:19:25 +0000 (09:19 -0700)]
mw.loader: Guard localStorage access with try/catch in mw.store.clear()
We use try/catch appropriately in other places but it was missing
in mw.store.clear().
If the user agent has localStorage disabled an exception will be thrown
for any operation that touches the object.
Change-Id: Idcd0e4c8ba9b0843b2ddcad0ae1781e4915e04fe
jenkins-bot [Thu, 4 Feb 2016 23:06:11 +0000 (23:06 +0000)]
Merge "mediawiki.jqueryMsg.test: Call async() before each async test step"
jenkins-bot [Thu, 4 Feb 2016 22:01:33 +0000 (22:01 +0000)]
Merge "Add logic for "tags" in ApiBase"
Translation updater bot [Thu, 4 Feb 2016 20:57:23 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ic35ee8090408696e1b609bae1289aa0036462333
Timo Tijhof [Thu, 4 Feb 2016 20:04:23 +0000 (21:04 +0100)]
mediawiki.Title: Fix typo "add" in documentation
Follows-up
3d14628237.
* Put @class after the description for consistency with other
classes and methods.
* Remove jscs:disable rule which was there for the illegal
@constructor use (descriptions must go before a tag, not after).
However JSDuck doesn't support descriptions before @constructor.
It supports it with all other tags, however.
It turns out, that @constructor doesn't support this because
it is deprecated and predates that feature in JSDuck. Upstream
documentation encourages authors to use @method instead.
Change-Id: Iba9fa5ae1fc8ece9ddff4aef8a3b4b59768fcaf0
jenkins-bot [Thu, 4 Feb 2016 20:50:07 +0000 (20:50 +0000)]
Merge "ForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps"
victorbarbu [Wed, 20 Jan 2016 09:51:01 +0000 (11:51 +0200)]
Add logic for "tags" in ApiBase
Bug: T97720
Change-Id: I275c516b4744e243333ec0818d2be1e5508e54a3
Thiemo Mättig [Thu, 4 Feb 2016 17:52:58 +0000 (18:52 +0100)]
mediawiki.jqueryMsg.test: Call async() before each async test step
Previously, this code ran into the problem that the timeout for dozens of
API requests was hit and the test failed.
The timeout now starts within each individual step.
Bug: T125484
Change-Id: Ia7874ccafadf93986278a241d9d308be0bc99493
jenkins-bot [Thu, 4 Feb 2016 19:24:54 +0000 (19:24 +0000)]
Merge "Page is an interface not a class"
jenkins-bot [Thu, 4 Feb 2016 19:24:50 +0000 (19:24 +0000)]
Merge "Pass function to Database::selectField in SpecialActiveusers.php"
jenkins-bot [Thu, 4 Feb 2016 18:15:55 +0000 (18:15 +0000)]
Merge "qunit: Increase individual test timeout to 60 seconds"
Jan Zerebecki [Thu, 4 Feb 2016 10:35:02 +0000 (11:35 +0100)]
qunit: Increase individual test timeout to 60 seconds
Bug: T125484
Change-Id: If4147d678fdef168d79bc2b4d0c606b8c82dc6af
Bartosz Dziewoński [Thu, 4 Feb 2016 17:14:05 +0000 (18:14 +0100)]
ForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps
'thumbnail' doesn't seem to have ever been a valid 'iiprop' value.
It's currently causing harmless warnings on every InstantCommons request.
Added in
8d1fa96578e8570a08a0cb5f7e2945f09819fbfb for unknown reasons.
Change-Id: I6286ce3ac07207c0dcfc1171084cb358b3fcecda
jenkins-bot [Thu, 4 Feb 2016 16:42:07 +0000 (16:42 +0000)]
Merge "Avoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()"
jenkins-bot [Thu, 4 Feb 2016 16:29:28 +0000 (16:29 +0000)]
Merge "When serializing Message, don't try to unstub StubUserLang"
jenkins-bot [Thu, 4 Feb 2016 16:29:20 +0000 (16:29 +0000)]
Merge "Disable automatic cache headers associated with starting a session"
Bartosz Dziewoński [Thu, 4 Feb 2016 16:01:44 +0000 (17:01 +0100)]
BitmapHandler: Implement validateParam()
Follow-up to
695a93dd3353678ae4a9038528a33a1ac03eba38.
Bug: T125804
Change-Id: Ifde40bb5d7c60dd19727f5e47041a6e676f7e3c8
jenkins-bot [Thu, 4 Feb 2016 13:17:31 +0000 (13:17 +0000)]
Merge "[debug] Remove BC code from AvroFormatter"
jenkins-bot [Thu, 4 Feb 2016 11:48:37 +0000 (11:48 +0000)]
Merge "Split ImagePage.php into separate classes"
Thomas Arrow [Wed, 3 Feb 2016 12:26:01 +0000 (12:26 +0000)]
Split ImagePage.php into separate classes
Change-Id: Id2ca94c50b75d24da4d02fe82747a7ce7edccd9f
jenkins-bot [Thu, 4 Feb 2016 06:08:07 +0000 (06:08 +0000)]
Merge "Add User::isSafeToLoad() and ParserOptions::newFromAnon()"
jenkins-bot [Thu, 4 Feb 2016 02:09:46 +0000 (02:09 +0000)]
Merge "Include completion search into SearchEngine"
jenkins-bot [Thu, 4 Feb 2016 01:28:01 +0000 (01:28 +0000)]
Merge "Change bug ID to Phabricator task ID"
wctaiwan [Thu, 4 Feb 2016 01:13:10 +0000 (20:13 -0500)]
Change bug ID to Phabricator task ID
Change-Id: I8e1fc6ed9434a331eb7c66273305576eebed3125
Bartosz Dziewoński [Thu, 4 Feb 2016 01:10:58 +0000 (01:10 +0000)]
Merge "Revert "Preprocessor: Don't allow unclosed extension tags (matching until end of input)""
Legoktm [Thu, 4 Feb 2016 00:38:35 +0000 (00:38 +0000)]
Revert "Preprocessor: Don't allow unclosed extension tags (matching until end of input)"
This reverts commit
f51d0d9a819f8f1c181350ced2f015ce97985fcc.
Breaks templates with non-closed </noinclude> tags, which
were previously acceptable.
Bug: T125754
Change-Id: I8bafb15eefac4e1d3e727c1c84782636d8b82c2b
Stanislav Malyshev [Tue, 26 Jan 2016 21:18:27 +0000 (13:18 -0800)]
Include completion search into SearchEngine
By default it still uses PrefixSearch and supports PrefixSearchBackend
but it can be deprecated and phased out and SearchEngine extensions used
instead.
New APIs:
- SearchEngine
public function defaultPrefixSearch( $search );
public function completionSearch( $search );
public function completionSearchWithVariants( $search );
Search engines should override:
protected function completionSearchBackend( $search );
Bug: T121430
Change-Id: Ie78649591dff94d21b72fad8e4e5eab010a461df
Bartosz Dziewoński [Mon, 1 Feb 2016 22:38:37 +0000 (23:38 +0100)]
Work around T87871 to avoid double-loading OOjs UI PHP styles
Use a <meta> tag added when enabling OOUI, and a skipFunction that
looks for it, to avoid double-loading the modules: oojs-ui.styles,
oojs-ui.styles.icons, oojs-ui.styles.indicators, oojs-ui.styles.textures.
This saves us loading of around 200K of CSS (20K when gzipped) on pages
that both use OOjs UI PHP server-side and load OOjs UI client-side.
(For example, all MediaWiki special pages using OOUIHTMLForm.)
Interesting caveat: this causes the aforementioned modules to no
longer appear in the output of `mw.loader.inspect()` on such pages.
Bug: T125292
Change-Id: Ia7e2256cd239841e1f78c4a6bf666dd939c0d2c7
Brad Jorsch [Wed, 3 Feb 2016 17:33:25 +0000 (12:33 -0500)]
Avoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()
Autocreation needs to check if the current IP is blocked from account
creation.
There are two ways we could go here: treat $wgUser as logged-out, or
assume it will eventually be the user name specified by the session.
This patch chooses the former, by the logic that at this early point in
the setup process we don't have a logged-in user determined yet so no
username can really be considered to match the logged-in user.
Bug: T124367
Change-Id: I631bec85291b57f07c378cf6554a8f06cf3fb00c
Brad Jorsch [Wed, 3 Feb 2016 20:41:00 +0000 (15:41 -0500)]
Add User::isSafeToLoad() and ParserOptions::newFromAnon()
Useful for avoiding "User::loadFromSession called before the end of
Setup.php".
Bug: T124367
Change-Id: I0b018a623fc833ca95d249ee21667a8f5690d50e
Brad Jorsch [Mon, 1 Feb 2016 21:59:27 +0000 (16:59 -0500)]
Introduce User::INVALID_TOKEN
To avoid having to have SessionManager try to reset sessions on every
request, we set the user_token to a special value. When that value is
present, User::getToken() returns a different value every time (so
existing checks will fail) and User::setToken() refuses to alter it.
Bug: T124414
Change-Id: Ie4c84ce993e40a081288cf5a543f8ba99f98806a
Bryan Davis [Mon, 1 Feb 2016 04:39:10 +0000 (21:39 -0700)]
Disable automatic cache headers associated with starting a session
Follow up to
7491b52. The 'private, must-revalidate' argument to
session_cache_limiter() does not match any expected values for the
function. This results in the PHP runtime treating it like the
documented empty string argument which completely disables the automatic
addition of cache related headers. Change the implementation to use the
empty string argument explicitly rather than continuing to rely on
the undocumented and potentially confusing existing behavior.
session_cache_limiter( '' ) is called unconditionally in
MediaWiki\Session\PHPSessionHandler::install(). This is safe now that it
is understood that we are disabling the setting of the automatic
headers.
Bug: T124510
Change-Id: I63164f8b7a408e370ff01dead42be27a0135dd35
Brad Jorsch [Sat, 30 Jan 2016 01:09:57 +0000 (20:09 -0500)]
Clean up after Ie161e0f
Ie161e0f was done in a hurry, and so didn't do things in the best ways.
This introduces a new "CachedBagOStuff" that transparently handles all
the logic that had been copy-pasted all over in Ie161e0f.
The differences between CachedBagOStuff and MultiWriteBagOStuff are:
* CachedBagOStuff supports only one "backend".
* There's a flag for writes to only go to the in-memory cache.
* The in-memory cache is always updated.
* Locks go to the backend cache (with MultiWriteBagOStuff, it would wind
up going to the HashBagOStuff used for the in-memory cache).
Change-Id: Iea494729bd2e8c6c5ab8facf4c241232e31e8215
Brad Jorsch [Mon, 1 Feb 2016 20:44:03 +0000 (15:44 -0500)]
Revert "Remove SessionManager, temporarily"
This reverts commit
823db5d63dd5200d04c63da50ba6bf16f928e70b.
Change-Id: Ibb3e023e4eb6715295586dea87d0725c344a8271
Translation updater bot [Wed, 3 Feb 2016 21:44:43 +0000 (21:44 +0000)]
Merge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 3 Feb 2016 21:40:15 +0000 (22:40 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ia72df7f41e81cc99e25bcc9804c6b0bd43bfa61b
jenkins-bot [Wed, 3 Feb 2016 21:38:34 +0000 (21:38 +0000)]
Merge "resources: Load OOjs UI from its four parts"
Bartosz Dziewoński [Wed, 3 Feb 2016 18:40:31 +0000 (19:40 +0100)]
mediawiki.widgets: Remove backwards-compatibility dependency on 'mediawiki.widgets.CategorySelector'
Follow-up to
40a8367fe9cd5fc2a26f1adf8f9e208551a4d7b9.
Change-Id: I28faea785cf13d1e741ae6f746a76bd7aeeaf3eb
Bartosz Dziewoński [Mon, 1 Feb 2016 22:28:13 +0000 (23:28 +0100)]
resources: Load OOjs UI from its four parts
See the task for more details. This is a backwards-compatible change.
If your script only needs a subset of OOjs UI functionality, you can
use one of the new smaller modules instead of the old big one.
New modules:
oojs-ui-core
The core JavaScript library.
oojs-ui-widgets
Additional widgets and layouts module.
oojs-ui-toolbars
Toolbar and tools module.
oojs-ui-windows
Windows and dialogs module.
Changed modules:
oojs-ui.styles
Now correctly only loads the styles needed by OOjs UI PHP.
oojs-ui
Now just loads core+widgets+toolbars+windows as dependencies.
Using the new modules in I58799e22f9c0a2f78c1b4a02c4b7af576157883a.
Bug: T113677
Change-Id: I0a3bf8fb25fb82325705a473cebd883e20b3ab8d
addshore [Wed, 3 Feb 2016 16:22:35 +0000 (17:22 +0100)]
phpdoc @return MediaWikiTitleCodec in Title::getTitleParser
This will always return a MediaWikiTitleCodec object.
This is called in Title::secureAndSplit which expects
the method splitTitleString which is only in this
implementation and not the interface
Change-Id: Ibb6cdcf7deb6c1080e320379aa58981e9935ca33
addshore [Wed, 3 Feb 2016 15:53:07 +0000 (16:53 +0100)]
Use LinkTarget in some namespaceDupes methods
Change-Id: I230054fab8c2e2ade9f3ef00bfd820bad2842c80
Brad Jorsch [Thu, 7 May 2015 17:11:09 +0000 (13:11 -0400)]
Add Special:ApiSandbox
Like Extension:ApiSandbox, but rewritten to use OOJS-UI and to add many
long-requested features.
Bug: T89386
Bug: T92893
Bug: T98457
Bug: T98083
Bug: T89229
Bug: T66008
Bug: T50607
Bug: T47811
Bug: T38875
Bug: T36962
Bug: T34740
Change-Id: Ic42a6c5ef54b811cd63cfef2132942b27a626fe5
Depends-On: I85c0eedcd31a0e419d8055eca0d9cb1ba872ae62
Depends-On: Ic85ff4abbbcd2076ebf5cdfaa0e95e98878e2308
addshore [Wed, 3 Feb 2016 15:38:17 +0000 (16:38 +0100)]
Use LinkTarget in EmailNotification::updateWatchlistTimestamp
Change-Id: I3a59839b3ec4db42966afa1db5ad0252fafa8cb9
addshore [Wed, 3 Feb 2016 15:49:29 +0000 (16:49 +0100)]
Use LinkTarget in Revision::newFromTitle
Change-Id: Ib1c58c30106d535daa736feb17e9b9b76c1cf10e
addshore [Wed, 3 Feb 2016 15:17:38 +0000 (16:17 +0100)]
Use LinkTarget in LinkBatch::addObj
Change-Id: I132f254536a7516e878e20ad49d2f415796c4490
jenkins-bot [Wed, 3 Feb 2016 13:36:59 +0000 (13:36 +0000)]
Merge "Use LinkTarget in TitleValue only methods"
jenkins-bot [Wed, 3 Feb 2016 13:23:08 +0000 (13:23 +0000)]
Merge "Add LinkTarget interface"
Brad Jorsch [Tue, 2 Feb 2016 14:27:05 +0000 (09:27 -0500)]
Set title on context in ApiDocumentationTest
For some reason the unit testing infrastructure doesn't set one, and
that makes RequestContext warn.
Bug: T125491
Change-Id: I3e0ec0f567dd06231bca0d3d923e9d4e05ef5514
jenkins-bot [Wed, 3 Feb 2016 12:01:09 +0000 (12:01 +0000)]
Merge "Pass WikiPage objects to ParserCache"
Timo Tijhof [Fri, 22 Jan 2016 22:58:03 +0000 (22:58 +0000)]
Centralise url handling for urls to static resources
Keep in CSSMin as-is for back-compat and to ensure library remains
independent of MediaWiki.
Moved down a few lines as there is no need to compute the md5 hash when we're
returning a data URI. Previously md5_file was called twice during module builds
(once for the fallback url, and another time when producing the embedded data uri).
Applied to logo in SkinModule as example. To be applied elsewhere as needed.
Without it, fallback is current behaviour (no cache invalidation).
Bug: T99096
Change-Id: I7f38bfc1bea5c241bc4f8ec4f4b640fd65f2c04f
James D. Forrester [Tue, 2 Feb 2016 22:10:54 +0000 (14:10 -0800)]
Update OOjs UI to v0.15.2
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.2/History.md
Change-Id: I8124a726660443ce514c48182871d46e6b086a10
jenkins-bot [Tue, 2 Feb 2016 20:29:19 +0000 (20:29 +0000)]
Merge "Unroll Article::__call again"
jenkins-bot [Tue, 2 Feb 2016 20:25:34 +0000 (20:25 +0000)]
Merge "Add Blob to accepted types for uploads"
Translation updater bot [Tue, 2 Feb 2016 20:14:54 +0000 (21:14 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Idc128c366bbcbd34e7fb4e75af8400fa11bcd53e
umherirrender [Tue, 2 Feb 2016 20:12:57 +0000 (21:12 +0100)]
Pass function to Database::selectField in SpecialActiveusers.php
Change-Id: Ie58b484cb8add682c7a0c138af2c3268faf7b383