lhc/web/wiklou.git
6 years agoMerge "Do not output invalid links for deleted names on Special:Contributions"
jenkins-bot [Mon, 29 May 2017 20:03:00 +0000 (20:03 +0000)]
Merge "Do not output invalid links for deleted names on Special:Contributions"

6 years agoEditPage: Fix passing the save/publish button label to other messages
Bartosz Dziewoński [Mon, 29 May 2017 18:46:24 +0000 (20:46 +0200)]
EditPage: Fix passing the save/publish button label to other messages

We were passing the message key, instead of the message text.
Follow-up to 44f596231397eb9ea2a5fe345c79ae952d6a1247.

Bug: T166478
Change-Id: Iaf33b0e6fba71ebf1130fc067210ed49c1b06011

6 years agoUse PHP DateInputWidget in Contribs and use for range filtering
Geoffrey Mon [Mon, 12 Dec 2016 14:26:15 +0000 (09:26 -0500)]
Use PHP DateInputWidget in Contribs and use for range filtering

* Add two DateInputWidgets to Special:Contributions, one for start and
  one for end
** If start input is empty but end input is not, display edits up to end
   input, and vice versa
** If both inputs are specified, display edits between the two dates
** If both inputs are empty, no date range is used
* Legacy options (year=/month=) are converted to use for the end
  timestamp, so URLs with them should still work.
* Unit tests!

Bug: T120733
Change-Id: Id15f2b2ce2954fe98dfbbb7b0e86c0e4e5713f5e

6 years agomw.widgets.DateInputWidget: Remove accidental 'user-select' on PHP widget's input
Bartosz Dziewoński [Mon, 29 May 2017 16:22:33 +0000 (18:22 +0200)]
mw.widgets.DateInputWidget: Remove accidental 'user-select' on PHP widget's input

This is only meant to apply to the JS widget's handle.

Also moved another block of CSS only meant to apply to the JS widget.
This wasn't causing any actual issues though.

Bug: T166416
Change-Id: I6e58a38a1d5a8fb4b581734b02cc4f12640b4a75

6 years agoMerge "Making the default toggle look clickable again"
jenkins-bot [Mon, 29 May 2017 15:44:50 +0000 (15:44 +0000)]
Merge "Making the default toggle look clickable again"

6 years agoMerge "ImagePage: Do not parse message 'imgmultipageprev'"
jenkins-bot [Mon, 29 May 2017 15:23:11 +0000 (15:23 +0000)]
Merge "ImagePage: Do not parse message 'imgmultipageprev'"

6 years agoMerge "Return 400 on invalid CSP reports"
jenkins-bot [Mon, 29 May 2017 14:50:48 +0000 (14:50 +0000)]
Merge "Return 400 on invalid CSP reports"

6 years agoImagePage: Do not parse message 'imgmultipageprev'
Bartosz Dziewoński [Mon, 29 May 2017 13:22:03 +0000 (15:22 +0200)]
ImagePage: Do not parse message 'imgmultipageprev'

This message is used as alt text for an image thumbnail, and so it
can't contain HTML tags anyway. This matches the 'imgmultipagenext'
message now. (This inconsistency has been present ever since the
feature was introduced in 2006: 7f7e79022bfd421e49084b089e74c7a16b77bc03.)

Due to using OutputPage::parse() instead of Message::parse(), an
incorrect `<div class="mw-parser-output">` wrapper was also being added.

Bug: T166508
Change-Id: I092887cc91e2c800685d4e55177aed814bb3fce9

6 years agoMerge "Make running Selenium tests using Sauce Labs easy"
jenkins-bot [Mon, 29 May 2017 10:54:40 +0000 (10:54 +0000)]
Merge "Make running Selenium tests using Sauce Labs easy"

6 years agoRCFilters: Hide server-side 'empty results' message
Moriel Schottlender [Mon, 29 May 2017 09:49:17 +0000 (12:49 +0300)]
RCFilters: Hide server-side 'empty results' message

RCFilters uses its own empty-results message that also relates to
the reason of why the results are empty (in case of conflicts, etc).
We want to make sure the server-side message is hidden and gone
while we load, and manage the empty-results message ourselves.

Bug: T163577
Change-Id: I1d0f07068653f369dea181f5c4f9964fd6d7cd58

6 years agoRCFilters UI: Make monobook override of the 'checkmark' more specific
Moriel Schottlender [Mon, 29 May 2017 08:22:40 +0000 (11:22 +0300)]
RCFilters UI: Make monobook override of the 'checkmark' more specific

Bug: T165444
Bug: T165446
Change-Id: I6412fb84767332259955462e53bde8dffe17e905
Depends-On: Ibe4b4fc92de1a864059d9cd37168c7ef33b6d874

6 years agoMerge "RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets"
jenkins-bot [Mon, 29 May 2017 08:03:56 +0000 (08:03 +0000)]
Merge "RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets"

6 years agoMerge "Swap default page title for Special:BlankPage in Spanish"
jenkins-bot [Mon, 29 May 2017 06:57:46 +0000 (06:57 +0000)]
Merge "Swap default page title for Special:BlankPage in Spanish"

6 years agoRCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets
Moriel Schottlender [Sun, 28 May 2017 20:09:39 +0000 (23:09 +0300)]
RCFilters: Dismiss Apex' insistence to add checkmark to optionWidgets

Bug: T165446
Change-Id: I8188b34675e7e49f3603e7b7154e4e0800e94c37

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 28 May 2017 19:54:06 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id10e621f71f0522f6dcb16369cca50d95abf33dc

6 years agoRCFilters UI: Compare states instead of params when switching URL
Moriel Schottlender [Fri, 26 May 2017 20:45:09 +0000 (23:45 +0300)]
RCFilters UI: Compare states instead of params when switching URL

For empty url (initial load) and for cases where the URL is
minimized (upcoming) the method should check filter states
to recognize whether there's a difference between current and
requested URL.

Bug: T166347
Change-Id: I9dcc82ce7dbc0ad7c6cf3169cee7269234c95298

6 years agoSwap default page title for Special:BlankPage in Spanish
Jesús Martínez Novo [Sun, 28 May 2017 17:23:58 +0000 (19:23 +0200)]
Swap default page title for Special:BlankPage in Spanish

"Blanquear página" is a wrong translation in this context.
"Blanquear" is using "blank" as the verb and means "to blank a page",
but this page should translate "blank" as an adjective "this page is blank"

This was already in the list of aliases so I've swapped them so the correct
one is first and is picked as the default page name in wikis with Spanish
content language.

Change-Id: I29c2b02937878c09df09460eedbc5df697e51e34

6 years agoRCFilters: Minimize url string
Moriel Schottlender [Mon, 15 May 2017 21:43:33 +0000 (14:43 -0700)]
RCFilters: Minimize url string

In order to minimize the URL query, we use a base representation of the
parameters as if they were all '0' or '' and internally expand on it.

- Only display parameters with a value that is not empty or '0' in the
  URI. Any parameter that is missing from the URI is presumed to have
  an empty value.
- Stop pushing defaultParameters everywhere. Default parameters should
  only be considered either on load (when/if needed) or when the user
  actively requests for them.
- Minimize parameters to the URL, and expand when reading into the model.

Similar to using base filters, we can use a representation of base
parameters to make the URL small but the representation all-encompassing.

Bug: T165445
Change-Id: I1d21c38137fde51fcd561e2de24592722bf532c6

6 years agoMerge "Add fr (French) as fallback for kbp (Kabiyè)"
jenkins-bot [Sat, 27 May 2017 20:05:57 +0000 (20:05 +0000)]
Merge "Add fr (French) as fallback for kbp (Kabiyè)"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 27 May 2017 20:04:18 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I62626aff6dbf017f7fb0fa3b6d33d3cc9ae2c249

6 years agoMerge "Fix incomplete Language::getDatePreferences() documentation"
jenkins-bot [Sat, 27 May 2017 18:40:10 +0000 (18:40 +0000)]
Merge "Fix incomplete Language::getDatePreferences() documentation"

6 years agoMaking the default toggle look clickable again
Moritz Oberhauser [Sat, 27 May 2017 11:20:35 +0000 (13:20 +0200)]
Making the default toggle look clickable again

The toggle should now look same same prior to the premade toggle changes. The brackets are not part of the link, but the text inbetween. The link has no href property, so the toggle action is still triggered.

Bug: T166359
Change-Id: I38698cd66d380626728eae9b8a9da1e465b207a6

6 years agoMerge "wfIsBadImage: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:32 +0000 (03:40 +0000)]
Merge "wfIsBadImage: Avoid deprecated wfMemcKey()"

6 years agoMerge "User: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:14 +0000 (03:40 +0000)]
Merge "User: Avoid deprecated wfMemcKey()"

6 years agoMerge "parser: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 03:40:10 +0000 (03:40 +0000)]
Merge "parser: Avoid deprecated wfMemcKey()"

6 years agoMerge "LanguageConverter: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 00:16:07 +0000 (00:16 +0000)]
Merge "LanguageConverter: Avoid deprecated wfMemcKey()"

6 years agoMerge "CachingSiteStore: Avoid deprecated wfMemcKey()"
jenkins-bot [Sat, 27 May 2017 00:16:03 +0000 (00:16 +0000)]
Merge "CachingSiteStore: Avoid deprecated wfMemcKey()"

6 years agoMerge "User: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:53:00 +0000 (23:53 +0000)]
Merge "User: Avoid deprecated wfMemcKey()"

6 years agoMerge "UploadBase: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:48:29 +0000 (23:48 +0000)]
Merge "UploadBase: Avoid deprecated wfMemcKey()"

6 years agoMerge "SpecialVersion: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:07:27 +0000 (23:07 +0000)]
Merge "SpecialVersion: Avoid deprecated wfMemcKey()"

6 years agoMerge "page: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:06:19 +0000 (23:06 +0000)]
Merge "page: Avoid deprecated wfMemcKey()"

6 years agoMerge "SiteStatsUpdate: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:06:14 +0000 (23:06 +0000)]
Merge "SiteStatsUpdate: Avoid deprecated wfMemcKey()"

6 years agoMerge "SiteStats: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:04:35 +0000 (23:04 +0000)]
Merge "SiteStats: Avoid deprecated wfMemcKey()"

6 years agoMerge "Block: Avoid deprecated wfMemcKey()"
jenkins-bot [Fri, 26 May 2017 23:01:55 +0000 (23:01 +0000)]
Merge "Block: Avoid deprecated wfMemcKey()"

6 years agoobjectcache: respect process cache in getMultiWithSetCallback()
Aaron Schulz [Fri, 26 May 2017 18:12:07 +0000 (11:12 -0700)]
objectcache: respect process cache in getMultiWithSetCallback()

Backend cache queries are now avoided if they are fresh in memory.

Also factor out some code into private methods for clarity.

Change-Id: Ib343fde3dbf63f39e8cb09eca6278811a7d9738b

6 years agoMerge "objectcache: fix cache warmup bug in getMultiWithSetCallback()"
jenkins-bot [Fri, 26 May 2017 22:14:01 +0000 (22:14 +0000)]
Merge "objectcache: fix cache warmup bug in getMultiWithSetCallback()"

6 years agoMerge "Fix TextPassDumperDatabaseTest::testPrefetchPlain postgres failures"
jenkins-bot [Fri, 26 May 2017 22:12:35 +0000 (22:12 +0000)]
Merge "Fix TextPassDumperDatabaseTest::testPrefetchPlain postgres failures"

6 years agoFix TextPassDumperDatabaseTest::testPrefetchPlain postgres failures
Aaron Schulz [Fri, 26 May 2017 21:38:07 +0000 (14:38 -0700)]
Fix TextPassDumperDatabaseTest::testPrefetchPlain postgres failures

The insertId() method was returning a string, which caused the
returnValueMap not to trigger due to int/string mismatches.

Also add sanity integer cast to WikiPage::insertOn().

Added a few more type docs.

Bug: T75174
Change-Id: Id1090f3e3d0481272a3d13c3af8f2588f06dc912

6 years agoMerge "Revert "Localisation updates from https://translatewiki.net.""
L10n-bot [Fri, 26 May 2017 20:06:20 +0000 (20:06 +0000)]
Merge "Revert "Localisation updates from https://translatewiki.net.""

6 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Fri, 26 May 2017 20:05:36 +0000 (20:05 +0000)]
Revert "Localisation updates from https://translatewiki.net."

Overwrites https://gerrit.wikimedia.org/r/#/c/353696/

This reverts commit d47331a707a00ec0b7ffab1f9fdcb02d70975898.

Change-Id: I2db66a32c3eb1baef84c0abe797ebb9bc052670d

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Fri, 26 May 2017 19:58:44 +0000 (19:58 +0000)]
Merge "Localisation updates from https://translatewiki.net."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 26 May 2017 19:58:32 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iabf3bace8c57875133115d1faab44be656807657

6 years agoMerge "RCFilters: Style saved links option menu"
jenkins-bot [Fri, 26 May 2017 19:58:31 +0000 (19:58 +0000)]
Merge "RCFilters: Style saved links option menu"

6 years agoMerge "RCFilters: Style the Saved Links placeholder and add a title"
jenkins-bot [Fri, 26 May 2017 19:54:54 +0000 (19:54 +0000)]
Merge "RCFilters: Style the Saved Links placeholder and add a title"

6 years agoMerge "resourceloader: Ensure user.styles and site.styles having their own request"
jenkins-bot [Fri, 26 May 2017 15:39:35 +0000 (15:39 +0000)]
Merge "resourceloader: Ensure user.styles and site.styles having their own request"

6 years agoWebStart.php: Update the file's doc comment
Kevin Israel [Mon, 27 Feb 2017 01:19:25 +0000 (20:19 -0500)]
WebStart.php: Update the file's doc comment

The doc comment did not reflect the removal of MW_NO_SETUP in
edc9edbc769b570c, or the fact that Setup.php no longer loads
AutoLoader.php or GlobalFunctions.php.

Change-Id: I19a12fd83e369828b9e08176ddf3bfca16aae465

6 years agoresourceloader: Ensure user.styles and site.styles having their own request
Timo Tijhof [Fri, 12 May 2017 22:26:36 +0000 (23:26 +0100)]
resourceloader: Ensure user.styles and site.styles having their own request

Regardless of whether other modules exist with group=user or group=site,
these two modules in particular must always be in their own request for
legacy reasons.

This has already always been the case because even in the few cases where
an extension uses this group (eg. MobileFrontend's custom site module) it
would load it instead of another module in that group, never at the same
time. There is one notable exception, which is GlobalCssJs. However the
ext.globalCssJs.user.styles module is usually served from another wiki
which is why that went unnoticed as well. This commit fixes that so that
even if you're viewing a page on the central wiki, the modules are still
in separate requests.

Aside from this one existing edge case, there is also need to add
group=site to gadgets by default so that they load after the DynamicStyles
marker instead of before, which is currently causing problems with the
cascading order (gadget apply before core and skin styles due to being
in the same request group and alphabetically sorting before them).

Semantically, the appropiate solution is group=site, but this wasn't
possible due to core putting "all" group=site modules in the same request
(under the assumption there is only one such module). This commit removes
that fragile assumption.

Bug: T147667
Change-Id: I9eb725c083124d22a9af3bf3d075ade6f3b970a3

6 years agoReturn 400 on invalid CSP reports
Filippo Giunchedi [Fri, 26 May 2017 10:19:56 +0000 (12:19 +0200)]
Return 400 on invalid CSP reports

Not really a server error since there's nothing we can do about invalid
user-provided data.

Bug: T166229
Change-Id: I87a7be32ae7e80c112be556bc13db19f11e614ca

6 years agoAdd fr (French) as fallback for kbp (Kabiyè)
Federico Leva [Fri, 26 May 2017 07:12:57 +0000 (09:12 +0200)]
Add fr (French) as fallback for kbp (Kabiyè)

Follow-up to 03e306dd3bc72fd134375a60ecd8b88541ea2973

Change-Id: I06f9788eb16cb1b40faac33aaa75d56e8075bc49

6 years agoobjectcache: fix cache warmup bug in getMultiWithSetCallback()
Aaron Schulz [Thu, 25 May 2017 00:59:50 +0000 (17:59 -0700)]
objectcache: fix cache warmup bug in getMultiWithSetCallback()

The warmup cache was not properly prefixed and was also using the entity
IDs instead of the cache keys. Thus, it effectively just wasted a
getMulti() query and resulted in the usual separate GETs anyway.

Added some unit tests for this.

Change-Id: I75b7a31214b515511856f9d95db32e8881d80ccc

6 years agoMerge "jquery.makeCollapsible: Restore considering empty <a> as part of toggle"
jenkins-bot [Thu, 25 May 2017 21:37:15 +0000 (21:37 +0000)]
Merge "jquery.makeCollapsible: Restore considering empty <a> as part of toggle"

6 years agoMerge "Add missing ampersand to getMultiWithSetCallback() callback"
jenkins-bot [Thu, 25 May 2017 21:25:01 +0000 (21:25 +0000)]
Merge "Add missing ampersand to getMultiWithSetCallback() callback"

6 years agojquery.makeCollapsible: Restore considering empty <a> as part of toggle
Timo Tijhof [Thu, 25 May 2017 21:08:24 +0000 (23:08 +0200)]
jquery.makeCollapsible: Restore considering empty <a> as part of toggle

Before 2d95d36a8e, clicks on links inside toggles with non-empty
targets that are not '#', were ignored ("pass through") since they
are not intended for the toggle.

In 2d95d36a8e, this was simplified to ignoring clicks from all <a>
elements inside toggles. However this ignored too much as links
without 'href' attribute are also sometimes used inside toggles
to look like links and have no href-target, which means clicking
them does nothing and is in fact meant to toggle the element.

Restore previous behaviour and restore previous test + add a new
test for this specific case.

Bug: T166298
Change-Id: Ia3a0648f809f94be0977a83b469fbd184aa72aff

6 years agoMerge "Revert "Creating new WMF 1.30.0-wmf.2 branch""
jenkins-bot [Thu, 25 May 2017 21:14:56 +0000 (21:14 +0000)]
Merge "Revert "Creating new WMF 1.30.0-wmf.2 branch""

6 years agoMerge "Add kbp language code"
jenkins-bot [Thu, 25 May 2017 21:04:35 +0000 (21:04 +0000)]
Merge "Add kbp language code"

6 years agoRevert "Creating new WMF 1.30.0-wmf.2 branch"
Timo Tijhof [Thu, 25 May 2017 20:55:20 +0000 (22:55 +0200)]
Revert "Creating new WMF 1.30.0-wmf.2 branch"

Also revert the automatic "Update git submodules" commits since then.

This reverts commit 264fc98588a4851324d3e5f2e39ece01e993127e.

Change-Id: Ica6ad77c46cc8a7f6b5576da2580ea9e07ac8637

6 years agoMerge "Fix version of DonationInterface deployed to donatewiki"
jenkins-bot [Thu, 25 May 2017 20:44:53 +0000 (20:44 +0000)]
Merge "Fix version of DonationInterface deployed to donatewiki"

6 years agoFix version of DonationInterface deployed to donatewiki
Elliott Eggleston [Thu, 25 May 2017 20:13:54 +0000 (13:13 -0700)]
Fix version of DonationInterface deployed to donatewiki

We had deleted some localization strings that donatewiki needs.

Bug: T166302
Change-Id: I27a03a64de80bdf58f7d7f2f69173933aa4b23ea

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 25 May 2017 20:00:24 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I0772f5f25bb805291ffee1b8170d22a49c3aa317

6 years agoMerge "MessageCache: Avoid deprecated wfMemcKey()"
jenkins-bot [Thu, 25 May 2017 19:46:45 +0000 (19:46 +0000)]
Merge "MessageCache: Avoid deprecated wfMemcKey()"

6 years agoMerge "rebuildrecentchanges.php: Make purgeFeeds() use the correct cache"
jenkins-bot [Thu, 25 May 2017 19:42:12 +0000 (19:42 +0000)]
Merge "rebuildrecentchanges.php: Make purgeFeeds() use the correct cache"

6 years agowfIsBadImage: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 19:26:19 +0000 (12:26 -0700)]
wfIsBadImage: Avoid deprecated wfMemcKey()

Change-Id: I92133ed6a94902bdac2e9723f19a653a9962b757

6 years agorebuildrecentchanges.php: Make purgeFeeds() use the correct cache
mdew192837 [Thu, 25 May 2017 01:15:47 +0000 (20:15 -0500)]
rebuildrecentchanges.php: Make purgeFeeds() use the correct cache

ChangesFeed was updated in 3517be1cf0b7, to use the WAN cache,
so this change updates the purgeFeeds() function to use that cache
too.

Avoid the deprected wfMemcKey() too.

Bug: T166195
Change-Id: I28a8d729737f03ccaf069495a59e80401c59e778

6 years agoUser: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 19:17:27 +0000 (12:17 -0700)]
User: Avoid deprecated wfMemcKey()

And ObjectCache::getMainWANInstance() while we're at it.

Change-Id: Id0280aec72202f3b3098c9c3b563541c2c0f2900

6 years agoparser: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 19:05:49 +0000 (12:05 -0700)]
parser: Avoid deprecated wfMemcKey()

Tested that parser cache keys stay the same, before and after this
change.

Also use the more obvious ObjectCache::getLocalClusterInstance() instead
of looking up the main cache type in config and using
ObjectCache::getInstance().

Change-Id: Icef646b3c05e732ef4079d6900e6bce111debf2b

6 years agoLanguageConverter: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 18:41:56 +0000 (11:41 -0700)]
LanguageConverter: Avoid deprecated wfMemcKey()

Change-Id: I7fe8e3ad6de2eb0a156b046805fa0eca928d0892

6 years agoCachingSiteStore: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:48:34 +0000 (00:48 -0700)]
CachingSiteStore: Avoid deprecated wfMemcKey()

Change-Id: I123b29dd41c6e0f020e0fcc661813addbec92b27

6 years agoUser: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:48:09 +0000 (00:48 -0700)]
User: Avoid deprecated wfMemcKey()

Change-Id: Iffb4d85dfed740b01fcef5a25762dc751b292c41

6 years agoUploadBase: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:47:56 +0000 (00:47 -0700)]
UploadBase: Avoid deprecated wfMemcKey()

Change-Id: I717948d6550ed2d98c3a89b3e48e161c3af15d48

6 years agoSpecialVersion: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:47:46 +0000 (00:47 -0700)]
SpecialVersion: Avoid deprecated wfMemcKey()

Change-Id: I7cfaf049a4e193bdb12b5233f0460e71cbe876af

6 years agopage: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:47:27 +0000 (00:47 -0700)]
page: Avoid deprecated wfMemcKey()

And the deprecated ObjectCache::getMainWANInstance(),
getMainStashInstance() while we're at it.

Change-Id: I951c356f1c394a9658216dea54c92824dca83cbc

6 years agoSiteStatsUpdate: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:46:48 +0000 (00:46 -0700)]
SiteStatsUpdate: Avoid deprecated wfMemcKey()

And the deprecated ObjectCache::getMainStashInstance() while we're at
it.

Change-Id: Iebd4e029c3ab6443403087d991bb263ef83b1ed8

6 years agoSiteStats: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:46:22 +0000 (00:46 -0700)]
SiteStats: Avoid deprecated wfMemcKey()

And the deprecated ObjectCache::getMainWANInstance() while we're at it.

Change-Id: If9d9ab9c661c003a3aa6c2d956700b1870a52f41

6 years agoBlock: Avoid deprecated wfMemcKey()
Kunal Mehta [Thu, 25 May 2017 07:45:55 +0000 (00:45 -0700)]
Block: Avoid deprecated wfMemcKey()

Change-Id: Ie23261b7b6dd9d03d314cf77d290bffb8df593cd

6 years agoMerge "ApiParse: Use existing OutputPage for prop=categorieshtml"
jenkins-bot [Thu, 25 May 2017 17:49:22 +0000 (17:49 +0000)]
Merge "ApiParse: Use existing OutputPage for prop=categorieshtml"

6 years agoMerge "Move some more classes to comply with class per file"
jenkins-bot [Thu, 25 May 2017 16:15:31 +0000 (16:15 +0000)]
Merge "Move some more classes to comply with class per file"

6 years agoMake running Selenium tests using Sauce Labs easy
Željko Filipin [Fri, 31 Mar 2017 11:47:17 +0000 (13:47 +0200)]
Make running Selenium tests using Sauce Labs easy

If SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are not
defined, tests are run with `npm run selenium`, as usual.

https://www.mediawiki.org/wiki/Selenium/Node.js/Inside_MediaWiki-Vagrant
https://www.mediawiki.org/wiki/Selenium/Node.js/Target_MediaWiki-Vagrant

If the environment variables are defined, to run tests using Sauce Labs
and targeting Beta Cluster, run this:

```
export SAUCE_USERNAME=***
export SAUCE_ACCESS_KEY=***
export MW_SERVER=https://en.wikipedia.beta.wmflabs.org
./node_modules/.bin/wdio tests/selenium/wdio.conf.js
```

https://www.mediawiki.org/wiki/Selenium/Node.js/Target_beta_cluster_using_Sauce_Labs

Bug: T139740
Change-Id: I622d9c55ae595ab772e733388d209623e3a9f81e

6 years agoApiParse: Use existing OutputPage for prop=categorieshtml
Brad Jorsch [Thu, 25 May 2017 15:18:48 +0000 (11:18 -0400)]
ApiParse: Use existing OutputPage for prop=categorieshtml

Follows up Iaa85ac49.

This also ensures that the Skin correctly refers back to the constructed
OutputPage even when 'useskin' isn't specified.

Change-Id: I983e907c05acd753733e88904953f355e26f393d

6 years agoAdd kbp language code
Sébastien Santoro [Mon, 20 Mar 2017 14:51:24 +0000 (14:51 +0000)]
Add kbp language code

Bug: T160915
Change-Id: I1de0c2eb0228697544f2e3bfedf76bc37ac3f679

6 years agoAdd missing ampersand to getMultiWithSetCallback() callback
Aaron Schulz [Thu, 25 May 2017 10:40:26 +0000 (03:40 -0700)]
Add missing ampersand to getMultiWithSetCallback() callback

Also fixed a php example block comment

Change-Id: Ib6967180ad0d45aec7b7d4b6d383723e2c95fefa

6 years agoMerge "mediawiki.page.watch: Deprecate mw.page object"
jenkins-bot [Thu, 25 May 2017 07:48:59 +0000 (07:48 +0000)]
Merge "mediawiki.page.watch: Deprecate mw.page object"

6 years agoMerge "Avoid treating mcrouter set()s as failing due to AllAsyncRoute"
jenkins-bot [Wed, 24 May 2017 22:35:48 +0000 (22:35 +0000)]
Merge "Avoid treating mcrouter set()s as failing due to AllAsyncRoute"

6 years agoMerge "Revert "Revert "Fix the web updater"""
jenkins-bot [Wed, 24 May 2017 22:31:42 +0000 (22:31 +0000)]
Merge "Revert "Revert "Fix the web updater"""

6 years agoUpdate git submodules
Timo Tijhof [Wed, 24 May 2017 15:39:51 +0000 (17:39 +0200)]
Update git submodules

* Update extensions/wikihiero from branch 'wmf/1.30.0-wmf.2'
  - Fix styles queue violation for "ext.wikihiero.Special"

    The same module is explicitly being loaded twice, once just the
    styles, and again with the JS/messages/dependencies as well.

    This is wasteful and also unsupported.

    Move the two style rules to the main stylesheet and load the
    proper styles module it belongs to instead.

    Bug: T92459
    Change-Id: I012b4d9bff5bd0379f8b9eb663d5b5dbf71f1885

6 years agoRevert "Revert "Fix the web updater""
Paladox [Wed, 24 May 2017 22:20:55 +0000 (22:20 +0000)]
Revert "Revert "Fix the web updater""

This reverts commit a7b9cc4946a2f7fb081f64d9230bf944736a185b.

Change-Id: I91d4b821df126703f83377dd8aff3a79b629f720

6 years agoMerge "Revert "Fix the web updater""
jenkins-bot [Wed, 24 May 2017 21:56:37 +0000 (21:56 +0000)]
Merge "Revert "Fix the web updater""

6 years agoRevert "Fix the web updater"
Paladox [Wed, 24 May 2017 21:43:30 +0000 (21:43 +0000)]
Revert "Fix the web updater"

May be causing beta to break, if that's true then we are going to revert 6519c42d248a78d2d42edee1beb21f926d227044

This reverts commit 5d56bcb925af653fed427e90a1cfb982de386720.

Change-Id: I5e9df08dc1583266bb11b52d5d68bf393e4c0fff

6 years agoUpdate git submodules
Chad Horohoe [Wed, 24 May 2017 20:54:21 +0000 (13:54 -0700)]
Update git submodules

* Update extensions/ProofreadPage from branch 'wmf/1.30.0-wmf.2'
  - Properly handle batches of pages to update

    Using LIMIT on UPDATE/DELETE queries is unsafe when using statement-based
    replication as you can't ensure the same sets of rows are updated.

    Instead, select a batch of problematic page_ids, update by them, then
    continue until we don't find any more to fix

    Bug: T166261
    Change-Id: I8a5d2989285c72450d6a48ccc12d88fdeeb3fb6f

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 24 May 2017 20:16:19 +0000 (22:16 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2e981505c8fd591998178998508e923f9e9fbb41

6 years agoMessageCache: Avoid deprecated wfMemcKey()
mdew192837 [Wed, 24 May 2017 12:49:53 +0000 (07:49 -0500)]
MessageCache: Avoid deprecated wfMemcKey()

Change-Id: I31e3cde0a94e355de9f32a17636aaf54aa2d40c4

6 years agoMerge "Batch/pipeline backend operations in refreshFileHeaders" into wmf/1.30.0-wmf.2
jenkins-bot [Wed, 24 May 2017 18:36:08 +0000 (18:36 +0000)]
Merge "Batch/pipeline backend operations in refreshFileHeaders" into wmf/1.30.0-wmf.2

6 years agoUpdate git submodules
Gilles Dubuc [Sun, 21 May 2017 11:17:20 +0000 (13:17 +0200)]
Update git submodules

* Update extensions/TimedMediaHandler from branch 'wmf/1.30.0-wmf.2'
  - Make getContentHeaders rely on fallback width/height

    Bug: T150741
    Change-Id: I89cc083aac39f71460b10bfc0ce341c115bd6b64
    Depends-On: I2c0f39b2b01f364c3fab997ccc2f874b7f101d8a

6 years agoUpdate git submodules
Gilles Dubuc [Sun, 21 May 2017 11:51:24 +0000 (13:51 +0200)]
Update git submodules

* Update extensions/PagedTiffHandler from branch 'wmf/1.30.0-wmf.2'
  - Update getContentHeaders signature

    Bug: T150741
    Change-Id: I714bd9a340c64e5b8536c031923ad0b486434632
    Depends-On: I2c0f39b2b01f364c3fab997ccc2f874b7f101d8a

6 years agoMerge "Use file width/height instead of metadata for getContentHeaders" into wmf...
jenkins-bot [Wed, 24 May 2017 18:36:01 +0000 (18:36 +0000)]
Merge "Use file width/height instead of metadata for getContentHeaders" into wmf/1.30.0-wmf.2

6 years agoUpdate git submodules
Gilles Dubuc [Sun, 21 May 2017 11:21:47 +0000 (13:21 +0200)]
Update git submodules

* Update extensions/PdfHandler from branch 'wmf/1.30.0-wmf.2'
  - Update getContentHeaders signature

    Bug: T150741
    Change-Id: I3a62185243d5a0d561da63a5e5ccafed093d41bb

6 years agoAvoid treating mcrouter set()s as failing due to AllAsyncRoute
Aaron Schulz [Wed, 24 May 2017 17:50:05 +0000 (10:50 -0700)]
Avoid treating mcrouter set()s as failing due to AllAsyncRoute

Per https://github.com/facebook/mcrouter/wiki/List-of-Route-Handles
a NullRoute response is always given for DELETE and SET. The former
already is already handled by MediaWiki treating NOT_FOUND as success.

Change-Id: I79c26bcd6b8ffe7eea73e0d45badcc4ed63f05e6

6 years agoMerge "Fix up deprecation of wfMemcKey()/wfGlobalCacheKey()"
jenkins-bot [Wed, 24 May 2017 16:23:46 +0000 (16:23 +0000)]
Merge "Fix up deprecation of wfMemcKey()/wfGlobalCacheKey()"

6 years agoMerge "rdbms: Add compat alias for renamed LBFactory class"
jenkins-bot [Wed, 24 May 2017 15:53:36 +0000 (15:53 +0000)]
Merge "rdbms: Add compat alias for renamed LBFactory class"

6 years agoRestore dependency on module 'mediawiki.page.startup'
Fomafix [Tue, 23 May 2017 17:58:11 +0000 (19:58 +0200)]
Restore dependency on module 'mediawiki.page.startup'

Module 'mediawiki.page.watch.ajax' requires a dependency to module
'mediawiki.page.startup' because 'mediawiki.page.startup' creates the object
mw.page and 'mediawiki.page.watch.ajax' requires this object.

This dependency got lost in 06a0dec05723eb6a6604421e134345a5abe115a5.

Bug: T114288
Change-Id: Iebfda85c77eaf6bb19d2ae755813b1c36a95dac8
(cherry picked from commit ef456a78051bd01fa29ebeb1b89bdbfb6703b6c4)

6 years agoMerge "installer: Replace bad calls to getText() on DBQueryError exceptions"
jenkins-bot [Wed, 24 May 2017 11:34:20 +0000 (11:34 +0000)]
Merge "installer: Replace bad calls to getText() on DBQueryError exceptions"