lhc/web/wiklou.git
6 years agoMerge "Migrate Special:Unblock to OOUI"
jenkins-bot [Fri, 29 Sep 2017 11:08:39 +0000 (11:08 +0000)]
Merge "Migrate Special:Unblock to OOUI"

6 years agoMerge "Update cleanupSpam.php to hide its activity from RecentChanges"
jenkins-bot [Fri, 29 Sep 2017 05:37:43 +0000 (05:37 +0000)]
Merge "Update cleanupSpam.php to hide its activity from RecentChanges"

6 years agoMerge "Improve namespace handling in tests"
jenkins-bot [Fri, 29 Sep 2017 05:33:26 +0000 (05:33 +0000)]
Merge "Improve namespace handling in tests"

6 years agoMerge "Fix patchfile used to add newtalk table on mysql"
jenkins-bot [Fri, 29 Sep 2017 05:31:59 +0000 (05:31 +0000)]
Merge "Fix patchfile used to add newtalk table on mysql"

6 years agoUpdate cleanupSpam.php to hide its activity from RecentChanges
MarcoAurelio [Tue, 19 Sep 2017 20:26:14 +0000 (22:26 +0200)]
Update cleanupSpam.php to hide its activity from RecentChanges

Spam cleanup activities, mostly when it comes from automated processes
(the so called 'spambots') can involve a fair ammount of edits and log
actions to accomplish.

As such, to avoid flooding Special:RecentChanges, this script will now
set a bot flag on the script run so its edits and actions won't show
up in that special page.

To prepare this patch I had the help of Bartosz Dziewoński which I'd
also like to thank and I'll credit as co-author as well.

Bug: T176206
Co-Authored-By: Bartosz Dziewoński <matma.rex@gmail.com>
Change-Id: Ifde08056a7481b877b4b82699cc0a5ea3f962dd9

6 years agoMerge "Do not include RC_EXTERNAL in number active users on Special:Statistics"
jenkins-bot [Fri, 29 Sep 2017 05:25:22 +0000 (05:25 +0000)]
Merge "Do not include RC_EXTERNAL in number active users on Special:Statistics"

6 years agoImprove namespace handling in tests
Brad Jorsch [Mon, 11 Sep 2017 20:37:18 +0000 (16:37 -0400)]
Improve namespace handling in tests

MWNamespace has three internal caches, only one of which can be cleared
(and that somewhat oddly by passing a boolean to
MWNamespace::getCanonicalNamespaces()).

This change introduces a MWNamespace::clearCaches() method to clear all
three caches. It also adds some resetting in tests that seemed to be
missing it.

Change-Id: I1dcfcd8713888b3ff8fc75e95329ba72bd95d0c9

6 years agoMerge "Revert "DumpFilter is autoloaded. No need to require in maintenance script""
jenkins-bot [Fri, 29 Sep 2017 05:18:09 +0000 (05:18 +0000)]
Merge "Revert "DumpFilter is autoloaded. No need to require in maintenance script""

6 years agoMerge "Consistently preserve anchors in the title specified in 'mainpage' message"
jenkins-bot [Fri, 29 Sep 2017 05:16:10 +0000 (05:16 +0000)]
Merge "Consistently preserve anchors in the title specified in 'mainpage' message"

6 years agoMerge "Fix CreditsAction when user has no real name set but real names enabled"
jenkins-bot [Fri, 29 Sep 2017 05:15:56 +0000 (05:15 +0000)]
Merge "Fix CreditsAction when user has no real name set but real names enabled"

6 years agoMerge "objectcache: Improve WANObjectCache test coverage"
jenkins-bot [Fri, 29 Sep 2017 05:15:53 +0000 (05:15 +0000)]
Merge "objectcache: Improve WANObjectCache test coverage"

6 years agoDo not include RC_EXTERNAL in number active users on Special:Statistics
Brian Wolff [Tue, 26 Sep 2017 21:40:04 +0000 (21:40 +0000)]
Do not include RC_EXTERNAL in number active users on Special:Statistics

We already exclude external (mostly Wikidata) actions from counting on
Special:ActiveUsers as of 56524c05. Should be consistent.

Change-Id: Ib69a614a65246a0f4f47365751f9bef130f47475

6 years agoFollow-up 67f04373d fix stupid typo
Brian Wolff [Thu, 28 Sep 2017 21:35:44 +0000 (21:35 +0000)]
Follow-up 67f04373d fix stupid typo

Fot should be For

Change-Id: I3cb87a94feea32f1c98345ceaa19f9a75fde266d

6 years agoMerge "Make the RC/Watchlist legend not jump when initially collapsed"
jenkins-bot [Thu, 28 Sep 2017 20:26:44 +0000 (20:26 +0000)]
Merge "Make the RC/Watchlist legend not jump when initially collapsed"

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

Change-Id: I02b4624b999123b0841af96adf9f6c3467fa9b3b

6 years agoMake the RC/Watchlist legend not jump when initially collapsed
Roan Kattouw [Thu, 28 Sep 2017 00:09:05 +0000 (17:09 -0700)]
Make the RC/Watchlist legend not jump when initially collapsed

Look at the collapsed/expanded cookie and add class="mw-collapsed"
if it's going to be collapsed.

This is kind of a prelude to T42812.

Change-Id: Icaca762a9d7b000c973d9275f395623129f67979

6 years agoMerge "Distinguish GET from POST for PostSend expectations"
jenkins-bot [Thu, 28 Sep 2017 18:11:58 +0000 (18:11 +0000)]
Merge "Distinguish GET from POST for PostSend expectations"

6 years agoMerge "Add more ProcessCacheLRU comments"
jenkins-bot [Thu, 28 Sep 2017 18:11:55 +0000 (18:11 +0000)]
Merge "Add more ProcessCacheLRU comments"

6 years agoobjectcache: Improve WANObjectCache test coverage
Timo Tijhof [Mon, 25 Sep 2017 23:21:40 +0000 (00:21 +0100)]
objectcache: Improve WANObjectCache test coverage

class WANObjectCache (methods: 40% -> 67%, lines: 65% -> 88%)

* Allow indirect coverage of protected/private utility methods from
  existing tests.
* Add basic test for setLogger().
* Add basic test for newEmpty().
* Add basic test for getQoS().

Change-Id: Ifb79ed2ff1febbd2f5477b8ed6319992ce88eb29

6 years agoMerge "HTMLFormField: Treat weird '&#160;' labels as empty in OOUI mode"
jenkins-bot [Thu, 28 Sep 2017 17:53:50 +0000 (17:53 +0000)]
Merge "HTMLFormField: Treat weird '&#160;' labels as empty in OOUI mode"

6 years agoMerge "LogFormatter: Don't return a non-array from formatParameterValueForApi"
jenkins-bot [Thu, 28 Sep 2017 17:12:51 +0000 (17:12 +0000)]
Merge "LogFormatter: Don't return a non-array from formatParameterValueForApi"

6 years agoUnregister hooks that interfere with unit testing
Huji Lee [Thu, 28 Sep 2017 15:20:45 +0000 (11:20 -0400)]
Unregister hooks that interfere with unit testing

Id7403f57cc9d751ada85b611193c1d8f3503e713 did not properly
reference the hook

Bug: T176102
Change-Id: Ibff72c0efe82ba6fd4458e3c8a96179f50ca21b0

6 years agoLogFormatter: Don't return a non-array from formatParameterValueForApi
Brad Jorsch [Thu, 28 Sep 2017 14:06:53 +0000 (10:06 -0400)]
LogFormatter: Don't return a non-array from formatParameterValueForApi

If the title for a 'title' or 'title-link' type is invalid, the code
still must not return a non-array from the method.

I'm not sure this is what was behind T176938, but it's the only thing I
can find that might cause the errors I saw logged at about the same
time.

Change-Id: Iae77eb6ad9a64d8b67074164ff0c0fea36826f3c

6 years agoHTMLFormField: Treat weird '&#160;' labels as empty in OOUI mode
Bartosz Dziewoński [Thu, 28 Sep 2017 12:10:31 +0000 (14:10 +0200)]
HTMLFormField: Treat weird '&#160;' labels as empty in OOUI mode

I have no idea where this convention came from, but we had them in
core until 265ff105aaa814c828a35e599ed35d0b0bb00e53 and they still
appear widely in extensions. The non-OOUI code also has special
handling for it (a label equalling '&#160;' is treated as raw HTML
even when not marked as such). In OOUI-style "vertical" forms these
fake labels cause a lot of unnecessary white space to appear, so let's
just not display them.

Change-Id: I45559fa69dc1ae4b9d048445e27a24815fe93b6d

6 years agoMerge "Migrate and convert WL settings to the new UX"
jenkins-bot [Thu, 28 Sep 2017 10:47:52 +0000 (10:47 +0000)]
Merge "Migrate and convert WL settings to the new UX"

6 years agoMerge "Fix insertSelect() with IGNORE in PostgreSQL"
jenkins-bot [Thu, 28 Sep 2017 10:33:21 +0000 (10:33 +0000)]
Merge "Fix insertSelect() with IGNORE in PostgreSQL"

6 years agoMerge "Reopen db connection after doing SpecialPageCacheUpdates"
jenkins-bot [Thu, 28 Sep 2017 10:29:19 +0000 (10:29 +0000)]
Merge "Reopen db connection after doing SpecialPageCacheUpdates"

6 years agoDistinguish GET from POST for PostSend expectations
Aaron Schulz [Thu, 28 Sep 2017 10:05:03 +0000 (12:05 +0200)]
Distinguish GET from POST for PostSend expectations

This avoids needless log entries for POST requests.

Bug: T166199
Change-Id: I515fde1f619f7f016d08b7c270a1c155ee171bf9

6 years agoFix CreditsAction when user has no real name set but real names enabled
Brian Wolff [Thu, 28 Sep 2017 02:36:31 +0000 (02:36 +0000)]
Fix CreditsAction when user has no real name set but real names enabled

Change-Id: Ief347739a1231fa8bd814694bdb5b4f44ba41a77

6 years agoMerge "Revert Message dependency from DB exception classes"
jenkins-bot [Wed, 27 Sep 2017 23:09:23 +0000 (23:09 +0000)]
Merge "Revert Message dependency from DB exception classes"

6 years agoMerge "user: Unregister hooks that interfere with unit testing"
jenkins-bot [Wed, 27 Sep 2017 23:02:57 +0000 (23:02 +0000)]
Merge "user: Unregister hooks that interfere with unit testing"

6 years agouser: Unregister hooks that interfere with unit testing
Huji Lee [Mon, 18 Sep 2017 01:10:27 +0000 (21:10 -0400)]
user: Unregister hooks that interfere with unit testing

testExecute_email() should unregister the hooks
mailPasswordInternal and SpecialPasswordResetOnSubmit
for proper unit testing.

Bug: T176102
Change-Id: Id7403f57cc9d751ada85b611193c1d8f3503e713

6 years agoReopen db connection after doing SpecialPageCacheUpdates
Brian Wolff [Tue, 26 Sep 2017 21:51:31 +0000 (21:51 +0000)]
Reopen db connection after doing SpecialPageCacheUpdates

Special page updates on commons have been broken recently due
to Mysql "going away" after doing the ActiveUsers special page
cache update. Presumably this is because we were only repinging
the server after QueryPage updates, and not the callback updates
(Combined with a spike in wikidata recentchanges entries making
the ActiveUsers callback now take about an hour to complete)

Bug: T176055
Change-Id: Ic344940460c353544d7c08bbe2d8c900f6cc73da

6 years agoConsistently preserve anchors in the title specified in 'mainpage' message
Bartosz Dziewoński [Wed, 27 Sep 2017 21:41:47 +0000 (23:41 +0200)]
Consistently preserve anchors in the title specified in 'mainpage' message

When 'mainpage' was used in the 'sidebar' message, the anchor would be
preserved (code in Skin::addToSidebarPlain() uses Title::getLinkURL()).

When 'mainpage' was used on its own in Skin::makeMainPageUrl() (which
is used in SkinTemplate::buildNavUrls(), and many skins use that data
to generate the logo link), it would not be preserved (the code used
Title::getLocalURL()).

Bug: T176583
Change-Id: Icc4895c08089caaa06e37ce765819829b90de0ff

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 27 Sep 2017 19:55:40 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I7ea7ab422e07d18a233e2c9e8df9e8d0c3d158c0

6 years agoMigrate and convert WL settings to the new UX
petarpetkovic [Wed, 27 Sep 2017 14:00:18 +0000 (16:00 +0200)]
Migrate and convert WL settings to the new UX

Convert Watchlist settings to new UX, with following rules:
- If "Hide edits by anonymous users from the watchlist" is checked,
add "Registered" filter to defaults.
- If "Hide edits by logged in users from the watchlist" is checked,
add "Unregistered" filter to defaults.
- Change test for Special:Watchlist page, so new structured filters
are supported.

Bug: T172757
Change-Id: I27bdaa1401323fa3143f79a57dc5b9773e48fd1d

6 years agoRevert "DumpFilter is autoloaded. No need to require in maintenance script"
Chad [Wed, 27 Sep 2017 18:52:58 +0000 (18:52 +0000)]
Revert "DumpFilter is autoloaded. No need to require in maintenance script"

Broke dumps, turns out autoloader isn't infallible

This reverts commit f127125ec6b76f843fc73a1faba31d973e33bfa5.

Change-Id: I7711094351cf3f186730857ae59975e183daed1d

6 years agoFix watchlist "in the last X hours" display
Brad Jorsch [Wed, 27 Sep 2017 12:01:58 +0000 (08:01 -0400)]
Fix watchlist "in the last X hours" display

If6280ad6 changed the interpretation of the URL parameter "days=0" (or
any negative value) from meaning "maximum number of days" to actually
meaning "0 days". That's a somewhat annoying breaking change, but easily
worked around by updating bookmarks.

But it didn't update the display on the page, so despite querying 0 days
it would still incorrectly say something like "in the last 720 hours"
rather than "in the last 0 hours".

Bug: T176857
Change-Id: I90c79ef9c4819a34060515b863277fd185828ed9

6 years agoRevert Message dependency from DB exception classes
Aaron Schulz [Fri, 24 Feb 2017 16:20:07 +0000 (08:20 -0800)]
Revert Message dependency from DB exception classes

This was added in a90bbf1a.

These classes are in /libs and should not depend on all of MediaWiki.

Change-Id: I67bc818b0c674f1aa3e0dde27a38a9f385fcab75

6 years agoMerge "objectcache: Improve WANObjectCache test coverage"
jenkins-bot [Wed, 27 Sep 2017 02:32:38 +0000 (02:32 +0000)]
Merge "objectcache: Improve WANObjectCache test coverage"

6 years agoMerge "Update jQuery Migrate to v3.0.1"
jenkins-bot [Tue, 26 Sep 2017 23:20:31 +0000 (23:20 +0000)]
Merge "Update jQuery Migrate to v3.0.1"

6 years agoMerge "Update OOjs UI to v0.23.2"
Jforrester [Tue, 26 Sep 2017 21:57:26 +0000 (21:57 +0000)]
Merge "Update OOjs UI to v0.23.2"

6 years agoFix patchfile used to add newtalk table on mysql
Reedy [Fri, 8 Sep 2017 06:28:40 +0000 (07:28 +0100)]
Fix patchfile used to add newtalk table on mysql

Remove orghaned patch-drop-user_newtalk.sql

Change-Id: I27ad5a628deedbab2e659200f003cdeb18ea3620

6 years agoUpdate jQuery Migrate to v3.0.1
Timo Tijhof [Tue, 26 Sep 2017 21:16:27 +0000 (22:16 +0100)]
Update jQuery Migrate to v3.0.1

* Fixes IE9 issues with console.log.
* Add warning for $.fn.hover().
* Add warning for $.holdReady().
* Improve handling of jQuery.easing methods.

Change-Id: I38084ac6367b6d2ba47d6ecc6c9934a8bb7d8ae0

6 years agoUpdate OOjs UI to v0.23.2
James D. Forrester [Tue, 26 Sep 2017 20:28:20 +0000 (16:28 -0400)]
Update OOjs UI to v0.23.2

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.23.2

Depends-On: I9d1264ebf456cadc7e350c2558a9997a2a0633c4
Change-Id: I9bbd4b8ff6333816e7ba73b3c033623753bb6df5

6 years agoCorrecting check icon placement in RTL
eranroz [Tue, 26 Sep 2017 20:10:06 +0000 (23:10 +0300)]
Correcting check icon placement in RTL

Bug: T176796
Change-Id: Ib0c6faa77f393a9f0f78b9d9d492c4c25fb0d3b5

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 26 Sep 2017 19:57:23 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idf6479521c3219958d6e50941b5876e735e9cf9b

6 years agoMerge "Make mw.widget.TitleWidget more flexible"
jenkins-bot [Tue, 26 Sep 2017 17:53:37 +0000 (17:53 +0000)]
Merge "Make mw.widget.TitleWidget more flexible"

6 years agoMerge "RCFilters: Log performance data"
jenkins-bot [Tue, 26 Sep 2017 17:25:47 +0000 (17:25 +0000)]
Merge "RCFilters: Log performance data"

6 years agoMake mw.widget.TitleWidget more flexible
Ed Sanders [Tue, 26 Sep 2017 16:31:38 +0000 (17:31 +0100)]
Make mw.widget.TitleWidget more flexible

* Factor out #createOptionWidget so different option
  widget subclasses can be constructed
* Factor out #getApiParams so extra data can be fetched
  from the API
* Pass through raw API data to pageData, so extra API
  data can be used in option widgets

Change-Id: I150c513e4144ad5b57643e98dd48866ce2d37850

6 years agoMerge "RCFilters: Also set toplinks-collapsed class if no cookie"
jenkins-bot [Tue, 26 Sep 2017 13:39:12 +0000 (13:39 +0000)]
Merge "RCFilters: Also set toplinks-collapsed class if no cookie"

6 years agoMerge "RCFilters: Cache ChangesListSpecialPage::buildChangeTagList()"
jenkins-bot [Tue, 26 Sep 2017 01:50:10 +0000 (01:50 +0000)]
Merge "RCFilters: Cache ChangesListSpecialPage::buildChangeTagList()"

6 years agoFix insertSelect() with IGNORE in PostgreSQL
Brad Jorsch [Wed, 20 Sep 2017 16:55:55 +0000 (12:55 -0400)]
Fix insertSelect() with IGNORE in PostgreSQL

I0e6a9e6d overlooked the special handling PG needs (prior to 9.5 anyway)
to properly emulate MySQL's IGNORE option when delegating to the parent
implementation.

For now, then, don't use the native implementation in PG when IGNORE is
specified. Instead, fall back to the non-native implementation that does
a select() then an insert() where PG can handle the IGNORE properly.

In the future we might use the ON CONFLICT DO NOTHING clause added in PG
9.5 to be able to do native insertSelect() with IGNORE (and to better
handle multi-row insert() with IGNORE, and we could use the related ON
CONFLICT DO UPDATE to implement upsert()). All that is left for a future
patch.

Change-Id: I7987d59580543de03d5c6a5ed7fa3ce551ac12f3

6 years agoMerge "SpecialPages: Reduce selector specificity"
jenkins-bot [Mon, 25 Sep 2017 23:39:19 +0000 (23:39 +0000)]
Merge "SpecialPages: Reduce selector specificity"

6 years agoobjectcache: Improve WANObjectCache test coverage
Timo Tijhof [Mon, 25 Sep 2017 23:21:40 +0000 (00:21 +0100)]
objectcache: Improve WANObjectCache test coverage

class WANObjectCache (methods: 30% -> 40%, lines: 62% -> 65%)

* doGetWithSetCallback: 98% -> 100%
 - Add case: Throw for invalid callback.
* getWithSetCallback: 86% -> 100%
 - Cover case: Else branch for `$cur[self::VFLD_VERSION] === $version`.
* getMulti: 91% -> 98%
 - Cover case: If branch for `$this->warmupCache`.
* set: 93% -> 100%
 - Cover case: If branch for `lockTSE >= 0`.
* reap: 84% -> 100%
 - Add case: Error when changeTTL() fails.

Change-Id: I4844ab0ebdd4d3ec9acc9cd4500721b04cfda317

6 years agoMerge "Allow two-queue style insertion in MapCacheLRU"
jenkins-bot [Mon, 25 Sep 2017 22:41:19 +0000 (22:41 +0000)]
Merge "Allow two-queue style insertion in MapCacheLRU"

6 years agoRCFilters: Log performance data
Roan Kattouw [Mon, 25 Sep 2017 22:28:47 +0000 (15:28 -0700)]
RCFilters: Log performance data

Just UI ready time and wgBackendResponseTime for now.
Sanitizing responseStart and especially firstPaint cross-browser
is too messy. NavigationTiming has code for it but that would
need to be exposed somewhere.

Bug: T176652
Change-Id: I6caf52fe8bc77fac0426d73549553301c5951c32

6 years agoRCFilters: Also set toplinks-collapsed class if no cookie
Roan Kattouw [Mon, 25 Sep 2017 21:50:04 +0000 (14:50 -0700)]
RCFilters: Also set toplinks-collapsed class if no cookie

If the cookie was not set, the PHP code treated that as
"expanded", but the JS code treated it as "collapsed".
Fix the PHP code.

Bug: T176380
Change-Id: Iff9b865bd20a571ade2ae619cbb5b3a70629003c

6 years agoGive thumbor swift user r/w access to containers
Gilles Dubuc [Wed, 6 Sep 2017 13:05:16 +0000 (15:05 +0200)]
Give thumbor swift user r/w access to containers

readUsers and writeUsers are new optional values
of the swift backend configuration. They allow
giving read and/or write rights to additional
users than the default swift user.

Bug: T144479
Change-Id: I0f81a013ec994eee3f156a89f29f4fcfc37c42b7

6 years agoAllow two-queue style insertion in MapCacheLRU
Aaron Schulz [Fri, 22 Sep 2017 16:26:50 +0000 (18:26 +0200)]
Allow two-queue style insertion in MapCacheLRU

Change-Id: I1cd98ea8965b51e43371efd990fb9302bb507928

6 years agoMerge "WLFilters: Live update and View newest"
jenkins-bot [Mon, 25 Sep 2017 21:06:45 +0000 (21:06 +0000)]
Merge "WLFilters: Live update and View newest"

6 years agoMerge "HTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in...
jenkins-bot [Mon, 25 Sep 2017 20:18:04 +0000 (20:18 +0000)]
Merge "HTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in OOUI mode"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 25 Sep 2017 19:54:30 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic032757aa36350153e2df304b7636a4b66916f64

6 years agoMerge "Add print styles for gallery mode packed-hover"
jenkins-bot [Mon, 25 Sep 2017 19:49:56 +0000 (19:49 +0000)]
Merge "Add print styles for gallery mode packed-hover"

6 years agoRCFilters: Cache ChangesListSpecialPage::buildChangeTagList()
Roan Kattouw [Mon, 25 Sep 2017 19:39:12 +0000 (12:39 -0700)]
RCFilters: Cache ChangesListSpecialPage::buildChangeTagList()

Calling Message::parse() on 2 messages per tag (for 80+ tags)
is fairly expensive. It takes about 400ms in production, but
adding that to requests that normally take 150-400ms is a pretty
big hit.

Bug: T176652
Change-Id: I9114f69de8b18007735de3438809f5695e380738

6 years agoMerge "Block same-file reuploads"
jenkins-bot [Mon, 25 Sep 2017 19:22:53 +0000 (19:22 +0000)]
Merge "Block same-file reuploads"

6 years agoMerge "mw.special.preferences.timezone: Remove some very old unnecessary code"
jenkins-bot [Mon, 25 Sep 2017 19:14:46 +0000 (19:14 +0000)]
Merge "mw.special.preferences.timezone: Remove some very old unnecessary code"

6 years agoHTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in OOUI...
Bartosz Dziewoński [Mon, 25 Sep 2017 18:49:51 +0000 (20:49 +0200)]
HTMLSelectAndOtherField/HTMLSelectOrOtherField: Change how ID is handled in OOUI mode

Set the ID on the main widget (mw.widgets.SelectWithInputWidget), so
that it can be infused by ID.

The dropdown/textbox by themselves can't be infused individually,
therefore IDs on them are pretty useless; remove those where they're
not necessary.

Follow-up to 8bd6605736c47259bd5f901284cbd2e639cef30c.

Change-Id: If54dd48f1000e3e0f5a978428a5b622797b4f765

6 years agoMerge "resourceloader: Remove deprecated MessageBlobStore::insertMessageBlob"
jenkins-bot [Mon, 25 Sep 2017 18:39:12 +0000 (18:39 +0000)]
Merge "resourceloader: Remove deprecated MessageBlobStore::insertMessageBlob"

6 years agomw.special.preferences.timezone: Remove some very old unnecessary code
Bartosz Dziewoński [Mon, 25 Sep 2017 18:34:30 +0000 (20:34 +0200)]
mw.special.preferences.timezone: Remove some very old unnecessary code

The first two removed blocks date to the pre-HTMLForm versions of the
preferences form (rSVN44915 / c672ce603272d5206f0967f70f2474b4c09ce43a),
where the dual dropdown/textbox field was implemented specially for
this form. Its behavior currently is handled by HTMLSelectOrOtherField
and selectorother.js, and this code is entirely unnecessary.

The third removed block was added as a workaround for an issue caused
by the second block, in e8d94f433c43982003fb0d008e1fc8ee04ed7744.
Looks like we didn't realize at the time that we can just delete the
buggy line.

This fixes a minor issue where no warning would be displayed when
exiting the preferences page without saving the changes after the user
changed the "Time zone" field from "Other" to "Fill in from the
browser" and the guessed value was different from the saved one.

Change-Id: I9b5317111aaf7f6039d476b263ee9e54c4b4cf52

6 years agoMerge "Unify monospace font family stack"
jenkins-bot [Mon, 25 Sep 2017 17:45:00 +0000 (17:45 +0000)]
Merge "Unify monospace font family stack"

6 years agoMerge "Update documentation for IApiMessage interface"
jenkins-bot [Mon, 25 Sep 2017 17:44:27 +0000 (17:44 +0000)]
Merge "Update documentation for IApiMessage interface"

6 years agoresourceloader: Remove deprecated MessageBlobStore::insertMessageBlob
Timo Tijhof [Mon, 25 Sep 2017 17:37:35 +0000 (18:37 +0100)]
resourceloader: Remove deprecated MessageBlobStore::insertMessageBlob

Deprecated since MediaWiki 1.27. No uses in Wikimedia Git.

Follows-up 5d5b269e0e63. (T113092)

Change-Id: I98c4db4fb0a3909d25d0fcd587e0f34391612423

6 years agoAdd print styles for gallery mode packed-hover
Cormac Parle [Mon, 25 Sep 2017 13:44:26 +0000 (14:44 +0100)]
Add print styles for gallery mode packed-hover

Bug: T140346
Change-Id: Ifd94706c427c6bb7577040bbfecfdc6a303e0d8b

6 years agoMerge "getConfiguration: Don't bail when a valid variable is set null"
jenkins-bot [Mon, 25 Sep 2017 16:30:57 +0000 (16:30 +0000)]
Merge "getConfiguration: Don't bail when a valid variable is set null"

6 years agoUpdate documentation for IApiMessage interface
Brad Jorsch [Mon, 25 Sep 2017 16:14:55 +0000 (12:14 -0400)]
Update documentation for IApiMessage interface

It was created for a specific purpose, and apparently this is confusing
some people who're inexplicably trying to implement it outside of that
purpose. So, this patch more clearly documents that purpose.

Change-Id: I638482327370522bedea1ec514ecbb9d98207382

6 years agoMerge "Make `ApiUploadTest` up to date so it passes"
jenkins-bot [Mon, 25 Sep 2017 16:11:01 +0000 (16:11 +0000)]
Merge "Make `ApiUploadTest` up to date so it passes"

6 years agoMerge "resourceloader: Implement isKnownEmpty for user.options module"
jenkins-bot [Mon, 25 Sep 2017 15:43:07 +0000 (15:43 +0000)]
Merge "resourceloader: Implement isKnownEmpty for user.options module"

6 years agoMerge "resourceloader: Support isKnownEmpty for general modules"
jenkins-bot [Mon, 25 Sep 2017 15:42:33 +0000 (15:42 +0000)]
Merge "resourceloader: Support isKnownEmpty for general modules"

6 years agoMerge "registration: Fix caching of load_composer_autoloader"
jenkins-bot [Mon, 25 Sep 2017 15:22:39 +0000 (15:22 +0000)]
Merge "registration: Fix caching of load_composer_autoloader"

6 years agoMerge "EditPage: Disable preview on open if $wgRawHtml is enabled"
jenkins-bot [Mon, 25 Sep 2017 15:07:40 +0000 (15:07 +0000)]
Merge "EditPage: Disable preview on open if $wgRawHtml is enabled"

6 years agoUnify monospace font family stack
Volker E [Mon, 25 Sep 2017 15:07:09 +0000 (16:07 +0100)]
Unify monospace font family stack

Bug: T176636
Change-Id: I4bab7f13b5bd641df9a2a9638e60e14951313d52

6 years agoMerge "WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int"
jenkins-bot [Mon, 25 Sep 2017 14:51:39 +0000 (14:51 +0000)]
Merge "WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int"

6 years agoWLFilters: Live update and View newest
Stephane Bisson [Thu, 21 Sep 2017 19:44:02 +0000 (15:44 -0400)]
WLFilters: Live update and View newest

Moved handling for 'from', 'days' and 'limit'
to base class (ChangesListSpecialPage)

I moved 'days' because its implementation
is related to 'from'.

I moved 'limit' because it was getting lonely
and it's identical in all cases.

Bug: T176348
Change-Id: If6280ad6fbad65909e1d0b2a48344e24d485aca2

6 years agoMerge "EditPage: Hard-deprecate isOouiEnabled(), getCheckboxes(), getCheckboxesOOUI()"
jenkins-bot [Sun, 24 Sep 2017 20:43:41 +0000 (20:43 +0000)]
Merge "EditPage: Hard-deprecate isOouiEnabled(), getCheckboxes(), getCheckboxesOOUI()"

6 years agoAdd more ProcessCacheLRU comments
Aaron Schulz [Sun, 24 Sep 2017 11:17:11 +0000 (13:17 +0200)]
Add more ProcessCacheLRU comments

Change-Id: I5b59dd065dc387a6c7f9cae42ea5244247448650

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 24 Sep 2017 19:56:32 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I690f31abfbbfaff56761bde38a0813d12c949f39

6 years agoMerge "RCFilters: Don't load all of OOUI"
jenkins-bot [Sun, 24 Sep 2017 14:57:00 +0000 (14:57 +0000)]
Merge "RCFilters: Don't load all of OOUI"

6 years agoEditPage: Disable preview on open if $wgRawHtml is enabled
Kunal Mehta [Sat, 23 Sep 2017 21:07:15 +0000 (14:07 -0700)]
EditPage: Disable preview on open if $wgRawHtml is enabled

Otherwise the user will see a session failure message since their
request wasn't posted with a token, which doesn't make sense since they
just clicked on an edit link.

Bug: T172251
Change-Id: Id4a20818c737886f5a7ec72dba52c531f1ba78a0

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 23 Sep 2017 19:58:19 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I41d3d09b418676e2b1171c02ac72182455ba5e16

6 years agoSpecialPages: Reduce selector specificity
Volker E [Sat, 23 Sep 2017 15:54:03 +0000 (08:54 -0700)]
SpecialPages: Reduce selector specificity

Reducing unneeded selector specificity.

Change-Id: I96b46b4e8b267c239c9a2cb73f65848c9fff9be1

6 years agoSpecialPages: Align subtle and disabled text color to WikimediaUI palette
Volker E [Sat, 23 Sep 2017 15:28:00 +0000 (08:28 -0700)]
SpecialPages: Align subtle and disabled text color to WikimediaUI palette

Aligning ProtectedPages unknown and disabled user rights text colors
to WikimediaUI color palette and make them conforming to WCAG level AA.

Bug: T152025
Change-Id: Id10477f92dd8b43caa26659cb63352637b436bda

6 years agoMerge "HTMLForm: Do not generate wrappers for empty sections"
jenkins-bot [Sat, 23 Sep 2017 12:13:36 +0000 (12:13 +0000)]
Merge "HTMLForm: Do not generate wrappers for empty sections"

6 years agoregistration: Fix caching of load_composer_autoloader
Kunal Mehta [Sat, 23 Sep 2017 05:20:16 +0000 (22:20 -0700)]
registration: Fix caching of load_composer_autoloader

Move the file_exists() check out of the extension processor and into the
extension registry so that it is evaluated at run time instead of during
caching. The prior way is problematic since we don't invalidate the
cache if the existence of the file were to change.

Bug: T176534
Change-Id: I98e4ffdfac9f98397a103966824519afe1375356

6 years agoMerge "Use native ES5 Array prototype methods instead of jQuery"
jenkins-bot [Sat, 23 Sep 2017 00:03:02 +0000 (00:03 +0000)]
Merge "Use native ES5 Array prototype methods instead of jQuery"

6 years agoRCFilters: Don't load all of OOUI
Roan Kattouw [Fri, 22 Sep 2017 23:33:31 +0000 (16:33 -0700)]
RCFilters: Don't load all of OOUI

Just the widgets module is enough, we don't need
the windows or toolbars modules.

Change-Id: Ie8ce45f0d46fbc759d4579d619ab8c99c13cb0d5

6 years agoMerge "Improve "selfmove" message's wording"
jenkins-bot [Fri, 22 Sep 2017 21:59:38 +0000 (21:59 +0000)]
Merge "Improve "selfmove" message's wording"

6 years agoImprove "selfmove" message's wording
Egbe Eugene [Thu, 13 Jul 2017 20:40:15 +0000 (21:40 +0100)]
Improve "selfmove" message's wording

The error shown when a page is to be moved (renamed) with the same
title is not immediately obvious to the user, so use simpler
and clearer language.

Bug: T164987
Change-Id: I639c4ae27866234fed9bcc5f2afc4684155418f8

6 years agoUse native ES5 Array prototype methods instead of jQuery
Fomafix [Fri, 22 Sep 2017 04:46:40 +0000 (06:46 +0200)]
Use native ES5 Array prototype methods instead of jQuery

Replace
* $.each( array, function ( index, value ) { ... } ) by
  array.forEach( function ( value ) { ... } )

* $.grep( array, function ( value ) { ... } ) by
  array.filter( function ( value ) { ... } )

* $.map( array, function ( value ) { ... } ) by
  array.map( function ( value ) { ... } )

Change-Id: I985ddf710e13c9ae788245349e2791571aeec97e

6 years agoSpecialSearch: Fix unintended `margin` when zoom level is above 100%
Volker E [Fri, 22 Sep 2017 20:30:19 +0000 (13:30 -0700)]
SpecialSearch: Fix unintended `margin` when zoom level is above 100%

With zoom level > 100% on Firefox, `#mw-searchoptions` which is a
`fieldset` element adds unintended `margin` with negative `margin-top`
applied. This is a workaround for wrong browser behaviour and
regression of I4bda42c03a5.

Bug: T176499
Change-Id: I329f83e6063460dc11ff45583e335280c9257ef7