lhc/web/wiklou.git
8 years agoMerge "search: getInterwikiResults returns array of SearchResultSets"
jenkins-bot [Mon, 18 Apr 2016 07:42:05 +0000 (07:42 +0000)]
Merge "search: getInterwikiResults returns array of SearchResultSets"

8 years agoMerge "Adding param documentation for Parser::internalParse()"
jenkins-bot [Mon, 18 Apr 2016 07:30:53 +0000 (07:30 +0000)]
Merge "Adding param documentation for Parser::internalParse()"

8 years agoMerge "Remove dead code from CategoryPager"
jenkins-bot [Mon, 18 Apr 2016 07:30:48 +0000 (07:30 +0000)]
Merge "Remove dead code from CategoryPager"

8 years agoMerge "Modify documentation of select() method for Database."
jenkins-bot [Mon, 18 Apr 2016 07:30:44 +0000 (07:30 +0000)]
Merge "Modify documentation of select() method for Database."

8 years agoMerge "API: Allow subclassing ApiQueryImageInfo"
jenkins-bot [Mon, 18 Apr 2016 07:30:37 +0000 (07:30 +0000)]
Merge "API: Allow subclassing ApiQueryImageInfo"

8 years agoModify documentation of select() method for Database.
Brian Wolff [Sun, 17 Apr 2016 19:41:28 +0000 (15:41 -0400)]
Modify documentation of select() method for Database.

* Add a note in Database.php that docs are in IDatabase.php,
maybe its just me, but I didn't realize that was where the docs
are (even though in retrospect that should have been obvious) and
wasted a lot of time because I didn't realize that.
* Change references to IDatabase::tableName() in doc to
DatabaseBase::tableName(), since tableName is not in the IDatabase
interface.
* Be explicit in docs for select() about which parts are safe for
user input. I think its important to be very explicit about this.

No code changes, just doc changes.

Change-Id: I3a66477afc6a5f54855062482ef04c2966e468f6

8 years agoAPI: Allow subclassing ApiQueryImageInfo
Derk-Jan Hartman [Sun, 17 Apr 2016 15:46:07 +0000 (17:46 +0200)]
API: Allow subclassing ApiQueryImageInfo

execute() references the static self::getInfo, which therefor cannot be
overriden by the subclass ApiQueryVideoInfo. Preferably, we'd fix the
implementation to not require this subclassing, but this will make
that transition easier. Use late static binding to make sure the
subclass implementation can be used.

Change-Id: Iab2d01abb9f9b3b799123d8ee344ea139e476576

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 17 Apr 2016 19:55:56 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7228c53f7cd77d7a19248b13d66afff01cfd6396

8 years agoKill obsolete check
matejsuchanek [Fri, 15 Apr 2016 20:11:27 +0000 (22:11 +0200)]
Kill obsolete check

Was a temporary fix for T126428 and was added in
c940fa8ec1f965ea23a3eb8c2d1eeccd994c124b.

Change-Id: Iad988f69068147cdc24c8829627875274540b16e

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 16 Apr 2016 20:43:27 +0000 (22:43 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I862b3058c7538e56264257b44bc0b0bff04f1da0

8 years agoRemove dead code from CategoryPager
umherirrender [Sat, 16 Apr 2016 10:16:48 +0000 (12:16 +0200)]
Remove dead code from CategoryPager

Remove dead code about an alternate sort on Special:Categories. This
also removes the unused system messages.
To get a list of the count of categories, it is possible to use
Special:MostLinkedCategories

Change-Id: Ie41218a28cde52222809eafe2e9e92e4a4e38a2e

8 years agoMerge "Put a high max limit of 60,000 on Special:LinkSearch"
jenkins-bot [Sat, 16 Apr 2016 18:41:03 +0000 (18:41 +0000)]
Merge "Put a high max limit of 60,000 on Special:LinkSearch"

8 years agoMerge "Remove experimental MCRD class"
jenkins-bot [Sat, 16 Apr 2016 01:21:44 +0000 (01:21 +0000)]
Merge "Remove experimental MCRD class"

8 years agoMerge "Title: Throw if newFromText is given an invalid value"
jenkins-bot [Fri, 15 Apr 2016 22:55:00 +0000 (22:55 +0000)]
Merge "Title: Throw if newFromText is given an invalid value"

8 years agoRemove experimental MCRD class
Aaron Schulz [Fri, 15 Apr 2016 22:21:04 +0000 (15:21 -0700)]
Remove experimental MCRD class

Change-Id: I0282240cb325037354d22bc0eef89780084611d2

8 years agoPut a high max limit of 60,000 on Special:LinkSearch
Brian Wolff [Fri, 15 Apr 2016 21:42:21 +0000 (17:42 -0400)]
Put a high max limit of 60,000 on Special:LinkSearch

LinkSearch uses inefficient paging. Previously there was no
max limit, then it was 10,000, but people on enwiki are complaining,
so put it up to something high, like 60,000, to fix the immediate
issue.

Special page should of course be changed to use efficient paging.

Bug: T130058
Change-Id: I0c4b1ad0138571bcf286ca88bceebf86b9a095f6

8 years agoMerge "mw.Api: Replace deprecated token names by 'csrf'"
jenkins-bot [Fri, 15 Apr 2016 20:51:08 +0000 (20:51 +0000)]
Merge "mw.Api: Replace deprecated token names by 'csrf'"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 15 Apr 2016 19:57:25 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I97436ec70e5c33350f413162201ced484c5a9484

8 years agoMerge "mediawiki.special.upload: Don't fail when trying to thumbnail invalid file"
jenkins-bot [Fri, 15 Apr 2016 19:11:07 +0000 (19:11 +0000)]
Merge "mediawiki.special.upload: Don't fail when trying to thumbnail invalid file"

8 years agoMerge "mediawiki.special.upload: Don't fail when invalid title is given"
jenkins-bot [Fri, 15 Apr 2016 19:11:02 +0000 (19:11 +0000)]
Merge "mediawiki.special.upload: Don't fail when invalid title is given"

8 years agoMerge "Avoid DBPerformance log warnings in SpecialPreferences"
jenkins-bot [Fri, 15 Apr 2016 19:04:15 +0000 (19:04 +0000)]
Merge "Avoid DBPerformance log warnings in SpecialPreferences"

8 years agoMerge "mediawiki.page.ready: Load 'SearchInputWidget' too"
jenkins-bot [Fri, 15 Apr 2016 18:52:22 +0000 (18:52 +0000)]
Merge "mediawiki.page.ready: Load 'SearchInputWidget' too"

8 years agomw.Api: Replace deprecated token names by 'csrf'
Fomafix [Fri, 15 Apr 2016 15:52:42 +0000 (15:52 +0000)]
mw.Api: Replace deprecated token names by 'csrf'

Since 65077ede the deprecated token names like 'edit' or 'options' generate
a warning.

Change-Id: I1587f66bd9e5cdb8cc24cf68eced1d28ae22f44e

8 years agoAvoid DBPerformance log warnings in SpecialPreferences
Aaron Schulz [Thu, 14 Apr 2016 23:22:54 +0000 (16:22 -0700)]
Avoid DBPerformance log warnings in SpecialPreferences

Preference views do not need the master DB.

Change-Id: Id0c3fc6d453b6af0eca8450107da6d554c822347

8 years agomediawiki.special.upload: Don't fail when trying to thumbnail invalid file
Bartosz Dziewoński [Thu, 14 Apr 2016 21:16:22 +0000 (23:16 +0200)]
mediawiki.special.upload: Don't fail when trying to thumbnail invalid file

The thumbnail spinner would spin forever if we never got a 'load' event
on the image.

Bug: T132242
Change-Id: I1c68ed185b58950c3648f56e07144bb29a8bed56

8 years agomediawiki.special.upload: Don't fail when invalid title is given
Bartosz Dziewoński [Mon, 4 Apr 2016 14:37:58 +0000 (16:37 +0200)]
mediawiki.special.upload: Don't fail when invalid title is given

If an invalid title was given (for example, anything including '['),
the destination title check would throw an exception and a spinner
would spin forever.

Change-Id: If6f02051383675817a0e2ad406dd71cab33fb5bf

8 years agoMerge "SpecialRunJobs: delegate error handling to MWExceptionHandler"
jenkins-bot [Thu, 14 Apr 2016 21:13:44 +0000 (21:13 +0000)]
Merge "SpecialRunJobs: delegate error handling to MWExceptionHandler"

8 years agoMerge "Fix UID test and make debugging easier"
jenkins-bot [Thu, 14 Apr 2016 20:43:58 +0000 (20:43 +0000)]
Merge "Fix UID test and make debugging easier"

8 years agoSpecialRunJobs: delegate error handling to MWExceptionHandler
Bryan Davis [Thu, 14 Apr 2016 20:08:38 +0000 (14:08 -0600)]
SpecialRunJobs: delegate error handling to MWExceptionHandler

Make the custom error handler that is installed to suppress Cookie
header errors delegate unhandled errors to the default MediaWiki error
handler. This will preserve fatal error logging for errors raised by
jobs.

Bug: T89169
Change-Id: I52ef544fa18351bf310b04b17ab4e0239020fe20

8 years agoAdding param documentation for Parser::internalParse()
Kaldari [Thu, 14 Apr 2016 20:01:08 +0000 (14:01 -0600)]
Adding param documentation for Parser::internalParse()

Change-Id: Id0adeff2c2fa940205f4b7692d27b45e3466be79

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 14 Apr 2016 19:58:54 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7264e3c32d5a088999af65c1e597a2ed6a400e27

8 years agoMerge "Follow-up Idb1202579: Add special-characters-group-greekextended to RL module"
jenkins-bot [Thu, 14 Apr 2016 19:12:07 +0000 (19:12 +0000)]
Merge "Follow-up Idb1202579: Add special-characters-group-greekextended to RL module"

8 years agoFollow-up Idb1202579: Add special-characters-group-greekextended to RL module
Ed Sanders [Thu, 14 Apr 2016 18:48:54 +0000 (19:48 +0100)]
Follow-up Idb1202579: Add special-characters-group-greekextended to RL module

Bug: T130535
Change-Id: I3e26d08a34283eaafe129dbef0944ea10c086162

8 years agosearch: getInterwikiResults returns array of SearchResultSets
Erik Bernhardson [Thu, 14 Apr 2016 16:04:12 +0000 (09:04 -0700)]
search: getInterwikiResults returns array of SearchResultSets

This function was incorrectly annotated. We can clearly see from the
code that uses it, such as in SpecialSearch, that this is an array of
SearchResultSet objects.

Bug: T132625
Change-Id: I4af07d3c9a9b08fd1fa438ddb6b781f78472b26c

8 years agomediawiki.page.ready: Load 'SearchInputWidget' too
Bartosz Dziewoński [Thu, 14 Apr 2016 16:03:08 +0000 (18:03 +0200)]
mediawiki.page.ready: Load 'SearchInputWidget' too

Bug: T132656
Change-Id: I66601ebad2e64f07536f1a3d77187a7c8ac5b524

8 years agoRemove unused import in WatchedItemStoreUnitTest
Leszek Manicki [Thu, 14 Apr 2016 15:28:44 +0000 (17:28 +0200)]
Remove unused import in WatchedItemStoreUnitTest

Change-Id: I56abf221e6e601ad0bceaae1a15eb8f1097f5baa

8 years agoMerge "Use WatchedItemStore for SP:RC watchers count"
jenkins-bot [Thu, 14 Apr 2016 14:38:23 +0000 (14:38 +0000)]
Merge "Use WatchedItemStore for SP:RC watchers count"

8 years agoMerge "CatWatch don't show the number of pages transcluded"
jenkins-bot [Thu, 14 Apr 2016 14:10:12 +0000 (14:10 +0000)]
Merge "CatWatch don't show the number of pages transcluded"

8 years agoUse WatchedItemStore for SP:RC watchers count
addshore [Thu, 14 Apr 2016 08:15:18 +0000 (09:15 +0100)]
Use WatchedItemStore for SP:RC watchers count

Bug: T132568
Change-Id: Ic6a0ee77cb767c6f8e4a8d359feb0405c9a990d1

8 years agoCatWatch don't show the number of pages transcluded
addshore [Sat, 2 Apr 2016 16:06:40 +0000 (19:06 +0300)]
CatWatch don't show the number of pages transcluded

Providing the perfectly correct number of pages
that have acctually been added to or removed from a
category is extermly hard.

Rather than providing data that is most likely wrong
and a bit useless ONLY provide a link to Special:WhatLinksHere.

This touches on the following bugs and may mean that
some of them don't need to be thought about any further.

Bug: T126855
Bug: T126407
Bug: T126139
Change-Id: Ida06d822d1955091595c17c9c6c2968a40a93bcd

8 years agoAllow description text caching for ForeignDBFile
Aaron Schulz [Wed, 13 Apr 2016 17:54:28 +0000 (10:54 -0700)]
Allow description text caching for ForeignDBFile

A large amount of real time is spent in fetching Commons
descriptions pages from wikipedias, according to xenon
flame graphs.

Change-Id: I3935bf8bf23da58b734f897d7a1979e9b2f7e5c8

8 years agoMerge "Add a rewind function to SearchResultSet"
jenkins-bot [Thu, 14 Apr 2016 00:00:18 +0000 (00:00 +0000)]
Merge "Add a rewind function to SearchResultSet"

8 years agoAdd a rewind function to SearchResultSet
Erik Bernhardson [Wed, 13 Apr 2016 19:21:54 +0000 (12:21 -0700)]
Add a rewind function to SearchResultSet

This is implemented in CirrusSearch so the result set can be looped
through multiple times. In general having a rewind function on any
iterator is probably a good idea, so pushing it into the upstream
interface.

Change-Id: Iaac9c11d8742288610011a2a0f6282944d35d5f3

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 Apr 2016 19:53:57 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If98c4a1a477e70076aa3ebf8e12a64b5b111cafc

8 years agoMerge "mediawiki.api: Log warning when requesting legacy token types"
jenkins-bot [Wed, 13 Apr 2016 19:51:27 +0000 (19:51 +0000)]
Merge "mediawiki.api: Log warning when requesting legacy token types"

8 years agoRevert "Hack IEUrlExtension::haveUndecodedRequestUri() to always return true"
Ori.livneh [Wed, 13 Apr 2016 19:49:39 +0000 (19:49 +0000)]
Revert "Hack IEUrlExtension::haveUndecodedRequestUri() to always return true"

This reverts commit 30c5c55bd28f2fe35867286b73100f42f829c448.

Change-Id: I219ae8db4f730f6ff19e395976ab08d7b9cfc50c

8 years agoHack IEUrlExtension::haveUndecodedRequestUri() to always return true
Ori Livneh [Wed, 13 Apr 2016 19:44:47 +0000 (12:44 -0700)]
Hack IEUrlExtension::haveUndecodedRequestUri() to always return true

Interacting badly with I1f108eb74. Will revert this shortly.

Change-Id: I58259aa7ccf00a07d19db6e6e23df48f0b78103c

8 years agomediawiki.api: Log warning when requesting legacy token types
Ricordisamoa [Tue, 15 Mar 2016 15:53:05 +0000 (16:53 +0100)]
mediawiki.api: Log warning when requesting legacy token types

Change-Id: Ia2c795a95b58f62f4687501a5537e5890d90144e

8 years agoMerge "Track which web request created a job"
jenkins-bot [Wed, 13 Apr 2016 18:06:38 +0000 (18:06 +0000)]
Merge "Track which web request created a job"

8 years agoTrack which web request created a job
Erik Bernhardson [Mon, 11 Apr 2016 21:00:43 +0000 (14:00 -0700)]
Track which web request created a job

We currently push a request id into structured logging (monolog/
logstash) to allow seeing all logs that were triggered by the same
request. This extends that to pass the id through jobs so jobs triggered
by a web request also share the same id and can be tracked together.
This web request id will follow jobs both directly created by a request,
and jobs created by those jobs.

This should give us some more visibility when debugging into what
started a particular job, and if a large number of jobs blowing up the
job queue are somehow related.

Change-Id: Iedbd031e6e9bb18fd6f7b923c8c305102255ab4b

8 years agoresourceloader: Implement modern module loading (2/2)
jdlrobson [Fri, 22 Jan 2016 19:29:28 +0000 (11:29 -0800)]
resourceloader: Implement modern module loading (2/2)

* Send 'module' and 'require' parameters to module closures.
  This depends on Ia925844cc22f143 being deployed one cycle earlier.
* Patch Moment and OOjs to ensure these libraries continue to expose
  their module as globals as well. AMD/UMD-compatible libraries
  only expose a global *OR* an export, not both. We need both
  for back-compat.
* Update pluralRuleParser to make use of module export to allow
  usage via require().

To test, check out the patch and run:
> mw.loader.load('moment');
> mw.loader.require('moment')()
> mw.loader.require('moment')('2011-04-01').fromNow()

Bug: T108655
Change-Id: Idbd054880ee70d659ec760aef8fcb38d0704a394

8 years agoMerge "Use english messages for background use of Status::getWikiText"
jenkins-bot [Wed, 13 Apr 2016 14:03:56 +0000 (14:03 +0000)]
Merge "Use english messages for background use of Status::getWikiText"

8 years agoSwitch to external HtmlFormatter
Max Semenik [Tue, 12 Apr 2016 20:20:20 +0000 (13:20 -0700)]
Switch to external HtmlFormatter

wikimedia/html-formatter is already present in mediawiki/vendor
as of 3954ca36ce3cbedc76c1763ad2694320c1327ce6.

Bug: T125001
Change-Id: Ie98096e5e3d325cde583bc66b21b8b41f2bba8b2

8 years agoMerge "Convert File::getDescriptionText() to getWithSetCallback()"
jenkins-bot [Wed, 13 Apr 2016 00:24:49 +0000 (00:24 +0000)]
Merge "Convert File::getDescriptionText() to getWithSetCallback()"

8 years agoTitle: Throw if newFromText is given an invalid value
Timo Tijhof [Wed, 4 Nov 2015 01:20:51 +0000 (01:20 +0000)]
Title: Throw if newFromText is given an invalid value

Follows-up 448c7ea03a372ded2f156bcbec, Ic85d27d.

* Removes the logger added in 448c7ea03a.
* Turn the warning into an exception. This was difficult previously
  because non-string values were common. However most of them were
  all null. Cases of other primitives (type object already throws)
  have been fixed.

Bug: T76305
Change-Id: I62fe3f700d94168ca35c833410171b1c48e6c4f3

8 years agoConvert File::getDescriptionText() to getWithSetCallback()
Aaron Schulz [Tue, 12 Apr 2016 23:21:52 +0000 (16:21 -0700)]
Convert File::getDescriptionText() to getWithSetCallback()

Change-Id: Ia27d6fc851598162367ad6e749feb6d76f2569bc

8 years agoMerge "OOjs UI: Apply texfield -> textfield typo fix on the library build"
jenkins-bot [Tue, 12 Apr 2016 23:14:05 +0000 (23:14 +0000)]
Merge "OOjs UI: Apply texfield -> textfield typo fix on the library build"

8 years agoOOjs UI: Apply texfield -> textfield typo fix on the library build
James D. Forrester [Tue, 12 Apr 2016 22:58:39 +0000 (15:58 -0700)]
OOjs UI: Apply texfield -> textfield typo fix on the library build

Broken in I7212e07, this was fixed in I7922121 which will be part of
OOjs UI v0.16.6 in a couple of weeks' time. For now, let's apply it
as a local patch to unbreak the Search form. Also, whoops.

Change-Id: Ie882ae6ee823d6cbcfc899e336c1170ef6f9f092

8 years agoMerge "Bump grunt to 1.0.1, remove grunt-cli"
jenkins-bot [Tue, 12 Apr 2016 22:52:21 +0000 (22:52 +0000)]
Merge "Bump grunt to 1.0.1, remove grunt-cli"

8 years agoMerge "More FSFile docs"
jenkins-bot [Tue, 12 Apr 2016 22:41:54 +0000 (22:41 +0000)]
Merge "More FSFile docs"

8 years agoMerge "filebackend: Make resyncFiles() easier to use"
jenkins-bot [Tue, 12 Apr 2016 21:28:06 +0000 (21:28 +0000)]
Merge "filebackend: Make resyncFiles() easier to use"

8 years agoMerge "virtualrest: Small doc fix"
jenkins-bot [Tue, 12 Apr 2016 21:22:26 +0000 (21:22 +0000)]
Merge "virtualrest: Small doc fix"

8 years agoMerge "Revert "Measure commitMasterChanges() run time""
jenkins-bot [Tue, 12 Apr 2016 21:18:56 +0000 (21:18 +0000)]
Merge "Revert "Measure commitMasterChanges() run time""

8 years agofilebackend: Make resyncFiles() easier to use
Aaron Schulz [Tue, 12 Apr 2016 10:29:52 +0000 (03:29 -0700)]
filebackend: Make resyncFiles() easier to use

Pass in the resync mode as a flag instead of using
the object instance.

Change-Id: I2da661a65afd712403db936b6e31fba8e8069096

8 years agoMore FSFile docs
Aaron Schulz [Tue, 5 Apr 2016 19:28:21 +0000 (12:28 -0700)]
More FSFile docs

Change-Id: I1ca3e0bc9d5db4ca043f313fb15a780ae102c50a

8 years agovirtualrest: Small doc fix
Aaron Schulz [Tue, 12 Apr 2016 20:53:36 +0000 (13:53 -0700)]
virtualrest: Small doc fix

Change-Id: Ie162eb88b4afc492b10c75f00b9725767e21ffeb

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 Apr 2016 20:15:08 +0000 (22:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I95fb9e364f3268eddab39b9abe4c68c62a1ec11a

8 years agoMerge "Don't report image cache hits / misses"
Ori Livneh [Tue, 12 Apr 2016 19:24:42 +0000 (19:24 +0000)]
Merge "Don't report image cache hits / misses"

8 years agoRevert "Measure commitMasterChanges() run time"
Ori.livneh [Tue, 12 Apr 2016 18:48:25 +0000 (18:48 +0000)]
Revert "Measure commitMasterChanges() run time"

This reverts commit efb441883937. This is the biggest metric
by statsd traffic volume on the Wikimedia cluster. Please re-introduce this
only with sampling.

Bug: T101141
Change-Id: I7bc3b3aaa98dcefe1a80a4f458a83232c29a27ea

8 years agoMerge "Do not validate relevant user name"
jenkins-bot [Tue, 12 Apr 2016 18:58:18 +0000 (18:58 +0000)]
Merge "Do not validate relevant user name"

8 years agoDon't report image cache hits / misses
Ori Livneh [Tue, 12 Apr 2016 18:30:21 +0000 (11:30 -0700)]
Don't report image cache hits / misses

This single metric is responsible for a substantial proportion of overall
statsd traffic on the Wikimedia cluster, per the task cited below. Nobody is
closely monitoring this statistic. We can reintroduce it with sampling at a
later date if it is deemed to be useful.

Bug: T101141
Change-Id: I6457cb91d527ce42c0918ac4e80613e6b59061ac

8 years agoUse english messages for background use of Status::getWikiText
umherirrender [Sun, 10 Apr 2016 12:12:43 +0000 (14:12 +0200)]
Use english messages for background use of Status::getWikiText

Status::getWikiText is used for internal logging, api error messages and
maintenance scripts. All this places are usually in english, so pass an
english language to getWikiText.

Change-Id: I3010fca8eb5740a3a851c55a8b12e171714c78f7

8 years agoMerge "Add preference for watching uploaded files"
jenkins-bot [Tue, 12 Apr 2016 17:29:29 +0000 (17:29 +0000)]
Merge "Add preference for watching uploaded files"

8 years agoFix core DB data in unit testing
Brad Jorsch [Mon, 11 Apr 2016 17:36:38 +0000 (13:36 -0400)]
Fix core DB data in unit testing

Iec4ed4c8 made it so addCoreDBData() only gets called once. Which is
nice, except for the fact that it means any test that puts
'user_groups' into $this->tablesUsed is going to cause UTSysop to no
longer be a sysop, so any later test that expects it to be one is going
to mysteriously fail.

The fix is to make resetDB() actually clear out the 'user' table when
requested, but then to re-call addCoreDBData() so UTSysop is still
there.

This might break extension tests if they're relying on the 'user' table
never being cleared even if it's specified in $this->tablesUsed, but
hopefully that's not often the case.

Bug: T132411
Change-Id: If251739fd486544f54a0c07edcc24aeef0998342
Depends-On: I0546a4f18e0751d209b6b7c6cd42973f25828313
Depends-On: I4924ae941b3844b39dd3f44c6986c3bf29b0d62a

8 years agoMerge "Reduce code duplication in MessageCache"
jenkins-bot [Tue, 12 Apr 2016 10:33:13 +0000 (10:33 +0000)]
Merge "Reduce code duplication in MessageCache"

8 years agoReduce code duplication in MessageCache
Adrian Heine [Thu, 7 Apr 2016 09:56:06 +0000 (11:56 +0200)]
Reduce code duplication in MessageCache

Change-Id: I3432958c8f81b7a33079b7933e85b87ced7363fa

8 years agoFlag triggerOpportunisticLinksUpdate() behind $wgMiserMode
Aaron Schulz [Mon, 11 Apr 2016 21:49:27 +0000 (14:49 -0700)]
Flag triggerOpportunisticLinksUpdate() behind $wgMiserMode

This has caused job flood or DB load problems too often.

Bug: T132318
Change-Id: Ieeaf047e748bdfb980d4d5511c22890bd6f28c67

8 years agoCache first-letter data in APC, if available
Ori Livneh [Mon, 11 Apr 2016 23:41:57 +0000 (16:41 -0700)]
Cache first-letter data in APC, if available

I noticed that `frwiki:first-letters:fr:fr:4.8.1.1` was at the very top of keys
sorted by bandwidth (that is, reqs/sec * size) on one of the memcache servers
on WMF prod.

The data takes ~60 - 80ms to compute, in case of a cache miss. That's not
enough to justify using a tiered cache abstraction here, IMO.

Change-Id: If81ce8f86f2c378565f1f6a0dd2c04dee825c4e9

8 years agoMerge "Convert Special:Search input to OOUI"
jenkins-bot [Mon, 11 Apr 2016 22:56:29 +0000 (22:56 +0000)]
Merge "Convert Special:Search input to OOUI"

8 years agoIncrease triggerOpportunisticLinksUpdate() backoff TTL
Aaron Schulz [Mon, 11 Apr 2016 20:29:46 +0000 (13:29 -0700)]
Increase triggerOpportunisticLinksUpdate() backoff TTL

Make use of the expected TTL for the links to become
possible stale, instead of the hard-coded value of
60 seconds. Use a minimum of 3600.

Heavily used Commons templates, for example, lower
the parser cache TTL to 86400. Enqueuing jobs before
that time passes is a waste.

Bug: T132318
Change-Id: I9a3c088db9dd1747b8e99ccf7ec4633e7f01fe7b

8 years agoMerge "Thumbnails: allow overflow inside thumbnails"
jenkins-bot [Mon, 11 Apr 2016 21:48:35 +0000 (21:48 +0000)]
Merge "Thumbnails: allow overflow inside thumbnails"

8 years agoMerge "jquery.makeCollapsible: Don't ignore clicks on fake links without href"
jenkins-bot [Mon, 11 Apr 2016 21:20:52 +0000 (21:20 +0000)]
Merge "jquery.makeCollapsible: Don't ignore clicks on fake links without href"

8 years agoRevert "Allow reset of global services."
Catrope [Mon, 11 Apr 2016 20:37:32 +0000 (20:37 +0000)]
Revert "Allow reset of global services."

Completely breaks login.

This reverts commit 8e7a0a0912bb98a4a12375b354e23f03262bf213.

Change-Id: Ide7ab5632e987e81374c21173df6ab3998649df7

8 years agoMerge "Revert "Make WatchedItemStore use MediaWikiServices""
jenkins-bot [Mon, 11 Apr 2016 20:36:58 +0000 (20:36 +0000)]
Merge "Revert "Make WatchedItemStore use MediaWikiServices""

8 years agoRevert "Make WatchedItemStore use MediaWikiServices"
Catrope [Mon, 11 Apr 2016 20:25:47 +0000 (20:25 +0000)]
Revert "Make WatchedItemStore use MediaWikiServices"

In order to cleanly revert "Allow reset of global services"
which breaks login.

This reverts commit 99e8d45b50993113b26ced7c8bb91e44c7d908b1.

Change-Id: Iae7f7b7b7083345dd50c313ee68e2e814f130f1a

8 years agoMerge "Fix RebuildLocalisationCache bug from MediaWikiServices"
jenkins-bot [Mon, 11 Apr 2016 20:14:19 +0000 (20:14 +0000)]
Merge "Fix RebuildLocalisationCache bug from MediaWikiServices"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 11 Apr 2016 19:57:01 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I065f082606ccb1d6df353f503ee8f393d8d6466b

8 years agoFix RebuildLocalisationCache bug from MediaWikiServices
Bryan Davis [Mon, 11 Apr 2016 19:11:03 +0000 (13:11 -0600)]
Fix RebuildLocalisationCache bug from MediaWikiServices

Revert changes to rebuildLocalisationCache.php introduced in Ie98bf5a.
The forked children do not need separate service connections and the
reset process fails due to MW_SERVICE_BOOTSTRAP_COMPLETE being defined.

Bug: T132370
Change-Id: I0d7ddcd66e7c6945fabd91fea29a48805bf14793

8 years agoMerge "Add templateOverridesBySection to multi LBFactory"
jenkins-bot [Mon, 11 Apr 2016 18:39:36 +0000 (18:39 +0000)]
Merge "Add templateOverridesBySection to multi LBFactory"

8 years agoMerge "Normalize `input[type="search"]`"
jenkins-bot [Mon, 11 Apr 2016 17:45:49 +0000 (17:45 +0000)]
Merge "Normalize `input[type="search"]`"

8 years agoMerge "RightsLogFormatter: Use DB key to generate foreign user link"
jenkins-bot [Mon, 11 Apr 2016 16:41:18 +0000 (16:41 +0000)]
Merge "RightsLogFormatter: Use DB key to generate foreign user link"

8 years agoMerge "Finish stash uploads with upload dialog"
jenkins-bot [Mon, 11 Apr 2016 16:34:12 +0000 (16:34 +0000)]
Merge "Finish stash uploads with upload dialog"

8 years agoRun generateLocalAutoload.php
Brad Jorsch [Mon, 11 Apr 2016 15:50:42 +0000 (11:50 -0400)]
Run generateLocalAutoload.php

Ie98bf5af5 was apparently done by hand.

Change-Id: I323391340dbcc2f25bc849bbbb489142e79bb5ed

8 years agoMake WatchedItemStore use MediaWikiServices
addshore [Wed, 6 Apr 2016 10:46:50 +0000 (11:46 +0100)]
Make WatchedItemStore use MediaWikiServices

Change-Id: I5c8c1a652a35e055d8d65753a60c0d1684e1c37d

8 years agoAllow reset of global services.
daniel [Mon, 12 Oct 2015 08:05:45 +0000 (10:05 +0200)]
Allow reset of global services.

This change provides a mechanism to reset global service instances
in an orderly manner. There are three use cases for this:

* the installation process
* forking processes
* integration tests (which must of the existing phpunit tests are)

Depends-On: I5d638ad415fc3840186a0beaa09ac02ea688539b
Change-Id: Ie98bf5af59208f186dba59a9e971c72ea0b63e69

8 years agoAdd missing use MWException to SessionManager
addshore [Mon, 11 Apr 2016 12:34:20 +0000 (13:34 +0100)]
Add missing use MWException to SessionManager

Change-Id: I098e719cd888400191438bb0c4deeaaff1aa32dd

8 years agoThumbnails: allow overflow inside thumbnails
Derk-Jan Hartman [Mon, 11 Apr 2016 11:05:14 +0000 (13:05 +0200)]
Thumbnails: allow overflow inside thumbnails

overflow:hidden on the thumbnail has been in place like this for a
long time. One of the primary reasons was for long sentences in the
thumbcaption. For that, modern browsers now support word-wrap.
I know of no good reasons why overflow would have to apply to the
rest of the frame. Therfor moved to thumbcaption only, and added
word-wrap.

Bug: T132306
Change-Id: I1953683fa2a6d22ed82bac1acd37e5cb12636381

8 years agoMerge "Swap exif-pixelydimension and exif-pixelxdimension messages"
jenkins-bot [Mon, 11 Apr 2016 01:57:32 +0000 (01:57 +0000)]
Merge "Swap exif-pixelydimension and exif-pixelxdimension messages"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 10 Apr 2016 17:14:49 +0000 (19:14 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I01a967bb1fc77fa9a4f8dd9c8bab4e238b682cd5

8 years agoMerge "User.php: Update 'setEmailWithConfirmation' for notification email"
jenkins-bot [Sun, 10 Apr 2016 05:30:11 +0000 (05:30 +0000)]
Merge "User.php: Update 'setEmailWithConfirmation' for notification email"