lhc/web/wiklou.git
7 years agoCall destroy method that actually exists instead of one that doesn't anymore.
Stanislav Malyshev [Tue, 11 Oct 2016 19:13:10 +0000 (12:13 -0700)]
Call destroy method that actually exists instead of one that doesn't anymore.

Bug: T147881
Change-Id: Idac48d3c022af60409df37f2b1fcf82af814bdfa

7 years agoRemove outdated deprecated .mw-ui-primary class
Volker E [Wed, 28 Sep 2016 01:20:40 +0000 (18:20 -0700)]
Remove outdated deprecated .mw-ui-primary class

Removing outdated `.mw-ui-primary` button class, that was deprecated
more than two years ago.

Change-Id: I0f9be4dec4aea83d182e919add1ef8495b293907

7 years agoMerge "API: Add a 'known' property when missing-but-known titles are output"
jenkins-bot [Tue, 11 Oct 2016 17:44:28 +0000 (17:44 +0000)]
Merge "API: Add a 'known' property when missing-but-known titles are output"

7 years agoUpdate weblinks in comments from HTTP to HTTPS
Fomafix [Sun, 9 Oct 2016 17:48:14 +0000 (19:48 +0200)]
Update weblinks in comments from HTTP to HTTPS

Use HTTPS instead of HTTP where the HTTP link is a redirect to the HTTPS link.

Change-Id: I06d9e043730accc4ae71b927e0f8229f0fc3b340

7 years agoMerge "Ignore defineProperty() failures in mw.log.deprecate"
jenkins-bot [Tue, 11 Oct 2016 17:04:59 +0000 (17:04 +0000)]
Merge "Ignore defineProperty() failures in mw.log.deprecate"

7 years agoMerge "API: Remove deprecated response values from action=login"
jenkins-bot [Tue, 11 Oct 2016 16:27:54 +0000 (16:27 +0000)]
Merge "API: Remove deprecated response values from action=login"

7 years agoMerge "Tweak fullscreen styles for API sandbox"
jenkins-bot [Tue, 11 Oct 2016 16:27:52 +0000 (16:27 +0000)]
Merge "Tweak fullscreen styles for API sandbox"

7 years agoMerge "Preserve font size in ApiSandbox when going fullscreen"
jenkins-bot [Tue, 11 Oct 2016 16:24:47 +0000 (16:24 +0000)]
Merge "Preserve font size in ApiSandbox when going fullscreen"

7 years agoAPI: Add a 'known' property when missing-but-known titles are output
Brad Jorsch [Mon, 15 Aug 2016 18:27:40 +0000 (14:27 -0400)]
API: Add a 'known' property when missing-but-known titles are output

For example file pages from foreign repos, MediaWiki-namespace messages
that haven't been locally customized, and titles manipulated with the
'TitleIsAlwaysKnown' hook.

This allows clients to be able to display such titles as bluelinks
rather than redlinks.

This also has ApiPageSet populate LinkCache to make later checks of
->exists() and ->isKnown() more efficient.

Bug: T141963
Change-Id: Idbdfd2896c0ce9425ededd7cb4b60eda89ba7ef5

7 years agoTweak fullscreen styles for API sandbox
Ed Sanders [Wed, 7 Sep 2016 03:09:26 +0000 (20:09 -0700)]
Tweak fullscreen styles for API sandbox

Change-Id: I69ae300c00931d6a4fff3920645b2c6ff6708284

7 years agoMerge "Use <a> instead of <a href="#"> for JavaScript click events"
jenkins-bot [Tue, 11 Oct 2016 16:07:29 +0000 (16:07 +0000)]
Merge "Use <a> instead of <a href="#"> for JavaScript click events"

7 years agoMerge "mediawiki.UI: Document explicitly about deprecated .mw-ui-constructive"
jenkins-bot [Tue, 11 Oct 2016 16:01:33 +0000 (16:01 +0000)]
Merge "mediawiki.UI: Document explicitly about deprecated .mw-ui-constructive"

7 years agoUse <a> instead of <a href="#"> for JavaScript click events
Fomafix [Mon, 16 Jun 2014 08:30:17 +0000 (08:30 +0000)]
Use <a> instead of <a href="#"> for JavaScript click events

* No status line with URL and "#".
* No new tab on middle click.

a { cursor: pointer; } ensures to have a pointer as mouse cursor on hover.

tabindex="0" ensures to have a normal tab order.

role="button" according to
https://www.mediawiki.org/wiki/Accessibility_guide_for_developers

Change-Id: I5903901752ffb52e778f3582c7da0f820dc305c8

7 years agoMerge "SECURITY: quote booleans as string (not integer) in DatabaseMysqlBase"
jenkins-bot [Tue, 11 Oct 2016 15:31:49 +0000 (15:31 +0000)]
Merge "SECURITY: quote booleans as string (not integer) in DatabaseMysqlBase"

7 years agoSECURITY: quote booleans as string (not integer) in DatabaseMysqlBase
Gergő Tisza [Thu, 6 Oct 2016 17:39:08 +0000 (17:39 +0000)]
SECURITY: quote booleans as string (not integer) in DatabaseMysqlBase

Comparing a string column to 0 will produce spurious matches, and it is easy
to get a false value in unexpected places. Comparing an int column to '0'
does not seem to cause any problems.

Bug: T147537
Change-Id: I5ad547de509b3417b5937be6bdda9befb8aed8b6

7 years agoMerge "Fix the name of the Livvi-Karelian to fully Latin alphabet"
jenkins-bot [Tue, 11 Oct 2016 06:35:11 +0000 (06:35 +0000)]
Merge "Fix the name of the Livvi-Karelian to fully Latin alphabet"

7 years agoMerge "TemplatesOnThisPage: The second paramter in rawElement is attributes, not...
jenkins-bot [Tue, 11 Oct 2016 03:22:19 +0000 (03:22 +0000)]
Merge "TemplatesOnThisPage: The second paramter in rawElement is attributes, not content"

7 years agomediawiki.UI: Document explicitly about deprecated .mw-ui-constructive
Volker E [Tue, 11 Oct 2016 03:17:14 +0000 (20:17 -0700)]
mediawiki.UI: Document explicitly about deprecated .mw-ui-constructive

Changing documentation in mediawiki.UI anchors about deprecated
`.mw-ui-constructive` class.

Bug: T146923
Change-Id: If3686c7c9c071fa708ae1deb82aa465a1f390175

7 years agoTemplatesOnThisPage: The second paramter in rawElement is attributes, not content
Amir Sarabadani [Mon, 10 Oct 2016 18:37:36 +0000 (22:07 +0330)]
TemplatesOnThisPage: The second paramter in rawElement is attributes, not content

With proper typehinting this wouldn't have happened

Bug: T147789
Change-Id: I19ef9388acfd9159304b8141c54ce1ead27d0791

7 years agomediawiki.UI: Align .mw-ui-input appearance to design spec/OOjs UI
Volker E [Sun, 9 Oct 2016 21:37:52 +0000 (14:37 -0700)]
mediawiki.UI: Align .mw-ui-input appearance to design spec/OOjs UI

Aligning `.mw-ui-input` appearance to design specification
https://phabricator.wikimedia.org/M101 and implementation in OOjs UI.
Also improving `transition`, simplifying placeholder Less mixin and
adding W3C Selectors Level 4 `:placeholder-shown` pseudo-class.

Change-Id: I3e3299b3d8ff9b3ee58498e2e4dd2f2424ccde05

7 years agoobjectcache: Fix test coverage
Timo Tijhof [Mon, 10 Oct 2016 23:25:10 +0000 (01:25 +0200)]
objectcache: Fix test coverage

Follows-up 24200e88d2. This broke the test coverage build.

Change-Id: Ied93e8ce280accc842418069883ef60cd4e08441

7 years agoIgnore defineProperty() failures in mw.log.deprecate
Bartosz Dziewoński [Fri, 30 Sep 2016 15:37:07 +0000 (17:37 +0200)]
Ignore defineProperty() failures in mw.log.deprecate

This reverts 159dbdc06f214f3fed3f86808312012cf2099e4f.

Bug: T145570
Change-Id: I9ed4cf7b379116f33cfcaee3de053739f9b25b7e

7 years agoMerge "Password reset link is shown when no reset options are available"
jenkins-bot [Mon, 10 Oct 2016 21:40:32 +0000 (21:40 +0000)]
Merge "Password reset link is shown when no reset options are available"

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Mon, 10 Oct 2016 20:03:59 +0000 (20:03 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 10 Oct 2016 19:56:42 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4b1051030a6e64aa32277789581fd315b4613383

7 years agoresourceloader: Don't cache stale responses in mw.loader.store
Timo Tijhof [Mon, 12 Sep 2016 20:52:10 +0000 (13:52 -0700)]
resourceloader: Don't cache stale responses in mw.loader.store

Follows-up 6fa1e56. This is already fixed for http caches by
shortening the Cache-Control max-age in case of a version mismatch.

However the client still cached it blindly in mw.loader.store.
Resolve this by communicating to the client what version of the module
was exported. The client can then compare this version to the version
it originally requested and decide not to cache it.

Adopt the module key format (name@version) from mw.loader.store
in mw.loader.implement() as well.

Bug: T117587
Change-Id: I1a7c44d0222893afefac20bef507bdd1a1a87ecd

7 years agoMerge "Livvi-Karelian MediaWiki core messages to release notes."
jenkins-bot [Mon, 10 Oct 2016 15:05:34 +0000 (15:05 +0000)]
Merge "Livvi-Karelian MediaWiki core messages to release notes."

7 years agoFix the name of the Livvi-Karelian to fully Latin alphabet
Amire80 [Mon, 10 Oct 2016 12:13:38 +0000 (15:13 +0300)]
Fix the name of the Livvi-Karelian to fully Latin alphabet

The letter "k" was for some reason written in the Cyrillic alphabet.
Everywhere else in the Wp/olo incubator it is written with the Latin
letter "k", so this must be a mistake.

Change-Id: I51eb44b4cdb6014aafb7e6b4e5a725434b86e877

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 9 Oct 2016 19:57:17 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idc6b39df30547833253c0fa8df768eec4a1ad823

7 years agoLivvi-Karelian MediaWiki core messages to release notes.
MarcoAurelio [Sun, 9 Oct 2016 17:43:43 +0000 (17:43 +0000)]
Livvi-Karelian MediaWiki core messages to release notes.

Bug: T146744
Change-Id: I8fe6377512dbc6e01ee4866c440e6d416abaf288

7 years agoMerge "Replace false for null in sourceFile() call"
jenkins-bot [Sun, 9 Oct 2016 00:15:45 +0000 (00:15 +0000)]
Merge "Replace false for null in sourceFile() call"

7 years agoMerge "Do not normalise external links to special pages"
jenkins-bot [Sat, 8 Oct 2016 23:22:57 +0000 (23:22 +0000)]
Merge "Do not normalise external links to special pages"

7 years agoMerge "mw.widgets.DateTimeInputWidget: Simplify code for hiding reused $input when...
jenkins-bot [Sat, 8 Oct 2016 23:21:33 +0000 (23:21 +0000)]
Merge "mw.widgets.DateTimeInputWidget: Simplify code for hiding reused $input when infusing"

7 years agoDisable reportDupes for unit tests
Stanislav Malyshev [Sat, 8 Oct 2016 00:02:45 +0000 (17:02 -0700)]
Disable reportDupes for unit tests

Bug: T147697
Change-Id: Ibd5901767be0d12d2aa50a4fc48b117711e6cf98

7 years agoDo not normalise external links to special pages
Amir Sarabadani [Sat, 8 Oct 2016 22:52:52 +0000 (02:22 +0330)]
Do not normalise external links to special pages

Bug: T147685
Change-Id: I0ec004b3f7194696eaca9541d336b061602e36df

7 years agoMerge "Revert noindex-category change from change I233ce58fd82a1dbc57b3ab58ce669b23a5...
jenkins-bot [Sat, 8 Oct 2016 18:34:48 +0000 (18:34 +0000)]
Merge "Revert noindex-category change from change I233ce58fd82a1dbc57b3ab58ce669b23a5781b57"

7 years agoRevert noindex-category change from change I233ce58fd82a1dbc57b3ab58ce669b23a5781b57
zppix1 [Fri, 23 Sep 2016 14:28:59 +0000 (09:28 -0500)]
Revert noindex-category change from change I233ce58fd82a1dbc57b3ab58ce669b23a5781b57

Bug: T146446
Change-Id: Ibe781441d999b00b1157aaebd69f37dddde1579f

7 years agoFix merging of class attribute on edit page textbox
Brian Wolff [Sat, 8 Oct 2016 18:18:06 +0000 (18:18 +0000)]
Fix merging of class attribute on edit page textbox

Follow up to 2c688cfb11ea6cee0e975ed35fc8e503ea

Bug: T147701
Change-Id: I48a03ffefb575470804dc4ef54bdf321e6f55dc3

7 years agomw.widgets.DateTimeInputWidget: Simplify code for hiding reused $input when infusing
Bartosz Dziewoński [Sat, 8 Oct 2016 17:33:21 +0000 (19:33 +0200)]
mw.widgets.DateTimeInputWidget: Simplify code for hiding reused $input when infusing

This is the standard solution, used also in OO.ui.DropdownInputWidget.

Change-Id: I42993bfade56b0461d4dd1a65fb110d605f1acf2

7 years agoMerge "Convert WatchedItemQueryService to using getConnectionRef()"
jenkins-bot [Sat, 8 Oct 2016 16:32:45 +0000 (16:32 +0000)]
Merge "Convert WatchedItemQueryService to using getConnectionRef()"

7 years agoMerge "Make WikiPage::prepareTextForEdit() emit deprecation warnings"
jenkins-bot [Sat, 8 Oct 2016 15:04:03 +0000 (15:04 +0000)]
Merge "Make WikiPage::prepareTextForEdit() emit deprecation warnings"

7 years agoFix syntax in doc/hooks.txt
umherirrender [Sat, 8 Oct 2016 09:39:49 +0000 (11:39 +0200)]
Fix syntax in doc/hooks.txt

Follow up: I10293be4581140c3edf0e4b538b04b31cb6f5730

Change-Id: Ia3a38ad46a0cd7f8c87ebb2af57131285cc1e6bf

7 years agoMerge "LoadMonitor: Avoid "host not replicating?" log messages by checking "is static""
jenkins-bot [Sat, 8 Oct 2016 01:54:35 +0000 (01:54 +0000)]
Merge "LoadMonitor: Avoid "host not replicating?" log messages by checking "is static""

7 years agoLoadMonitor: Avoid "host not replicating?" log messages by checking "is static"
Aaron Schulz [Fri, 7 Oct 2016 22:05:22 +0000 (15:05 -0700)]
LoadMonitor: Avoid "host not replicating?" log messages by checking "is static"

Change-Id: I59c47038505558b141385ea48cb62461163adb37

7 years agoConvert WatchedItemQueryService to using getConnectionRef()
Aaron Schulz [Thu, 6 Oct 2016 17:11:17 +0000 (10:11 -0700)]
Convert WatchedItemQueryService to using getConnectionRef()

Change-Id: I3dfe959d057d59a7d01c74a8f701cda0110dad2f

7 years agoMerge "Documentation link changes"
jenkins-bot [Fri, 7 Oct 2016 22:56:21 +0000 (22:56 +0000)]
Merge "Documentation link changes"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 7 Oct 2016 20:44:10 +0000 (22:44 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1ac25d16154c4ff1c3ad811d4fa2b217d7408ebc

7 years agoDocumentation link changes
zppix1 [Fri, 7 Oct 2016 15:30:10 +0000 (10:30 -0500)]
Documentation link changes

* Adds Special:MyLanguage to the links that support  it.

Bug: T147650
Change-Id: Ie117466c83b120bd5b60388f29edcd3baf9c6eec

7 years agoFix some LBFactory return type docs
Aaron Schulz [Fri, 7 Oct 2016 17:59:59 +0000 (10:59 -0700)]
Fix some LBFactory return type docs

Change-Id: Ie283c5bf6ca8c67be9c116b0a7065b0844cb76da

7 years agoAPI: Remove deprecated response values from action=login
Gergő Tisza [Fri, 7 Oct 2016 04:38:24 +0000 (04:38 +0000)]
API: Remove deprecated response values from action=login

Re-apply 23e5cdb after temporarily reverting in fda4d48 due to bot breakage.

Bug: T121527
Change-Id: Ia89719d8bbebb7446b9c41cc9f29ecf26c75839b

7 years agoMerge "API: Add hooks for ApiQueryBase's query and row-processing"
jenkins-bot [Fri, 7 Oct 2016 04:36:45 +0000 (04:36 +0000)]
Merge "API: Add hooks for ApiQueryBase's query and row-processing"

7 years agoAPI: Add hooks for ApiQueryBase's query and row-processing
Brad Jorsch [Wed, 14 Sep 2016 18:22:35 +0000 (14:22 -0400)]
API: Add hooks for ApiQueryBase's query and row-processing

This will allow extensions to inject into the query to implement
"xxshow" parameters, and to add additional properties to the output
data for "xxprop" parameters.

Also, call these new hooks from ApiQueryRevisions, ApiQueryAllRevisions,
ApiQueryUserContributions, and ApiQueryRecentChanges since I701e8e19 is
going to be wanting them.

Bug: T143614
Bug: T143616
Change-Id: Id6b42c7f2eb53a6f659d0d61383287f41d96ca00

7 years agoMinor LoadBalancer cleanups
Aaron Schulz [Thu, 6 Oct 2016 16:52:17 +0000 (09:52 -0700)]
Minor LoadBalancer cleanups

* Close the master connection in safeWaitForMasterPos() if created.
* Remove unnecessary reuseConnection() calls.
* Add DOMAIN_ANY constant for readability.

Change-Id: I9e64a7405e0eedc50e7b93d05d65cf00d5544a77

7 years agoReplace false for null in sourceFile() call
Reedy [Fri, 7 Oct 2016 00:12:31 +0000 (01:12 +0100)]
Replace false for null in sourceFile() call

Bug: T147609
Change-Id: I79f556efbe9e75919c4d59beca621d7f8ac54bb8

7 years agoDeprecation of 2 more ContentHandler hooks
Reedy [Thu, 6 Oct 2016 23:27:34 +0000 (00:27 +0100)]
Deprecation of 2 more ContentHandler hooks

ArticleInsertComplete, ArticleSaveComplete

Bug: T145728
Bug: T147388
Bug: T147390
Change-Id: Ib861d3ee72bdaecfd91b7e719bc8054789ccd489

7 years agoMerge "Make DatabaseMysqlBase use connLogger for connection errors"
jenkins-bot [Thu, 6 Oct 2016 23:04:44 +0000 (23:04 +0000)]
Merge "Make DatabaseMysqlBase use connLogger for connection errors"

7 years agoMerge "Make more ContentHandler replaced hooks emit deprecation warnings"
jenkins-bot [Thu, 6 Oct 2016 22:58:54 +0000 (22:58 +0000)]
Merge "Make more ContentHandler replaced hooks emit deprecation warnings"

7 years agoMerge "Make ShowRawCssJs hook emit deprecated warnings"
jenkins-bot [Thu, 6 Oct 2016 22:57:40 +0000 (22:57 +0000)]
Merge "Make ShowRawCssJs hook emit deprecated warnings"

7 years agoMake more ContentHandler replaced hooks emit deprecation warnings
Reedy [Thu, 6 Oct 2016 13:44:00 +0000 (14:44 +0100)]
Make more ContentHandler replaced hooks emit deprecation warnings

ArticleAfterFetchContent, ArticleSave

Bug: T145728
Bug: T147387
Bug: T147389
Change-Id: I58a0c46b95b8ef02ff55851cfdec7e9d6eeed83c

7 years agoMerge "Add 'pmid' to the default interwiki list, and update 'rfc'"
jenkins-bot [Thu, 6 Oct 2016 22:40:02 +0000 (22:40 +0000)]
Merge "Add 'pmid' to the default interwiki list, and update 'rfc'"

7 years agoAdd 'pmid' to the default interwiki list, and update 'rfc'
Kunal Mehta [Thu, 6 Oct 2016 02:55:46 +0000 (19:55 -0700)]
Add 'pmid' to the default interwiki list, and update 'rfc'

As an alternative to using magic links, PMID was added to the default
interwiki list.

RFC already existed, but the URL in the default list was pointing to
rfc-editor.org, not the tools.ietf.org view like the RFC magic link or
Wikimedia interwiki map are.

Updating the default lists in maintenance/interwiki* only affects new
installations, so a post-database update maintenance script adds and
updates the two interwiki prefixes.

Bug: T147536
Change-Id: I5a2c2c9b0f989da62a4395c9516d880c7d923444

7 years agoMerge "Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction"
jenkins-bot [Thu, 6 Oct 2016 21:41:38 +0000 (21:41 +0000)]
Merge "Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction"

7 years agoMake ShowRawCssJs hook emit deprecated warnings
Reedy [Thu, 6 Oct 2016 13:37:54 +0000 (14:37 +0100)]
Make ShowRawCssJs hook emit deprecated warnings

Bug: T147392
Change-Id: Iae3b1532a91a9bf545a0a3c8df1df5e59b4974db

7 years agoMake WikiPage::prepareTextForEdit() emit deprecation warnings
Reedy [Thu, 6 Oct 2016 13:27:20 +0000 (14:27 +0100)]
Make WikiPage::prepareTextForEdit() emit deprecation warnings

Bug: T146168
Change-Id: I2f68d920bf39d787d5143cd5dba4e09cb3635fe0

7 years agoAdd @deprecated to Article::prepareTextForEdit()
Reedy [Thu, 6 Oct 2016 13:22:23 +0000 (14:22 +0100)]
Add @deprecated to Article::prepareTextForEdit()

Bug: T146166
Change-Id: Id7d56b49ebe058e022774d75aff2d11784d32fa5

7 years agoMerge "Use getConnectionRef() in ForeignDBViaLBRepo"
jenkins-bot [Thu, 6 Oct 2016 13:14:35 +0000 (13:14 +0000)]
Merge "Use getConnectionRef() in ForeignDBViaLBRepo"

7 years agoMerge "Fix numerous FileRepo IDEA warnings"
jenkins-bot [Thu, 6 Oct 2016 13:13:07 +0000 (13:13 +0000)]
Merge "Fix numerous FileRepo IDEA warnings"

7 years agoMerge "Revision->insertOn: Set READ_LATEST flag"
jenkins-bot [Thu, 6 Oct 2016 07:07:21 +0000 (07:07 +0000)]
Merge "Revision->insertOn: Set READ_LATEST flag"

7 years agoRevision->insertOn: Set READ_LATEST flag
Matthew Flaschen [Thu, 6 Oct 2016 04:31:30 +0000 (00:31 -0400)]
Revision->insertOn: Set READ_LATEST flag

Inserting new revisions requires master by definition.  Without this,
there can be problems when creating multiple revisions in a
transaction (i.e. a null revision pointed to a text_id borrowed
from a just-created revision).

Bug: T138310
Change-Id: I10773612f04b6525f9c8bc27a96bcb8a77831816

7 years agouse Wikimedia\ScopedCallback in WatchedItemStore
addshore [Wed, 5 Oct 2016 18:50:16 +0000 (19:50 +0100)]
use Wikimedia\ScopedCallback in WatchedItemStore

Change-Id: I4292c6098cc54536e3dbb2bcf19fca1288042535

7 years agoIgnore reuseConnection() errors after LoadBalancer/LBFactory destruction
Aaron Schulz [Thu, 6 Oct 2016 00:53:35 +0000 (17:53 -0700)]
Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction

Bug: T147520
Change-Id: I9fe6acb0ab24127c1e9f3279129ff46c6b480873

7 years agoMerge "Make Revision::getText() emit deprecation warnings."
jenkins-bot [Thu, 6 Oct 2016 00:49:42 +0000 (00:49 +0000)]
Merge "Make Revision::getText() emit deprecation warnings."

7 years agoUse getConnectionRef() in ForeignDBViaLBRepo
Aaron Schulz [Thu, 6 Oct 2016 00:10:43 +0000 (17:10 -0700)]
Use getConnectionRef() in ForeignDBViaLBRepo

This assures that reuseConnection() will be called.

Change-Id: I6b9eb695d08045433ebb3204c0f72bcf63f21568

7 years agoMark 3 hooks deprecated by ContentHandler as such
Reedy [Wed, 5 Oct 2016 00:20:08 +0000 (01:20 +0100)]
Mark 3 hooks deprecated by ContentHandler as such

ArticleViewCustom, EditPageGetDiffText and EditPageGetPreviewText hooks
now marked as deprecated in 1.21.

TitleIsCssOrJsPage and TitleIsWikitextPage deprecation version dropped
from 1.25 to 1.21 to match other hooks.

Bug: T145728
Bug: T147382
Bug: T147383
Bug: T147384
Bug: T147385
Bug: T147386
Change-Id: I59b6b9f253857eb1040dad879a71e0d8cf141553

7 years agoFix numerous FileRepo IDEA warnings
Aaron Schulz [Wed, 5 Oct 2016 22:50:33 +0000 (15:50 -0700)]
Fix numerous FileRepo IDEA warnings

Change-Id: I3522f37b675efffb68dec9d125faacd8c8776e64

7 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Wed, 5 Oct 2016 22:36:12 +0000 (22:36 +0000)]
Merge "Sync up with Parsoid parserTests."

7 years agoSync up with Parsoid parserTests.
Arlo Breault [Wed, 5 Oct 2016 22:22:46 +0000 (15:22 -0700)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 5ce2da6623fbf6716d57f2cd25083ddfea97fe66

Change-Id: I3020cbbe620be05dd76778185f739f907fe5699b

7 years agoMerge "Add more information to reuseConnection() exceptions"
jenkins-bot [Wed, 5 Oct 2016 22:14:42 +0000 (22:14 +0000)]
Merge "Add more information to reuseConnection() exceptions"

7 years agoAdd more information to reuseConnection() exceptions
Aaron Schulz [Wed, 5 Oct 2016 22:02:59 +0000 (15:02 -0700)]
Add more information to reuseConnection() exceptions

Change-Id: Id2e6b275c8dc074fde460424178a2bc54f303d65

7 years agoMerge "ObjectCache::newFromParams fix SqlBagOStuff backcompat"
jenkins-bot [Wed, 5 Oct 2016 21:55:45 +0000 (21:55 +0000)]
Merge "ObjectCache::newFromParams fix SqlBagOStuff backcompat"

7 years agoObjectCache::newFromParams fix SqlBagOStuff backcompat
addshore [Wed, 5 Oct 2016 09:46:50 +0000 (10:46 +0100)]
ObjectCache::newFromParams fix SqlBagOStuff backcompat

Bug: T147407
Change-Id: I718d01b309d96deeb9f7aa1fdcdee9f824657f9d

7 years agoMerge "Make LoadMonitor use $serverIndexes in the cache key"
jenkins-bot [Wed, 5 Oct 2016 20:54:38 +0000 (20:54 +0000)]
Merge "Make LoadMonitor use $serverIndexes in the cache key"

7 years agoMerge "API: Add assertuser parameter"
jenkins-bot [Wed, 5 Oct 2016 20:48:27 +0000 (20:48 +0000)]
Merge "API: Add assertuser parameter"

7 years agoAPI: Add assertuser parameter
Brad Jorsch [Wed, 5 Oct 2016 14:35:47 +0000 (10:35 -0400)]
API: Add assertuser parameter

This was requested for the use of scripts that are concerned about the
possibility that the user might log in with a different account in
another browser window, thereby changing the expected user out from
underneath the script.

Bug: T146770
Change-Id: I94e0421cb263a418e86649f0d22ece4cfec6a395

7 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Wed, 5 Oct 2016 20:14:39 +0000 (20:14 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "Use a parameterized log for sub-optimal transaction logging"
jenkins-bot [Wed, 5 Oct 2016 20:13:06 +0000 (20:13 +0000)]
Merge "Use a parameterized log for sub-optimal transaction logging"

7 years agoMake LoadMonitor use $serverIndexes in the cache key
Aaron Schulz [Wed, 5 Oct 2016 19:47:10 +0000 (12:47 -0700)]
Make LoadMonitor use $serverIndexes in the cache key

* This avoids collisions of generic and custom LB group
  server list keys, which could cause warnings and errors.
* Remove $group param from scaleLoads(), which was unused
  and less robust for making keys anyway.
* Remove clearCaches() method, which only had one caller
  in a script that printed lag times in a loop. Its not
  worth keeping and having to pass in the server index
  list.
* Also guard scaleLoads() against recent server additions.

Bug: T147359
Change-Id: Idd15f0bebb68782fda36f483880cf7fe9673b940

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 5 Oct 2016 20:00:55 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie4dfc8aa86398d16e2c7af45075e969c8c9a5969

7 years agoUse a parameterized log for sub-optimal transaction logging
Erik Bernhardson [Wed, 5 Oct 2016 19:30:18 +0000 (12:30 -0700)]
Use a parameterized log for sub-optimal transaction logging

In logstash these messages can't be grouped in any way, because they are
all slightly different. By using a parameterized log message these can
be grouped to give a better overview about the size of a problem.

Change-Id: Icfa957bd1775b49bccd6e9920586c94eb4597f9b

7 years agoMerge "ApiHelp: Add directionality to various things that are likely English-like"
jenkins-bot [Wed, 5 Oct 2016 18:12:43 +0000 (18:12 +0000)]
Merge "ApiHelp: Add directionality to various things that are likely English-like"

7 years agoMerge "ApiBase: Remove deprecated getResultData()"
jenkins-bot [Wed, 5 Oct 2016 18:09:48 +0000 (18:09 +0000)]
Merge "ApiBase: Remove deprecated getResultData()"

7 years agoApiSandbox: Ungrey the field label before disabling field label greying
Brad Jorsch [Wed, 5 Oct 2016 17:47:54 +0000 (13:47 -0400)]
ApiSandbox: Ungrey the field label before disabling field label greying

It appears that 5c8f9d8a4ce changed something to start greying out the
FieldLayout label, which is what we're specifically trying to avoid
here.

Bug: T147485
Change-Id: I3c3a3b0ea2176c94a247b8c0d4f99d1f090cb239

7 years agoobjectcache: add WANObjectCache::getMultiWithSetCallback()
Aaron Schulz [Tue, 13 Sep 2016 07:00:11 +0000 (00:00 -0700)]
objectcache: add WANObjectCache::getMultiWithSetCallback()

This does what it says on the tin, e.g. a way to fetch
multiple keys at once. Callbacks are still called in a
serial manner when needed.

Change-Id: I8e24a6de7f46499a53ec41636c5a4f106b9b3d09

7 years agoSetting flexible width on Special:Search results
Jan Drewniak [Wed, 5 Oct 2016 09:06:09 +0000 (11:06 +0200)]
Setting flexible width on Special:Search results

Because the search results are set to a static
width of 38em, they cause horizontal scrolling
on mobile devices. This patch changes the CSS
width to a max-width instead.

Bug: T138108
Change-Id: I14dbc6877d93183c523ce4ece57ec5968d4941cf

7 years agoMerge "Add a continuation button to ApiSandbox"
jenkins-bot [Wed, 5 Oct 2016 14:36:08 +0000 (14:36 +0000)]
Merge "Add a continuation button to ApiSandbox"

7 years agoAdd a continuation button to ApiSandbox
Gergő Tisza [Fri, 23 Sep 2016 01:50:05 +0000 (01:50 +0000)]
Add a continuation button to ApiSandbox

Change-Id: I4def43b2000b5639e3ced2643afea4b1288e28b0

7 years agoMerge "Make Special:MIMESearch non-expensive, again"
jenkins-bot [Wed, 5 Oct 2016 03:20:00 +0000 (03:20 +0000)]
Merge "Make Special:MIMESearch non-expensive, again"

7 years agoMerge "Pass Job success status to teardown callbacks"
jenkins-bot [Wed, 5 Oct 2016 03:02:59 +0000 (03:02 +0000)]
Merge "Pass Job success status to teardown callbacks"

7 years agoPass Job success status to teardown callbacks
Gergő Tisza [Wed, 5 Oct 2016 01:16:56 +0000 (01:16 +0000)]
Pass Job success status to teardown callbacks

Change-Id: Icf2e03efcfd9232fe4ead776096b61cef1c06141

7 years agoMake Revision::getText() emit deprecation warnings.
Reedy [Wed, 5 Oct 2016 00:55:49 +0000 (01:55 +0100)]
Make Revision::getText() emit deprecation warnings.

Bug: T147380
Change-Id: Idae98ee9360acc8f4593ff623ceef4dbb0d27c04