lhc/web/wiklou.git
7 years agoMerge "build: karma now reports with mocha formatter"
jenkins-bot [Sat, 25 Mar 2017 13:18:16 +0000 (13:18 +0000)]
Merge "build: karma now reports with mocha formatter"

7 years agoMerge "Ensure we use mw.now() instead of 'new Date' for relative measurement"
jenkins-bot [Sat, 25 Mar 2017 03:56:12 +0000 (03:56 +0000)]
Merge "Ensure we use mw.now() instead of 'new Date' for relative measurement"

7 years agoEnsure we use mw.now() instead of 'new Date' for relative measurement
Timo Tijhof [Sat, 25 Mar 2017 03:37:23 +0000 (20:37 -0700)]
Ensure we use mw.now() instead of 'new Date' for relative measurement

'new Date' is subject to clock drift etc.

mw.now() uses performance.now() when available, which will always
increase at a constant rate independent of the system clock.

Change-Id: Ib653103bf6116544f35c930fb33421f1bb362c7d

7 years agoTweak CSS for Parsoid <figure>s
Subramanya Sastry [Sat, 25 Mar 2017 02:54:07 +0000 (21:54 -0500)]
Tweak CSS for Parsoid <figure>s

* These tweaks give us zero pixel diffs for images (when the
  magnify icon is hidden) outside galleries.

Change-Id: Icd5a280a13162401f0bced93a91f9dfa45a3a481

7 years agoMerge "Decode '0'-valued user options to integer 0"
jenkins-bot [Sat, 25 Mar 2017 01:50:56 +0000 (01:50 +0000)]
Merge "Decode '0'-valued user options to integer 0"

7 years agoMerge "Add @since tags to WikiRevision"
jenkins-bot [Sat, 25 Mar 2017 01:14:17 +0000 (01:14 +0000)]
Merge "Add @since tags to WikiRevision"

7 years agoMerge "Add missing @group Database tags in tests"
jenkins-bot [Sat, 25 Mar 2017 01:13:53 +0000 (01:13 +0000)]
Merge "Add missing @group Database tags in tests"

7 years agoMerge "Check for string initialization in lcfirst() for HHVM 3.18"
jenkins-bot [Sat, 25 Mar 2017 01:03:20 +0000 (01:03 +0000)]
Merge "Check for string initialization in lcfirst() for HHVM 3.18"

7 years agoAdd @since tags to WikiRevision
addshore [Thu, 16 Mar 2017 09:51:54 +0000 (09:51 +0000)]
Add @since tags to WikiRevision

Change-Id: I02005184d2cb3fa50aa0a51221b40e7c621219d2

7 years agoqunit: Remove experimental CompletenessTest feature
Timo Tijhof [Sat, 25 Mar 2017 00:33:40 +0000 (17:33 -0700)]
qunit: Remove experimental CompletenessTest feature

The CompletenessTest was my attempt at measuring a basic code coverage
using run-time inspection instead of static instrumentation.

Originally added in 540419a82e5a5 (2010; MediaWiki 1.17).

It was never finished, remained fairly buggy and disabled by default.
It is also no longer used anywhere.

Bug: T155194
Change-Id: I26e7466426dddb43596f402e31005a89060c1b96

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Mar 2017 20:53:45 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I52ddf38b7a669842ed8157f5929cf4519ff9a57a

7 years agoCheck for string initialization in lcfirst() for HHVM 3.18
Antoine Musso [Fri, 24 Mar 2017 14:19:36 +0000 (15:19 +0100)]
Check for string initialization in lcfirst() for HHVM 3.18

HHVM 3.18 emits a notice when attempting to access the first offset of
an empty string.  We had that fixed for ucfirst() in 3605066c96. This is
the same for lcfirst().

Bug: T161095
Change-Id: I1456611222c24290f259298e883ca89dd830c74b

7 years agoRC Filters docs: Directly mention group classes
Matthew Flaschen [Fri, 24 Mar 2017 01:07:38 +0000 (21:07 -0400)]
RC Filters docs: Directly mention group classes

Directly mention ChangesListBooleanFilterGroup and
ChangesListStringOptionsFilterGroup so people know what to construct.

Change-Id: I3c105d072889c1da26f94402326ba48635081833

7 years agoMerge "SpecialAllMessages: Remove unused variable langcode"
jenkins-bot [Thu, 23 Mar 2017 23:37:43 +0000 (23:37 +0000)]
Merge "SpecialAllMessages: Remove unused variable langcode"

7 years agoMerge "Tweak figure styles based on visual diff testing"
jenkins-bot [Thu, 23 Mar 2017 21:37:38 +0000 (21:37 +0000)]
Merge "Tweak figure styles based on visual diff testing"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Mar 2017 21:06:14 +0000 (22:06 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Id631b382683ce4ac3ef648bdb546821c74a9985c

7 years agoMerge "Follow-up Improve sorting on SpecialWanted*-Pages"
jenkins-bot [Thu, 23 Mar 2017 21:04:09 +0000 (21:04 +0000)]
Merge "Follow-up Improve sorting on SpecialWanted*-Pages"

7 years agoMerge "ResourceLoaderImage: Point to the right skin when generating URL"
jenkins-bot [Thu, 23 Mar 2017 18:40:29 +0000 (18:40 +0000)]
Merge "ResourceLoaderImage: Point to the right skin when generating URL"

7 years agoMerge "ResourceLoaderOOUIImageModule: Actually load non-default themes' images"
jenkins-bot [Thu, 23 Mar 2017 18:39:52 +0000 (18:39 +0000)]
Merge "ResourceLoaderOOUIImageModule: Actually load non-default themes' images"

7 years agoFollow-up Improve sorting on SpecialWanted*-Pages
Eddie Greiner-Petter [Wed, 22 Mar 2017 20:11:11 +0000 (21:11 +0100)]
Follow-up Improve sorting on SpecialWanted*-Pages

Change the SpecialWanted*-Pages so that they do sort
1. by the number of links to a site (as is now) and
2. alphabetically for entries which have the same number of links (new)

This is a follow-up for commit 5b15728.
The previous patch was reverted because using getOrderFields and
prefixing each order field with qc_ in fetchFromCache threw DB errors in
production. This follow-up differs in introducing a new function
getCacheOrderFields that defines order fields only for fetching from the
cache and doesn't reuse getOrderFields which is for the raw query
(without cache). It returns ['value'] by default and thus keeps the
known behaviour.

Bug: T4335
Change-Id: Ic01a3c28892c78ba9a9f0a7d665937efe87b44bd

7 years agoMerge "RCFilters: Only show filter capsule as conflicted if it's selected"
jenkins-bot [Thu, 23 Mar 2017 18:25:21 +0000 (18:25 +0000)]
Merge "RCFilters: Only show filter capsule as conflicted if it's selected"

7 years agoRCFilters: Only show filter capsule as conflicted if it's selected
Moriel Schottlender [Thu, 23 Mar 2017 18:03:56 +0000 (11:03 -0700)]
RCFilters: Only show filter capsule as conflicted if it's selected

Bug: T161172
Change-Id: Ib15ffd58290c616de216178cee6ae9b86178d871

7 years agoDecode '0'-valued user options to integer 0
Brad Jorsch [Tue, 21 Mar 2017 12:42:52 +0000 (08:42 -0400)]
Decode '0'-valued user options to integer 0

I13d0e402f fixed a MySQL strict-mode bug by having boolean false be
sent to the database as 0 rather than "", since so many of our
logically-boolean fields are typed as tinyints. That happened to also
cause logically-false user preferences to be stored in the
user_properties table as "0" rather than "", which works fine in PHP but
confuses JavaScript since it considers string-0 as truthy rather than
falsey.

To avoid this situation, convert "0" to 0 when loading the user
options. Completely solving T54542 is left for another time, since
identifying which type to normalize each option to seems nontrivial.

Change-Id: Ia3280b7ce923641eac077141b47cba10d3fb88db

7 years agoMerge "RCFilters UI: Pass in userId to ChangesListHighlights schema"
jenkins-bot [Thu, 23 Mar 2017 11:13:23 +0000 (11:13 +0000)]
Merge "RCFilters UI: Pass in userId to ChangesListHighlights schema"

7 years agoMerge "RemexCompatMunger: fix a couple of memory leaks"
jenkins-bot [Thu, 23 Mar 2017 04:15:52 +0000 (04:15 +0000)]
Merge "RemexCompatMunger: fix a couple of memory leaks"

7 years agoMerge "Update RemexHtml to 1.0.1"
jenkins-bot [Thu, 23 Mar 2017 03:40:24 +0000 (03:40 +0000)]
Merge "Update RemexHtml to 1.0.1"

7 years agoAdd MusikAnimal to CREDITS
Eddie Greiner-Petter [Tue, 21 Mar 2017 15:34:32 +0000 (16:34 +0100)]
Add MusikAnimal to CREDITS

Ran maintenance/updateCredits.php which determines new contributors
using git log. Found 1.

Change-Id: I0d3a2626051ca058ea391c39550d4c1d19f4f133

7 years agoRemexCompatMunger: fix a couple of memory leaks
Tim Starling [Thu, 23 Mar 2017 01:50:14 +0000 (12:50 +1100)]
RemexCompatMunger: fix a couple of memory leaks

Change-Id: I47578b3f73320e84a157417c288de97b5d26e18f

7 years agoUpdate RemexHtml to 1.0.1
Tim Starling [Thu, 23 Mar 2017 01:47:38 +0000 (12:47 +1100)]
Update RemexHtml to 1.0.1

For a bug fix

Depends-On: I4421afbfa52d7711d9369398891e91ae09db50c9
Change-Id: I5285c0b1c6f42891c002637cd3e4bd2f54615940

7 years agoRCFilters UI: Pass in userId to ChangesListHighlights schema
Roan Kattouw [Wed, 22 Mar 2017 22:08:12 +0000 (15:08 -0700)]
RCFilters UI: Pass in userId to ChangesListHighlights schema

Bug: T160928
Depends-On: Ia2bc679e37deb34b215ad16dfc3b8cfefdc8365c
Change-Id: I9d3f9281c2681ab1c89676234ddd544f76f3dc7f

7 years agoMerge "Allow extensions to add jQueryMsg magic words"
jenkins-bot [Wed, 22 Mar 2017 21:18:19 +0000 (21:18 +0000)]
Merge "Allow extensions to add jQueryMsg magic words"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 22 Mar 2017 21:02:54 +0000 (22:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I83074d7d6edd5cf2e3b69d0bb2382012a5b4e438

7 years agoMerge "RCFilters UI: Make the 'no results' message bold"
jenkins-bot [Wed, 22 Mar 2017 19:30:35 +0000 (19:30 +0000)]
Merge "RCFilters UI: Make the 'no results' message bold"

7 years agoMerge "RCFilters: Normalize overlay font-size for Monobook"
jenkins-bot [Wed, 22 Mar 2017 19:28:29 +0000 (19:28 +0000)]
Merge "RCFilters: Normalize overlay font-size for Monobook"

7 years agoAllow extensions to add jQueryMsg magic words
Matthew Flaschen [Wed, 22 Mar 2017 06:09:48 +0000 (02:09 -0400)]
Allow extensions to add jQueryMsg magic words

Change-Id: Ie82a147ff32ccda3f757108474f5cbab71d45ace

7 years agoMerge "Stop declaring ImageHistoryPseudoPager props dynamically"
jenkins-bot [Wed, 22 Mar 2017 16:32:01 +0000 (16:32 +0000)]
Merge "Stop declaring ImageHistoryPseudoPager props dynamically"

7 years agoStop declaring ImageHistoryPseudoPager props dynamically
addshore [Wed, 22 Mar 2017 12:21:24 +0000 (12:21 +0000)]
Stop declaring ImageHistoryPseudoPager props dynamically

The 3 properties declared here were introduced in:
0ca92d0bf5dd4e71b678d373a1beb3089d16a866

Change-Id: Ibbd0a86f02ab010720446db1aa2dc9ea0eb05aef

7 years agoMerge "Fix log msg param in UploadFromUrl::saveTempFileChunk"
jenkins-bot [Wed, 22 Mar 2017 14:46:45 +0000 (14:46 +0000)]
Merge "Fix log msg param in UploadFromUrl::saveTempFileChunk"

7 years agoMerge "Mark public methods as public in ImageHistoryPseudoPager"
jenkins-bot [Wed, 22 Mar 2017 14:43:55 +0000 (14:43 +0000)]
Merge "Mark public methods as public in ImageHistoryPseudoPager"

7 years agoMerge "Bugzilla -> Phab task number in $wgUrlProtocols phpdoc"
jenkins-bot [Wed, 22 Mar 2017 14:40:37 +0000 (14:40 +0000)]
Merge "Bugzilla -> Phab task number in $wgUrlProtocols phpdoc"

7 years agoMerge "Fix undefined ExternalStore::decompressRevisionText"
jenkins-bot [Wed, 22 Mar 2017 13:17:46 +0000 (13:17 +0000)]
Merge "Fix undefined ExternalStore::decompressRevisionText"

7 years agoCheck for string initialization in ucfirst() to make HHVM 3.18 happy
Andre Klapper [Wed, 22 Mar 2017 12:16:19 +0000 (13:16 +0100)]
Check for string initialization in ucfirst() to make HHVM 3.18 happy

Bug: T161095
Change-Id: I45b5d9e819061f443d4342c004bad80bd87c2a17

7 years agoMark public methods as public in ImageHistoryPseudoPager
addshore [Wed, 22 Mar 2017 12:16:00 +0000 (12:16 +0000)]
Mark public methods as public in ImageHistoryPseudoPager

Change-Id: Iad4442d87df683daca978fa95068f9ca5221d8a5

7 years agoFix undefined ExternalStore::decompressRevisionText
Paladox [Wed, 22 Mar 2017 11:16:11 +0000 (11:16 +0000)]
Fix undefined ExternalStore::decompressRevisionText

make ExternalStore::decompressRevisionText self::decompressRevisionText

Change-Id: I3dc7317550f47e7e94d1403d3861d1059c7af6c9

7 years agoFix log msg param in UploadFromUrl::saveTempFileChunk
addshore [Wed, 22 Mar 2017 10:39:46 +0000 (10:39 +0000)]
Fix log msg param in UploadFromUrl::saveTempFileChunk

$this->nbytes does not exist and is never written to.
It is probably intended that this uses the local $nbytes.

Change-Id: I8e923a27625d04c81b2e272a597d40d59397851f

7 years agoBugzilla -> Phab task number in $wgUrlProtocols phpdoc
addshore [Wed, 22 Mar 2017 10:02:55 +0000 (10:02 +0000)]
Bugzilla -> Phab task number in $wgUrlProtocols phpdoc

Change-Id: I1478ece1691d0b86aeae272dd041425eac4ed960

7 years agoMerge "Make Revision::getRevisionText() cache the converted text"
jenkins-bot [Wed, 22 Mar 2017 04:38:21 +0000 (04:38 +0000)]
Merge "Make Revision::getRevisionText() cache the converted text"

7 years agoMake Revision::getRevisionText() cache the converted text
Aaron Schulz [Wed, 22 Mar 2017 04:20:40 +0000 (21:20 -0700)]
Make Revision::getRevisionText() cache the converted text

Follows-up c2bbb51c2082.

This makes it consistent with Revision::loadText() to avoid polluting
the text cache values.

Bug: T161037
Change-Id: If2bd114870c7f7db0e56d4e8092a5dd722d3bde5

7 years agoMerge "resourceloader: Follow redirects for JavaScript/CSS in WikiModule"
jenkins-bot [Wed, 22 Mar 2017 03:59:40 +0000 (03:59 +0000)]
Merge "resourceloader: Follow redirects for JavaScript/CSS in WikiModule"

7 years agoMerge "Cast to bool in Database::update"
jenkins-bot [Wed, 22 Mar 2017 02:22:11 +0000 (02:22 +0000)]
Merge "Cast to bool in Database::update"

7 years agoMerge "RCFilters: Add conflicts for minor edits"
jenkins-bot [Wed, 22 Mar 2017 02:16:07 +0000 (02:16 +0000)]
Merge "RCFilters: Add conflicts for minor edits"

7 years agoRCFilters: Add conflicts for minor edits
Moriel Schottlender [Mon, 20 Mar 2017 23:26:15 +0000 (16:26 -0700)]
RCFilters: Add conflicts for minor edits

Bug: T160803
Change-Id: I91d736d772e36f54144330c30092fac85dc70d20

7 years agoTweak figure styles based on visual diff testing
Subramanya Sastry [Tue, 21 Mar 2017 23:50:48 +0000 (18:50 -0500)]
Tweak figure styles based on visual diff testing

* These bring figure rendering with whitespace much closer to
  the PHP parser rendering. Someone with better CSS chops should
  be able to verify / tweak this more.

Change-Id: Ia5cc191a57a34c04189ee57f6bde0387e9e683aa

7 years agoDeprecate WikiRevision::$user
addshore [Thu, 16 Mar 2017 10:30:11 +0000 (10:30 +0000)]
Deprecate WikiRevision::$user

This was introduced in 436a028086fb3f01c4605c5ad2964d56f9306aca
but was not used there.
It also currently looks unused.

We could go ahead and just remove this now, as anything that wants
to set the $user when the property is removed would still succeed.
But lets adhere to the deprecation policy here.

Change-Id: Id47323bb1ff480a16b46107825ed5f2f861ad976

7 years agoDeprecate WikiRevision::$importer
addshore [Thu, 16 Mar 2017 10:18:59 +0000 (10:18 +0000)]
Deprecate WikiRevision::$importer

This was introduced in 9b3128eb2b654761f21fd4ca1d5a1a4b796dc912
but was not used there.
It also currently looks unused, even when grepping for possible
magic usages of 'importer' and "importer".

We could go ahead and just remove this now, as anything that wants
to set the $importer when the property is removed would still succeed.
But lets adhere to the deprecation policy here.

Change-Id: I5ac16dd87a95be6a3cdd4b16988d37d1d6104749

7 years agoDeprecate WikiRevision::$fileIsTemp and fix $isTemp
addshore [Thu, 16 Mar 2017 10:09:03 +0000 (10:09 +0000)]
Deprecate WikiRevision::$fileIsTemp and fix $isTemp

Cleanup from 43d5d3b682cc1733ad01a837d11af4a402d57e6a

This commit introduces both $fileIsTemp $isTemp
It would appear that the intent was to have one property here
and it looks like both of these are meant to do the same thing.

It also looks as if both public properties are actually unused
(only used by the getter and setters)

As isTemp will now sometimes return true line 766 $autoDeleteSource
will be true in new cases.
As a result $tmpFile->autocollect(); will be called in more cases

Change-Id: I8014172fb9fd7a0e4a89d0872bafdf6c50f92646

7 years agoRCFilters: Normalize overlay font-size for Monobook
Moriel Schottlender [Tue, 21 Mar 2017 22:05:53 +0000 (15:05 -0700)]
RCFilters: Normalize overlay font-size for Monobook

Bug: T161033
Change-Id: Ia2215046f6d3fd026ecd1b27625cb94e806ababf

7 years agoCast to bool in Database::update
addshore [Tue, 21 Mar 2017 22:37:30 +0000 (22:37 +0000)]
Cast to bool in Database::update

The interface is documented as returning a bool, so stick to that
interface.

Bug: T160956
Change-Id: I725651e1d66fdd6c52ef82e93fd9e3c837edb022

7 years agoRCFilters UI: Make the 'no results' message bold
Moriel Schottlender [Tue, 21 Mar 2017 21:49:35 +0000 (14:49 -0700)]
RCFilters UI: Make the 'no results' message bold

Bug: T160935
Change-Id: I237c81abfbd50e910e428cc495e38f3d364500e0

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 21 Mar 2017 21:01:20 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iecc7b545f9858bef1789765e5abf010802638fd1

7 years agoMerge "Update OOjs UI to v0.20.0"
jenkins-bot [Tue, 21 Mar 2017 20:02:30 +0000 (20:02 +0000)]
Merge "Update OOjs UI to v0.20.0"

7 years agoMerge "maintenance: Fix broken url in comment for createCommonPasswordCdb.php"
jenkins-bot [Tue, 21 Mar 2017 08:18:57 +0000 (08:18 +0000)]
Merge "maintenance: Fix broken url in comment for createCommonPasswordCdb.php"

7 years agoMerge "Remove erroneous space in unset() call"
jenkins-bot [Tue, 21 Mar 2017 02:32:39 +0000 (02:32 +0000)]
Merge "Remove erroneous space in unset() call"

7 years agoMerge "SpecialRecentchanges: Unbreak $wgAllowCategorizedRecentChanges"
jenkins-bot [Tue, 21 Mar 2017 02:16:32 +0000 (02:16 +0000)]
Merge "SpecialRecentchanges: Unbreak $wgAllowCategorizedRecentChanges"

7 years agoMerge "User::getRights phpdoc from return array to string[]"
jenkins-bot [Tue, 21 Mar 2017 02:16:29 +0000 (02:16 +0000)]
Merge "User::getRights phpdoc from return array to string[]"

7 years agoRemove erroneous space in unset() call
Reedy [Tue, 21 Mar 2017 02:06:33 +0000 (02:06 +0000)]
Remove erroneous space in unset() call

Change-Id: I67cac037aa1db46ef60ae0c321c1394d9a3bd410

7 years agoRCFilters UI: Don't set reset button title in "restore" mode
Roan Kattouw [Mon, 20 Mar 2017 23:26:14 +0000 (16:26 -0700)]
RCFilters UI: Don't set reset button title in "restore" mode

In "clear" mode, the button only has an icon, so it needs a title.
In "restore" mode, the button has text, so it doesn't need a title,
much less a wrong one (the one from the "clear" mode).

Bonus: Remove properties from constructor that are already
set in reevaluateResetRestoreState().

Change-Id: Idab5731f51b42455801a505475002adf8437c66e

7 years agoMerge "Remove the localStorage replication of the block cookie"
jenkins-bot [Mon, 20 Mar 2017 23:16:31 +0000 (23:16 +0000)]
Merge "Remove the localStorage replication of the block cookie"

7 years agomaintenance: Fix broken url in comment for createCommonPasswordCdb.php
Timo Tijhof [Sat, 18 Mar 2017 01:12:32 +0000 (18:12 -0700)]
maintenance: Fix broken url in comment for createCommonPasswordCdb.php

Follows-up 2d15dcfc3f4b.

Use a permalink instead. The files have changed since.

Change-Id: I52882f29bb1d0fc791e8a43452c329344188fa53

7 years agoXml: Add test for listDropDown and remove unused getArrayFromWikiTextList
Timo Tijhof [Sat, 18 Mar 2017 01:25:12 +0000 (18:25 -0700)]
Xml: Add test for listDropDown and remove unused getArrayFromWikiTextList

Follows-up 4b49705613 and 8c7095be85 (T34950).

Change-Id: I95b7f7ce03b2cbe68215a7ff17afc1997a54f9b1

7 years agophpunit: Fix RecentChangeTest failure when coverage is enabled
Timo Tijhof [Mon, 20 Mar 2017 21:55:22 +0000 (14:55 -0700)]
phpunit: Fix RecentChangeTest failure when coverage is enabled

From <https://integration.wikimedia.org/ci/job/mediawiki-core-code-coverage/>

2) RecentChangeTest::testIsInRCLifespan with data set #0 (6000, 1490019080, 0, true)
   Failed asserting that false matches expected true.

3) RecentChangeTest::testIsInRCLifespan with data set #3 (3000, 1490016080, 6000, true)
   Failed asserting that false matches expected true.

Change-Id: I309bb229542f3af62e3e83025d88e77ecb55cd31

7 years agoMerge "Revert "RCFilters: Change reset button title when it changes state""
jenkins-bot [Mon, 20 Mar 2017 22:00:30 +0000 (22:00 +0000)]
Merge "Revert "RCFilters: Change reset button title when it changes state""

7 years agoMerge "Track usage of highlight feature"
jenkins-bot [Mon, 20 Mar 2017 21:48:35 +0000 (21:48 +0000)]
Merge "Track usage of highlight feature"

7 years agoRevert "RCFilters: Change reset button title when it changes state"
Catrope [Mon, 20 Mar 2017 21:43:32 +0000 (21:43 +0000)]
Revert "RCFilters: Change reset button title when it changes state"

It makes no sense to add a tooltip to a button that already
has text, especially if the tooltip text is (almost)
the same as the button text.

This reverts commit 31047fb1bf03944158fe4f7da99686e7955a3b5c.

Change-Id: I2f9c819a85fc05f37c7c0c5acf2d72319bdb0d76

7 years agoMerge "mediawiki.widgets: Remove autoEllipsis() from TitleOptionWidget"
jenkins-bot [Mon, 20 Mar 2017 21:35:43 +0000 (21:35 +0000)]
Merge "mediawiki.widgets: Remove autoEllipsis() from TitleOptionWidget"

7 years agoMerge "Adjust message history-fieldset-title"
jenkins-bot [Mon, 20 Mar 2017 21:18:58 +0000 (21:18 +0000)]
Merge "Adjust message history-fieldset-title"

7 years agoMerge "RCFilters: Scroll popup up to top when it is reopened"
jenkins-bot [Mon, 20 Mar 2017 21:00:12 +0000 (21:00 +0000)]
Merge "RCFilters: Scroll popup up to top when it is reopened"

7 years agoMerge "Disable filter by redirect Special:AllPages and query=allpages in miser mode"
jenkins-bot [Mon, 20 Mar 2017 20:03:37 +0000 (20:03 +0000)]
Merge "Disable filter by redirect Special:AllPages and query=allpages in miser mode"

7 years agoMerge "RecentChanges: Correct 'no matches found' message"
jenkins-bot [Mon, 20 Mar 2017 19:55:26 +0000 (19:55 +0000)]
Merge "RecentChanges: Correct 'no matches found' message"

7 years agoMerge "RCFilters: Change reset button title when it changes state"
jenkins-bot [Mon, 20 Mar 2017 19:50:54 +0000 (19:50 +0000)]
Merge "RCFilters: Change reset button title when it changes state"

7 years agoMerge "Use executeOpHandlesInternal() in SwiftFileBackend"
jenkins-bot [Mon, 20 Mar 2017 19:36:53 +0000 (19:36 +0000)]
Merge "Use executeOpHandlesInternal() in SwiftFileBackend"

7 years agoDisable filter by redirect Special:AllPages and query=allpages in miser mode
Reedy [Mon, 20 Mar 2017 17:54:40 +0000 (17:54 +0000)]
Disable filter by redirect Special:AllPages and query=allpages in miser mode

Bug: T160916
Change-Id: Ib9562b404731e1f621b9f07c33821d04cd2aa6ae

7 years agobuild: karma now reports with mocha formatter
Antoine Musso [Mon, 6 Mar 2017 20:13:04 +0000 (21:13 +0100)]
build: karma now reports with mocha formatter

The progress reporter is quite nice to avoid spammy output to the
terminal, but it is not very human friendly when trying to find out what
is breaking.

Mocha has a very nice reporting organized as modules and list items for
each of the tests:

ext.cx.tools.template
  ✖ Equivalent template exists
  ✔ Adapting a template not existing in target language
  ✖ Adapting template having invalid title
  ✖ Template name and params adaptation using templatedata
  ✖ Template params adaptation using templateData - English to French
  ✖ Template params adaptation using templateData - English to Spanish

Add karma-mocha-reporter node module and make it the reporter.

Change-Id: Ic7d848b45e8e5ad3839d8a2bd822b63838319ad7

7 years agoRCFilters: Scroll popup up to top when it is reopened
Moriel Schottlender [Mon, 20 Mar 2017 19:12:15 +0000 (12:12 -0700)]
RCFilters: Scroll popup up to top when it is reopened

Change-Id: I0cad078f2d6b3062189ca3aca0085e346667d1bf

7 years agoRecentChanges: Correct 'no matches found' message
Moriel Schottlender [Mon, 20 Mar 2017 18:57:42 +0000 (11:57 -0700)]
RecentChanges: Correct 'no matches found' message

Change-Id: Ic490fae5f3d7c474f368e981bfe9572108cf07e7

7 years agoRCFilters: Change reset button title when it changes state
Moriel Schottlender [Mon, 20 Mar 2017 18:21:16 +0000 (11:21 -0700)]
RCFilters: Change reset button title when it changes state

The button changes state between 'restore default filters' and
the trash icon which is to remove all selected filters.

The title for the button should also change accordingly.

Change-Id: I9070f0c4959f5c7c97d57d943103ae2baf89d6d2

7 years agoUse executeOpHandlesInternal() in SwiftFileBackend
Aaron Schulz [Mon, 13 Mar 2017 21:26:56 +0000 (14:26 -0700)]
Use executeOpHandlesInternal() in SwiftFileBackend

Instead calling doExecuteOpHandlesInternal() directly, use the
wrapper parent class method instead so that closeResources() is
called on all of the handles.

Change-Id: Iab0d4f7c08d155639a44f48147b78283059a6d24

7 years agomediawiki.widgets: Remove autoEllipsis() from TitleOptionWidget
Timo Tijhof [Sat, 18 Mar 2017 00:04:12 +0000 (17:04 -0700)]
mediawiki.widgets: Remove autoEllipsis() from TitleOptionWidget

Redundant with CSS 'text-overflow: ellipsis', which is already applied.

Aside from ellipsis overflow, autoEllipsis() was also serving as indirect
caller of `highlightText( option.matchText )` and `attr('title')`,
which we want to keep, so leave that in its place.

Bug: T160804
Change-Id: I550183750d66d769cc9c960150a2349d1b9181aa

7 years agoUser::getRights phpdoc from return array to string[]
addshore [Mon, 20 Mar 2017 17:38:39 +0000 (17:38 +0000)]
User::getRights phpdoc from return array to string[]

Change-Id: I188ed3d427f53ff773235d35ef277de0a3221777

7 years agoMerge "Selenium tests in Node.js using WebdriverIO"
jenkins-bot [Mon, 20 Mar 2017 17:05:58 +0000 (17:05 +0000)]
Merge "Selenium tests in Node.js using WebdriverIO"

7 years agoAdjust message history-fieldset-title
Umherirrender [Mon, 20 Mar 2017 15:55:58 +0000 (16:55 +0100)]
Adjust message history-fieldset-title

"Browse" could assume to browse the old wikitext of this page. Changed
it to "Search" similar to message sp-contributions-search, which is used
on Special:Contributions for a similar fieldset

Change-Id: I87b17d352999536c29df898c5822f61016bd7873

7 years agoMerge "RCFilters UI: Followup Ic97c7c6aae7: Only add state message if item is selected"
jenkins-bot [Mon, 20 Mar 2017 15:02:27 +0000 (15:02 +0000)]
Merge "RCFilters UI: Followup Ic97c7c6aae7: Only add state message if item is selected"

7 years agoSpecialRecentchanges: Unbreak $wgAllowCategorizedRecentChanges
Bartosz Dziewoński [Mon, 20 Mar 2017 14:26:47 +0000 (15:26 +0100)]
SpecialRecentchanges: Unbreak $wgAllowCategorizedRecentChanges

Bug: T85742
Change-Id: I8709af6031d1cb2d1b6d25eb250c1fce150514e7

7 years agoTrack usage of highlight feature
Stephane Bisson [Mon, 20 Mar 2017 10:54:35 +0000 (06:54 -0400)]
Track usage of highlight feature

Bug: T158344
Change-Id: I9a0c5e40b813e075ec33eea882b625dc43a15df6

7 years agoMerge "Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()"
jenkins-bot [Mon, 20 Mar 2017 09:32:47 +0000 (09:32 +0000)]
Merge "Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()"

7 years agoMerge "Avoid database connection in SpecialSearchTest data provider"
jenkins-bot [Mon, 20 Mar 2017 07:32:56 +0000 (07:32 +0000)]
Merge "Avoid database connection in SpecialSearchTest data provider"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 19 Mar 2017 20:53:59 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8909bf70bc12c12dd42e318e70987b0597760b67

7 years agoMerge "Remove deprecated noop functions"
jenkins-bot [Sun, 19 Mar 2017 09:30:53 +0000 (09:30 +0000)]
Merge "Remove deprecated noop functions"

7 years agoAdd missing @group Database tags in tests
aude [Sat, 18 Mar 2017 23:06:09 +0000 (19:06 -0400)]
Add missing @group Database tags in tests

Change-Id: Id92aab0b1f8cde6657d6558d0d82605109daa588

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 18 Mar 2017 21:03:51 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I525052178b2be3c22e4016cea54d96ea6e687a87