lhc/web/wiklou.git
5 years agoMerge "Drop index oi_name_archive_name on table oldimage"
jenkins-bot [Mon, 13 Mar 2017 05:19:57 +0000 (05:19 +0000)]
Merge "Drop index oi_name_archive_name on table oldimage"

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

Change-Id: I5d800846ef2aa196635559493dbc1b8acb3802b5

5 years agoMerge "Fix mistake in ObjectCache doc"
jenkins-bot [Sun, 12 Mar 2017 07:15:28 +0000 (07:15 +0000)]
Merge "Fix mistake in ObjectCache doc"

5 years agoMerge "Back-end of new RecentChanges page, refactoring"
jenkins-bot [Sat, 11 Mar 2017 01:55:14 +0000 (01:55 +0000)]
Merge "Back-end of new RecentChanges page, refactoring"

5 years agoBack-end of new RecentChanges page, refactoring
Matthew Flaschen [Tue, 14 Feb 2017 07:55:37 +0000 (02:55 -0500)]
Back-end of new RecentChanges page, refactoring

Generate old RC, Related changes (it was already displayed and working
on 'Related changes' before this change), and Watchlist/etc. and data
for new UI from back-end.

This moves everything used for defining the old (unstructured) and new
(structured) filters into unified objects, ChangesListFilter and
ChangesListFilterGroup (and sub-classes).

This includes the query logic (see below) and logic for adding
CSS attribution classes.

This is a breaking change (for subclasses of ChangesListSpecialpage)
due to the signature (and name) change of buildMainQueryConds and
doMainQuery.  An alternative that I don't think is a breaking change
would be to put the filter->DB logic in runMainQueryHook, but then it's
doing more than just running a hook.

This is because it used to only build $conds here, but it's clear from
filterOnUserExperienceLevel filters need more than this.  I added all
the DB parameters from the hook, but this could be debated.

I have an checked and fixed the WMF-deployed extensions affected by
this.

Other than that, there should be full back-compat (including legacy
filters not using the new system).

* add hidepatrolled/hideunpatrolled to new UI.

* Move userExpLevel from RC to ChangesListSpecialPage.  Although for
now the structured UI only displays on RC anyway, when it displays on
watchlist, it seems we'll want userExpLevel there.

  Change this to make 'all' exclude unregistered users.

* Don't have front-end convert none-selected to 'all' on string_options.

* Needs the hideanons/hideliu special redirect to be done before this
is merged (T151873)

Bug: T152754
Bug: T152797
Change-Id: Iec2d82f6a830403d1c948a280efa58992e0cdee7

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

Change-Id: I6e0a0fa411473a40ebae5035fd559f37a36fff52

5 years agoFix mistake in ObjectCache doc
Amir Sarabadani [Fri, 10 Mar 2017 09:42:43 +0000 (13:12 +0330)]
Fix mistake in ObjectCache doc

Change-Id: Iafe3c460ca462aa160cfea6769fd78f8b023548c

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Mar 2017 21:47:22 +0000 (22:47 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7e25a8afe355bce65359c162b9384d243c67cebd

5 years agoMerge "composer.json: Make ext-curl a suggested package for MediaWiki core"
jenkins-bot [Thu, 9 Mar 2017 21:40:13 +0000 (21:40 +0000)]
Merge "composer.json: Make ext-curl a suggested package for MediaWiki core"

5 years agoMerge "Allow fields to define their own merge strategy via callback."
jenkins-bot [Thu, 9 Mar 2017 21:32:46 +0000 (21:32 +0000)]
Merge "Allow fields to define their own merge strategy via callback."

5 years agocomposer.json: Make ext-curl a suggested package for MediaWiki core
Derk-Jan Hartman [Thu, 9 Mar 2017 16:26:49 +0000 (17:26 +0100)]
composer.json: Make ext-curl a suggested package for MediaWiki core

curl is the preferred HTTP implementation as far as I'm a aware and the
only implementation used by MultiHttpClient, a requirement for
something like VisualEditor

Change-Id: I40a015339d4a3f92cfadcd92dfd70425639d0412

5 years agomw.special.apisandbox: Prevent text fields from collapsing into nothingness
Bartosz Dziewoński [Thu, 9 Mar 2017 16:52:04 +0000 (17:52 +0100)]
mw.special.apisandbox: Prevent text fields from collapsing into nothingness

Change-Id: Ib0d5cf6a227e1e03442e54db6fdacad272c53ed9

5 years agoMerge "Remove unused old messages for user login and signup"
jenkins-bot [Thu, 9 Mar 2017 09:40:02 +0000 (09:40 +0000)]
Merge "Remove unused old messages for user login and signup"

5 years agoMerge "Remove unused old logging messages for revision deletion"
jenkins-bot [Thu, 9 Mar 2017 09:36:01 +0000 (09:36 +0000)]
Merge "Remove unused old logging messages for revision deletion"

5 years agoMerge "Do not use real message names in 'All_system_messages' preprocessor test"
jenkins-bot [Thu, 9 Mar 2017 09:34:29 +0000 (09:34 +0000)]
Merge "Do not use real message names in 'All_system_messages' preprocessor test"

5 years agoMake masterPosWait() error clearer
Aaron Schulz [Thu, 9 Mar 2017 05:16:00 +0000 (21:16 -0800)]
Make masterPosWait() error clearer

Change-Id: I86706b2c4167fba897c56235072675b66ed06634

5 years agoMerge "Improve sorting on SpecialWanted*-Pages"
jenkins-bot [Thu, 9 Mar 2017 00:25:46 +0000 (00:25 +0000)]
Merge "Improve sorting on SpecialWanted*-Pages"

5 years agoMerge "Add RemexHtml to the list of available Tidy drivers"
jenkins-bot [Wed, 8 Mar 2017 23:33:17 +0000 (23:33 +0000)]
Merge "Add RemexHtml to the list of available Tidy drivers"

5 years agoAdd RemexHtml to the list of available Tidy drivers
Tim Starling [Wed, 8 Mar 2017 23:18:12 +0000 (10:18 +1100)]
Add RemexHtml to the list of available Tidy drivers

Change-Id: I5a87a6ed24ca3ef7c5fdb21e74f9eb410bf74b4c

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Mar 2017 20:56:28 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I916d8727a605173281bfebc8c2ef9592d4f87282

5 years agoMerge "Break up $wgDummyLanguageCodes"
jenkins-bot [Wed, 8 Mar 2017 20:46:46 +0000 (20:46 +0000)]
Merge "Break up $wgDummyLanguageCodes"

5 years agoBreak up $wgDummyLanguageCodes
This, that and the other [Thu, 12 Jan 2017 14:17:41 +0000 (01:17 +1100)]
Break up $wgDummyLanguageCodes

$wgDummyLanguageCodes is a set and mapping of different language codes:

* Renamed language codes: ['als' => 'gsw', 'bat-smg' => 'sgs',
                           'be-xold' => 'be-tarask', 'fiu-vro' => 'vro',
                           'roa-rup' => 'rup', 'zh-classical' => 'lzh',
                           'zh-min-nan' => 'nan', 'zh-yue' => 'yue'].
  The old language codes are deprecated because they are invalid but
  should be supported for compatibility reasons for a while.
* Language codes of macro languages, which get mapped to the main
  language: ['bh' => 'bho', 'no' => 'nb'].
* Language variants which get mapped to main language:
  ['simple' => 'en'].
* Internal language codes of the private-use-area which get mapped to
  itself: ['qqq' => 'qqq', 'qqx' => 'qqx']

This is a very strange conglomeration which should get differentiated,
and were split up in the following ways:

* Renamed language codes are available from
  LanguageCode::getDeprecatedCodeMapping().
* Language codes of macro languages and the variants that are mapped to
  the main language are available as $wgExtraLanguageCodes and are set
  in DefaultSettings.php.
* Internal language codes are set in $wgDummyLanguageCodes in Setup.php.

Change-Id: If73c74ee87d8235381449cab7dcd9f46b0f23590

5 years agoMerge "Add some translations for Western Punjabi (pnb)"
jenkins-bot [Wed, 8 Mar 2017 19:21:09 +0000 (19:21 +0000)]
Merge "Add some translations for Western Punjabi (pnb)"

5 years agoMerge "RCFilters UI: Anchor the highlight popup"
jenkins-bot [Wed, 8 Mar 2017 17:26:05 +0000 (17:26 +0000)]
Merge "RCFilters UI: Anchor the highlight popup"

5 years agoImprove sorting on SpecialWanted*-Pages
Eddie Greiner-Petter [Tue, 21 Feb 2017 12:58:47 +0000 (13:58 +0100)]
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)

Bug: T4335
Change-Id: If54cd52b69007ee81af4733a14be3fd893c4abfe

5 years agoRemove unused old messages for user login and signup
Bartosz Dziewoński [Wed, 8 Mar 2017 15:59:24 +0000 (16:59 +0100)]
Remove unused old messages for user login and signup

According to their documentation, these messages are no longer used
since MediaWiki 1.22. They only waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

Change-Id: I4b8e91558654b5f9006ed44bad6971237f057d07

5 years agoRemove unused old logging messages for revision deletion
Bartosz Dziewoński [Wed, 8 Mar 2017 15:37:57 +0000 (16:37 +0100)]
Remove unused old logging messages for revision deletion

Per T20578, change a9c243b7b5289dad204278dbe7ed571fd914e395 (r97044)
has replaced these messages with a new set that doesn't rely on
"lego" concatenation. But the old messages were never removed.
Some were blacklisted on Translatewiki, but others continue to
waste translators' time.

The messages appear to not be used by any skins or extensions
in Wikimedia version control.

+--------------------------------+--------------------------------+
| Deleted old messages           | Replacements in current system |
+--------------------------------+--------------------------------+
| revdelete-logentry             | logentry-delete-revision       |
| revdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| logdelete-logentry             | logentry-delete-event          |
| logdelete-log-message          |                                |
+--------------------------------+--------------------------------+
| revdelete-hid                  |  revdelete-content-hid         |
| revdelete-unhid                |  revdelete-content-unhid       |
|                                |  revdelete-summary-hid         |
| revdelete-content              |  revdelete-summary-unhid       |
| revdelete-summary              |  revdelete-uname-hid           |
| revdelete-uname                |  revdelete-uname-unhid         |
+--------------------------------+--------------------------------+

Change-Id: I27c616ca1aaca3058ad48753f5e4bfc64a71636e

5 years agoDo not use real message names in 'All_system_messages' preprocessor test
Bartosz Dziewoński [Wed, 8 Mar 2017 15:04:27 +0000 (16:04 +0100)]
Do not use real message names in 'All_system_messages' preprocessor test

This file seems to be a stress-test for the MediaWiki preprocessor.
It doesn't really matter whether the messages references here exist.
As messages are occasionally renamed or deleted, and since this file
was generated in 2011, people keep getting confused when they grep
for a message name and run into this list (and sometimes needlessly
spend their time updating this file, as seen in its Git history).

This commit replaces all of the message names with their SHA1 hash
truncated to 8 hex characters.

Regexps used for matching:
(?<=\?title=MediaWiki\:)([^&{}<>|\[\]]+)
(?<=int:)([^&{}<>|\[\]]+)
(?<=\[\[MediaWiki_talk:)([^&{}<>|\[\]]+)
(?<=action=edit )([^&{}<>|\[\]]+)

Change-Id: I52a71c0cc0e6fa21a61420d52df755066c6e9a08

5 years agoMerge "RemexHtml tidy driver with p-wrapping"
jenkins-bot [Wed, 8 Mar 2017 15:24:36 +0000 (15:24 +0000)]
Merge "RemexHtml tidy driver with p-wrapping"

5 years agoAdd some translations for Western Punjabi (pnb)
Bartosz Dziewoński [Tue, 7 Mar 2017 23:50:59 +0000 (00:50 +0100)]
Add some translations for Western Punjabi (pnb)

Bug: T157871
Change-Id: I567662c1861293ca9c7e841e2b839b721bd60103

5 years agoRemexHtml tidy driver with p-wrapping
Tim Starling [Fri, 17 Feb 2017 04:10:15 +0000 (15:10 +1100)]
RemexHtml tidy driver with p-wrapping

Pull in the RemexHtml library, which is an HTML 5 library I recently
created.

RemexCompatMunger mutates the event stream, inserting <mw:p-wrap>
elements where necessary, and occasionally taking even more invasive
action such as reparenting and removing nodes maintained in Serializer's
tree.

RemexCompatFormatter produces a MediaWiki-style serialization which is
relatively compatible with existing parser tests. It also does final
empty element handling, including translating <mw:p-wrap> to <p>

Tests are imported from both Html5Depurate and Subbu's pwrap.js.

Depends-On: I864f31d9afdffdde49bfd39f07a0fb7f4df5c5d9
Change-Id: I900155b7dd199b0ae2a3b9cdb6db5136fc4f35a8

5 years agoMerge "Handle missing namespace prefix in XML dumps more gracefully"
jenkins-bot [Wed, 8 Mar 2017 05:07:56 +0000 (05:07 +0000)]
Merge "Handle missing namespace prefix in XML dumps more gracefully"

5 years agoRCFilters UI: Anchor the highlight popup
Moriel Schottlender [Wed, 8 Mar 2017 02:22:07 +0000 (18:22 -0800)]
RCFilters UI: Anchor the highlight popup

Due to a regression in popups positioning in OOUI, the popup
renders wrongly when it is unanchored.

Fixing this to an anchored popup while the OOUI bug is being fixed.

Bug: T159906
Change-Id: I38ca560929f7f9488ff48b148b089f0613d67d97

5 years agoMerge "RCFilters UI: Prevent the popup from disappearing when input is out of view"
jenkins-bot [Wed, 8 Mar 2017 01:37:08 +0000 (01:37 +0000)]
Merge "RCFilters UI: Prevent the popup from disappearing when input is out of view"

5 years agoMerge "RC filters: update the state of the app on popstate."
jenkins-bot [Wed, 8 Mar 2017 01:32:35 +0000 (01:32 +0000)]
Merge "RC filters: update the state of the app on popstate."

5 years agoMerge "RCFilters UI: Add 'highlight' icon to highlight button"
jenkins-bot [Wed, 8 Mar 2017 01:29:22 +0000 (01:29 +0000)]
Merge "RCFilters UI: Add 'highlight' icon to highlight button"

5 years agoMerge "RCFilters UI: Display popups above CapsuleItemWidgets"
jenkins-bot [Wed, 8 Mar 2017 01:28:55 +0000 (01:28 +0000)]
Merge "RCFilters UI: Display popups above CapsuleItemWidgets"

5 years agoRCFilters UI: Add 'highlight' icon to highlight button
Moriel Schottlender [Mon, 6 Mar 2017 23:01:51 +0000 (15:01 -0800)]
RCFilters UI: Add 'highlight' icon to highlight button

Bug: T149467
Change-Id: Iba11de7ba47e41046631dbf16f464f8bd3820811
Depends-On: I0b5adaaec52f9cc01c3dfb6262adaf2da368476e

5 years agoMerge "Update OOjs UI to v0.19.5"
jenkins-bot [Wed, 8 Mar 2017 01:00:57 +0000 (01:00 +0000)]
Merge "Update OOjs UI to v0.19.5"

5 years agoMerge "RC Filters UI: 'restore defaults' clears highlight"
jenkins-bot [Wed, 8 Mar 2017 00:38:16 +0000 (00:38 +0000)]
Merge "RC Filters UI: 'restore defaults' clears highlight"

5 years agoUpdate OOjs UI to v0.19.5
Volker E [Tue, 7 Mar 2017 23:26:56 +0000 (15:26 -0800)]
Update OOjs UI to v0.19.5

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

Change-Id: Ic15534df2f4006b94d1161a91e2d689f96892073

5 years agoClean up remaining get_class() uses
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up remaining get_class() uses

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: I1888a1897ecf4548a2e5a67a942e5c080dd7e3d3

5 years agoMerge "Clean up get_class() in /includes/filerepo and /includes/resourceloader"
jenkins-bot [Tue, 7 Mar 2017 21:43:41 +0000 (21:43 +0000)]
Merge "Clean up get_class() in /includes/filerepo and /includes/resourceloader"

5 years agoMerge "HTMLMultiSelect parameter to specify which options are disabled"
jenkins-bot [Tue, 7 Mar 2017 21:39:02 +0000 (21:39 +0000)]
Merge "HTMLMultiSelect parameter to specify which options are disabled"

5 years agoClean up get_class() in /includes/filerepo and /includes/resourceloader
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up get_class() in /includes/filerepo and /includes/resourceloader

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: Ic4f9b150ddc35e25f51297de7fc12410d421be4d

5 years agoMerge "Update oyejorge/less.php to 1.7.0.13"
jenkins-bot [Tue, 7 Mar 2017 21:30:14 +0000 (21:30 +0000)]
Merge "Update oyejorge/less.php to 1.7.0.13"

5 years agoHTMLMultiSelect parameter to specify which options are disabled
Huji Lee [Thu, 22 Dec 2016 00:37:10 +0000 (19:37 -0500)]
HTMLMultiSelect parameter to specify which options are disabled

Depends on I32fa20e4adb23960d9db6bf6023f79bf128fb600

Bug: T153751
Change-Id: I3bcf6720c960e0be962e0f3f37a22ec8778db1d1

5 years agoUpdate oyejorge/less.php to 1.7.0.13
Paladox [Thu, 23 Feb 2017 18:17:45 +0000 (18:17 +0000)]
Update oyejorge/less.php to 1.7.0.13

See changes at
https://github.com/oyejorge/less.php/blob/master/CHANGES.md

https://github.com/oyejorge/less.php/compare/v1.7.0.10...v1.7.0.13

Depends-On: Iaafb9800a223f2a1e163bb2e55b4017fcc98e682
Change-Id: I6a925c2e82812df0acf4c8b8da2541b62fea8809

5 years agoClean up get_class($this) -> static::class in /includes/cache and /includes/libs
Timo Tijhof [Tue, 7 Mar 2017 02:14:14 +0000 (18:14 -0800)]
Clean up get_class($this) -> static::class in /includes/cache and /includes/libs

* get_class()        -> __CLASS__ (same as self::class)
* get_called_class() -> static::class
* get_class($this)   -> static::class

Change-Id: I22c62851bcc88405f4bdd77258d6e28ec1a14924

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

Change-Id: I97bab36cdd05b162843e47e8b65d2ad2c224eb0f

5 years agoRC Filters UI: 'restore defaults' clears highlight
Stephane Bisson [Tue, 7 Mar 2017 20:37:04 +0000 (15:37 -0500)]
RC Filters UI: 'restore defaults' clears highlight

The 'restore defaults' button clear any
highlight config and brings the UI back
to the same default state every time.

Bug: T159848
Change-Id: I78397c914aa5510e259a28c226f6e953b4dded4d

5 years agoRC filters: update the state of the app on popstate.
Stephane Bisson [Wed, 1 Mar 2017 12:04:05 +0000 (07:04 -0500)]
RC filters: update the state of the app on popstate.

Also re-fetch changes list.

Bug: T153949
Change-Id: Id3d4ea2a4de6074ae1c15cadb74e7a324a39e7ff

5 years agoAllow fields to define their own merge strategy via callback.
Stanislav Malyshev [Thu, 9 Feb 2017 21:30:12 +0000 (13:30 -0800)]
Allow fields to define their own merge strategy via callback.

Change-Id: Ic1cc1581f07381224d3f4fcba4feb1eac7085057

5 years agoMerge "Change mw-body ancestor selector to mw-body-content"
jenkins-bot [Tue, 7 Mar 2017 18:05:57 +0000 (18:05 +0000)]
Merge "Change mw-body ancestor selector to mw-body-content"

5 years agoMerge "registration: Allow documenting config settings with i18n messages"
jenkins-bot [Tue, 7 Mar 2017 07:39:43 +0000 (07:39 +0000)]
Merge "registration: Allow documenting config settings with i18n messages"

5 years agoMerge "registration: Allow specifying the value of a config setting can be public"
jenkins-bot [Tue, 7 Mar 2017 07:37:14 +0000 (07:37 +0000)]
Merge "registration: Allow specifying the value of a config setting can be public"

5 years agoMerge "PageArchive: Fix typo in class file"
jenkins-bot [Tue, 7 Mar 2017 07:34:18 +0000 (07:34 +0000)]
Merge "PageArchive: Fix typo in class file"

5 years agoregistration: Allow documenting config settings with i18n messages
Florian Schmidt [Fri, 13 Jan 2017 05:14:42 +0000 (06:14 +0100)]
registration: Allow documenting config settings with i18n messages

In addition to the general (English) description key in a config
option in extension.json, developers now can provide a description message
key. This localized message will be used in user interfaces, such as
viewing configuration options on-wiki (see later changes).

Bug: T155157
Change-Id: I5c780b3347bd54a05694cfa6de93879656b4e921

5 years agoregistration: Allow specifying the value of a config setting can be public
Florian Schmidt [Fri, 13 Jan 2017 05:11:55 +0000 (06:11 +0100)]
registration: Allow specifying the value of a config setting can be public

This value is currently unused but will be used in later changes
for allowing to view configuration options on-wiki. It will require each
extension maintainer to whitelist the keys that can be published by marking
them as public.

Bug: T155156
Change-Id: I020c148157818ef8bfee0e79cb5a6f43181c5a8c

5 years agoMerge "Fix @covers for FileBackend"
jenkins-bot [Tue, 7 Mar 2017 07:08:17 +0000 (07:08 +0000)]
Merge "Fix @covers for FileBackend"

5 years agoMerge "resourceloader: Remove useless INFO log for message blob cache-miss"
jenkins-bot [Tue, 7 Mar 2017 02:28:35 +0000 (02:28 +0000)]
Merge "resourceloader: Remove useless INFO log for message blob cache-miss"

5 years agoMerge "RCFilters UI: Add tooltip to highlight menu"
jenkins-bot [Tue, 7 Mar 2017 02:19:49 +0000 (02:19 +0000)]
Merge "RCFilters UI: Add tooltip to highlight menu"

5 years agoRCFilters UI: Add tooltip to highlight menu
Moriel Schottlender [Tue, 7 Mar 2017 01:09:18 +0000 (17:09 -0800)]
RCFilters UI: Add tooltip to highlight menu

Bug: T159587
Change-Id: Iae5e050fd721d8c51d0b6c150d039c7f2ed6647d

5 years agoMerge "RCFilters UI: Override 'list-style' for <li> results"
jenkins-bot [Tue, 7 Mar 2017 00:38:54 +0000 (00:38 +0000)]
Merge "RCFilters UI: Override 'list-style' for <li> results"

5 years agoRCFilters UI: Override 'list-style' for <li> results
Moriel Schottlender [Tue, 7 Mar 2017 00:22:45 +0000 (16:22 -0800)]
RCFilters UI: Override 'list-style' for <li> results

Just in case a wiki defines list-style-image for recent changes
(like in beta labs) we remove it from the general system, so it
does not interfere with highlights.

Bug: T159586
Change-Id: Ic20961efa047d16191b9dd889e390eb29d28ab7d

5 years agoMerge "RCFilters UI: Fix double-loading of mw.rcfilters.less"
jenkins-bot [Tue, 7 Mar 2017 00:09:46 +0000 (00:09 +0000)]
Merge "RCFilters UI: Fix double-loading of mw.rcfilters.less"

5 years agoMerge "RCFilters UI: Unify the loader animation"
jenkins-bot [Tue, 7 Mar 2017 00:06:50 +0000 (00:06 +0000)]
Merge "RCFilters UI: Unify the loader animation"

5 years agoMerge "RCFilters UI: Change hover background for filter items"
jenkins-bot [Mon, 6 Mar 2017 23:58:29 +0000 (23:58 +0000)]
Merge "RCFilters UI: Change hover background for filter items"

5 years agoMerge "RCFilters UI: Fix capsule highlight circle to use pixels"
jenkins-bot [Mon, 6 Mar 2017 23:57:36 +0000 (23:57 +0000)]
Merge "RCFilters UI: Fix capsule highlight circle to use pixels"

5 years agoRCFilters UI: Fix double-loading of mw.rcfilters.less
Roan Kattouw [Mon, 6 Mar 2017 23:49:47 +0000 (15:49 -0800)]
RCFilters UI: Fix double-loading of mw.rcfilters.less

Change-Id: I424d4f84bb17a54980b311da7db9fdbb5ce56530

5 years agoRCFilters UI: Fix scrolling (once again) so it works in Firefox
Moriel Schottlender [Mon, 6 Mar 2017 23:40:12 +0000 (15:40 -0800)]
RCFilters UI: Fix scrolling (once again) so it works in Firefox

In firefox our scrollable container is html, we need to account
for that along with body element.

Change-Id: Ida603d419c85a2bf27ce8a5d46da7da3c1dc00ea

5 years agoRCFilters UI: Unify the loader animation
Moriel Schottlender [Mon, 6 Mar 2017 23:28:21 +0000 (15:28 -0800)]
RCFilters UI: Unify the loader animation

Bug: T159766
Change-Id: Ifda7510efa4e16422b5988c37c2e54aa08b52b71

5 years agoMerge "Ensure the editing textarea is not higher than browser's viewport"
jenkins-bot [Mon, 6 Mar 2017 23:25:32 +0000 (23:25 +0000)]
Merge "Ensure the editing textarea is not higher than browser's viewport"

5 years agoRCFilters UI: Fix capsule highlight circle to use pixels
Moriel Schottlender [Mon, 6 Mar 2017 23:07:54 +0000 (15:07 -0800)]
RCFilters UI: Fix capsule highlight circle to use pixels

That circle is small enough so that using 'em' values results in
it being mangled/stretched. Using exact pixels fixes that issue.

Change-Id: I5607c2c1f09c022e215b08993115ef631597e85c

5 years agoStrip U+0000 in wikitext
C. Scott Ananian [Mon, 27 Feb 2017 21:27:15 +0000 (16:27 -0500)]
Strip U+0000 in wikitext

U+0000 is not allowed in HTML5, there's no reason to allow it in wikitext.

It simplifies our code if we can just strip them at the start.  Strip in
PST as well so they don't sneak into our database either.

Tweaked the EXT_LINK URLs to account for the fact that invalid characters
get transformed into U+FFFD when using Preprocessor_DOM.  See 73649741ed1e
(r65967) for context on that change.

Bug: T159174
Change-Id: I3f67e92b61aacc87a40c3662085c84d1dac08bfb

5 years agoMerge "Add mw-body-content to indicators"
jenkins-bot [Mon, 6 Mar 2017 22:13:31 +0000 (22:13 +0000)]
Merge "Add mw-body-content to indicators"

5 years agoMerge "DatabaseUpdater add missing $maintenance property"
jenkins-bot [Mon, 6 Mar 2017 22:06:29 +0000 (22:06 +0000)]
Merge "DatabaseUpdater add missing $maintenance property"

5 years agoMerge "resourceloader: Enforce strict string keys in mw.Map"
jenkins-bot [Mon, 6 Mar 2017 21:56:57 +0000 (21:56 +0000)]
Merge "resourceloader: Enforce strict string keys in mw.Map"

5 years agoMerge "resourceloader: Undeprecate mw.Map#values"
jenkins-bot [Mon, 6 Mar 2017 21:56:43 +0000 (21:56 +0000)]
Merge "resourceloader: Undeprecate mw.Map#values"

5 years agoMerge "mediawiki.inspect: Fix intermittent test failure"
jenkins-bot [Mon, 6 Mar 2017 21:49:31 +0000 (21:49 +0000)]
Merge "mediawiki.inspect: Fix intermittent test failure"

5 years agoPageArchive: Fix typo in class file
Florian Schmidt [Mon, 6 Mar 2017 20:25:23 +0000 (21:25 +0100)]
PageArchive: Fix typo in class file

Follow up: I02b7e4785f369c7b6574c4bce093b6de58d1c651

Change-Id: Iec60fb023ef3c57e61ee29c829f750ca1b34467e

5 years agoMerge "Add dynomite comments to WANObjectCache"
jenkins-bot [Mon, 6 Mar 2017 21:27:54 +0000 (21:27 +0000)]
Merge "Add dynomite comments to WANObjectCache"

5 years agoresourceloader: Enforce strict string keys in mw.Map
Timo Tijhof [Sat, 4 Mar 2017 00:46:24 +0000 (16:46 -0800)]
resourceloader: Enforce strict string keys in mw.Map

* No longer perform any key-to-string casting in get(), set(),
  or exists().
  - Setting a non-string key is ignored.
  - Looking for a non-string key that looks like a string key
    that exists will not find it.

Clean up:

* Remove needless `selection=slice.call(selection)` in mw.Map#get
  Follows-up 77d71f743 (r75486). Not sure why this was here.

* Inline logic for the multi-key retrieval instead of recursing.
  This also removes undocumented behaviour where a nested array
  could be passed to mw.config.get(), e.g. mw.config.get([['debug']]),
  which would produces a nested object.

Change-Id: I84506930919e59ce16d96d6d623db5aae5f273e1

5 years agoresourceloader: Undeprecate mw.Map#values
Timo Tijhof [Sat, 4 Mar 2017 00:36:46 +0000 (16:36 -0800)]
resourceloader: Undeprecate mw.Map#values

Follows-up dc0f9b3a3a, which renamed #values to #internalValues to ease
migration to ES5 Map where such object could no longer exist in
real-time as a plain object.

However ES5 Map for mw.Map is no longer on the roadmap per T146432.
The main reason for adopting ES5 was performance, which turns out
to be invalid and was merely a bug in V8 that has since been fixed.

Change this back and undeprecate it. If anything, for developer
convience and type-ahead, which is fairly wildely used.

Change-Id: Ic19641656e53068a0aa15c27f172d39eb13620dd

5 years agomediawiki.inspect: Fix intermittent test failure
Timo Tijhof [Mon, 6 Mar 2017 21:11:48 +0000 (13:11 -0800)]
mediawiki.inspect: Fix intermittent test failure

Follows-up 15c0382121.

Bug: T159751
Change-Id: Ib60521c03e72b1fac694b643c570242d8ee8fab1

5 years agoDatabaseUpdater add missing $maintenance property
addshore [Mon, 6 Mar 2017 21:06:43 +0000 (22:06 +0100)]
DatabaseUpdater add missing $maintenance property

Change-Id: I57b1fbbe2f85a74d56c49edef012a185d32ceb1a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Mar 2017 20:56:45 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I71792e5fc230528c7b7b24aac3a69f390ef6de16

5 years agoMerge "Add missing dependency from 'mediawiki.user' to 'mediawiki.storage'"
jenkins-bot [Mon, 6 Mar 2017 20:53:05 +0000 (20:53 +0000)]
Merge "Add missing dependency from 'mediawiki.user' to 'mediawiki.storage'"

5 years agoMerge "RCFilters UI, Followup I97a45208: Replace the entire fieldset"
jenkins-bot [Mon, 6 Mar 2017 20:47:58 +0000 (20:47 +0000)]
Merge "RCFilters UI, Followup I97a45208: Replace the entire fieldset"

5 years agoMerge "mw.special.block: Add missing dependency"
jenkins-bot [Mon, 6 Mar 2017 20:44:01 +0000 (20:44 +0000)]
Merge "mw.special.block: Add missing dependency"

5 years agoresourceloader: Remove useless INFO log for message blob cache-miss
Timo Tijhof [Mon, 6 Mar 2017 20:42:40 +0000 (12:42 -0800)]
resourceloader: Remove useless INFO log for message blob cache-miss

Change-Id: I306fe87a1de5335e4ce7042667a005bbd7d772c1

5 years agoMerge "RCFilters UI: Fix scrolling behavior on search/popup"
jenkins-bot [Mon, 6 Mar 2017 20:37:40 +0000 (20:37 +0000)]
Merge "RCFilters UI: Fix scrolling behavior on search/popup"

5 years agomw.special.block: Add missing dependency
Bartosz Dziewoński [Mon, 6 Mar 2017 20:31:32 +0000 (21:31 +0100)]
mw.special.block: Add missing dependency

Bug: T159741
Change-Id: Iff4686b9d5411675582426b3264b88e49baf1f74

5 years agoRCFilters UI: Fix scrolling behavior on search/popup
Moriel Schottlender [Mon, 6 Mar 2017 20:26:43 +0000 (12:26 -0800)]
RCFilters UI: Fix scrolling behavior on search/popup

Bug: T158018
Change-Id: I7278f34018721e7631ed3f9307e093bd55ff7d24

5 years agoMerge "Fix Title::loadRestrictions() for create-protected titles"
jenkins-bot [Mon, 6 Mar 2017 20:21:01 +0000 (20:21 +0000)]
Merge "Fix Title::loadRestrictions() for create-protected titles"

5 years agoMerge "RCFilters UI: Add highlight icon"
jenkins-bot [Mon, 6 Mar 2017 19:41:37 +0000 (19:41 +0000)]
Merge "RCFilters UI: Add highlight icon"

5 years agoAdd missing dependency from 'mediawiki.user' to 'mediawiki.storage'
Fomafix [Mon, 6 Mar 2017 19:02:19 +0000 (20:02 +0100)]
Add missing dependency from 'mediawiki.user' to 'mediawiki.storage'

Follows-up 213cdfbec8cf063a6e5a6f168ec97dbd32653d4f.

Change-Id: I2fb1ae48eade34e5df640313b7976541655f2a79

5 years agoRCFilters UI: Add highlight icon
Moriel Schottlender [Thu, 2 Mar 2017 23:13:33 +0000 (15:13 -0800)]
RCFilters UI: Add highlight icon

Bug: T149467
Change-Id: I8a38fd2a07b1d3516b21911ddcf4014a9015d48e

5 years agoRCFilters UI: Change hover background for filter items
Moriel Schottlender [Mon, 6 Mar 2017 18:21:44 +0000 (10:21 -0800)]
RCFilters UI: Change hover background for filter items

Bug: T149452
Change-Id: I4b891c2b25b03b185f1e6034fc9a224d632caa89

5 years agoFix mediawiki.action.edit.collapsibleFooter dependencies
Brad Jorsch [Mon, 6 Mar 2017 17:32:48 +0000 (12:32 -0500)]
Fix mediawiki.action.edit.collapsibleFooter dependencies

Ie9a4612de changed it to use mw.storage, but didn't update the
dependencies. So if nothing else happened to load mediawiki.storage
already, it blows up.

Change-Id: Id276a29d914dacd1d176469db542b41ce6498ea1