lhc/web/wiklou.git
6 years agoRevised styling of sister-search sidebar.
Jan Drewniak [Fri, 7 Apr 2017 08:35:20 +0000 (10:35 +0200)]
Revised styling of sister-search sidebar.

Various improvements to the sister-search sidebar:

- using WM project favicons
- scoping CSS specific to sister-search sidebar
- making sister-search items more compact

Bug: T160724, T158938
Change-Id: I2794121ab83cbd4e2b8868150e4d61db376fa63b

6 years agoconfig: Add @covers to complete GlobalVarConfig and MultiConfig
Timo Tijhof [Sat, 6 May 2017 00:26:01 +0000 (17:26 -0700)]
config: Add @covers to complete GlobalVarConfig and MultiConfig

Change-Id: Ifff51c8b078ba3a3026720f13263c7af0d7d1145

6 years agoMerge "jquery.ui: Avoid deprecated jQuery.expr[":"]"
jenkins-bot [Sat, 6 May 2017 00:14:33 +0000 (00:14 +0000)]
Merge "jquery.ui: Avoid deprecated jQuery.expr[":"]"

6 years agoClear postEdit cookie on server-side
Fomafix [Sat, 29 Apr 2017 19:00:04 +0000 (21:00 +0200)]
Clear postEdit cookie on server-side

* Load module 'mediawiki.action.view.postEdit' only when needed.
* Transfer message key via JavaScript config variable wgPostEdit.
* The response is maked as not-cachable to prevent that other users get the
  post edit message.

This change redefines the global JavaScript variable wgPostEdit from true
to a string and set it on server-side.

Bug: T164148
Change-Id: Id780bc280ce4a2fa4606141419932b7dcd45157b

6 years agojquery.ui: Avoid deprecated jQuery.expr[":"]
Timo Tijhof [Fri, 5 May 2017 23:31:25 +0000 (16:31 -0700)]
jquery.ui: Avoid deprecated jQuery.expr[":"]

Compatible with jQuery 1.11 and 3.x, as jQuery.expr.pseudos was
introduced in jQuery 1.8.

Note that this is not blocking jQuery 3 (T124742) since it is
covered by jQuery Migrate. But fixing this makes the edit page less
noisy by default.

Change-Id: I7ffbfd2e55aa7dcc31860eb0117b203e63ca7283

6 years agoMerge "Properly detect if CACHE_ACCEL is available in the installer"
jenkins-bot [Fri, 5 May 2017 20:52:19 +0000 (20:52 +0000)]
Merge "Properly detect if CACHE_ACCEL is available in the installer"

6 years agophpunit: Fix broken @covers for swapICCProfile in JpegTest
Timo Tijhof [Fri, 5 May 2017 20:20:43 +0000 (13:20 -0700)]
phpunit: Fix broken @covers for swapICCProfile in JpegTest

Follows-up a428e3f067.

Change-Id: I5755dc560fbb3314578775839b02653a4e2113d5

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

Change-Id: I498e214dec5f3939847016861b27ebd2a45e7fe1

6 years agoMerge "CSSMin: Support parenthesis and quotes in url references"
jenkins-bot [Fri, 5 May 2017 18:58:22 +0000 (18:58 +0000)]
Merge "CSSMin: Support parenthesis and quotes in url references"

6 years agoMerge "resourceloader: Add CSSMin benchmarks"
jenkins-bot [Fri, 5 May 2017 18:57:38 +0000 (18:57 +0000)]
Merge "resourceloader: Add CSSMin benchmarks"

6 years agoCSSMin: Support parenthesis and quotes in url references
Timo Tijhof [Thu, 4 May 2017 02:54:52 +0000 (19:54 -0700)]
CSSMin: Support parenthesis and quotes in url references

Previously they were often being cut short due to the url pattern
ending at the first single quote, double quote or closing parenthesis
regardless of which of those started the url match.

Running benchmarkCSSMin.php before and after the change doesn't seem
produce consistent improvement or regression. Repeated runs with count=100
with and without this change both have a median between 2.6ms and 2.9ms
using PHP 5.6, and between 2.6ms and 2.8ms using HHVM 3.12.

Bug: T60473
Change-Id: I6d6a077ad76588f3ed81b1901a26b7e56d2157ee

6 years agoMerge "RCFilter UI: allow getParametersFromFilters to accept filter list"
jenkins-bot [Fri, 5 May 2017 15:16:59 +0000 (15:16 +0000)]
Merge "RCFilter UI: allow getParametersFromFilters to accept filter list"

6 years agoMerge "ApiQueryTags: Use cached statistics instead of querying hit counts ourselves"
jenkins-bot [Fri, 5 May 2017 13:30:58 +0000 (13:30 +0000)]
Merge "ApiQueryTags: Use cached statistics instead of querying hit counts ourselves"

6 years agoMerge "Fix php code style"
jenkins-bot [Fri, 5 May 2017 12:32:37 +0000 (12:32 +0000)]
Merge "Fix php code style"

6 years agoFix php code style
Paladox [Thu, 4 May 2017 19:35:41 +0000 (19:35 +0000)]
Fix php code style

Preparation change for updating mediawiki code sniffer to 0.8.0

Change-Id: Ib0b3fe4afea9096ffa3a1347b4f7e07d3398b0b2

6 years agoWriting a useful description for the FakeConverter class
Kaldari [Fri, 5 May 2017 03:08:00 +0000 (20:08 -0700)]
Writing a useful description for the FakeConverter class

Change-Id: I6575ea13790c224c1b25c7e9373b4bf40d035a30

6 years agoMerge "Fix registerTempTableOperation() return value for non-temporary table DROPs"
jenkins-bot [Fri, 5 May 2017 02:02:44 +0000 (02:02 +0000)]
Merge "Fix registerTempTableOperation() return value for non-temporary table DROPs"

6 years agoApiQueryTags: Use cached statistics instead of querying hit counts ourselves
Roan Kattouw [Fri, 5 May 2017 01:04:58 +0000 (18:04 -0700)]
ApiQueryTags: Use cached statistics instead of querying hit counts ourselves

The hit count query was quite slow. Unfortunately, it seems that we do need
tagUsageStatistics() even when hitcounts are not requested, because it
might list additional tags that aren't listed by the list*Tags() functions.
I don't know if this can happen in practice, but all the code around tags
seems to operate as if it might.

Bug: T164552
Change-Id: Ifccf7f5ac7a1220ff67a68589398cbf30aefd3ad

6 years agoMerge "EtcdConfig: Fix infinite timeout bug, and reduce timeout"
jenkins-bot [Fri, 5 May 2017 00:31:02 +0000 (00:31 +0000)]
Merge "EtcdConfig: Fix infinite timeout bug, and reduce timeout"

6 years agoMerge "build: Update eslint to 0.4.0 and make pass"
jenkins-bot [Thu, 4 May 2017 22:55:38 +0000 (22:55 +0000)]
Merge "build: Update eslint to 0.4.0 and make pass"

6 years agobuild: Update eslint to 0.4.0 and make pass
Ed Sanders [Thu, 4 May 2017 15:59:40 +0000 (16:59 +0100)]
build: Update eslint to 0.4.0 and make pass

Change-Id: Ib230392f332268ac801cf668f399fcefb1cb1cc5

6 years agoFix registerTempTableOperation() return value for non-temporary table DROPs
Aaron Schulz [Thu, 4 May 2017 20:09:27 +0000 (13:09 -0700)]
Fix registerTempTableOperation() return value for non-temporary table DROPs

Change-Id: I338dfbbf5479d5157de8d9abc2012cc0e7d10c93

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

Change-Id: I6e3920bd06e5ca5462d392a569c817e46e041fcc

6 years agoMerge "Fix contradictory RC filters and add back-compat"
jenkins-bot [Thu, 4 May 2017 18:16:36 +0000 (18:16 +0000)]
Merge "Fix contradictory RC filters and add back-compat"

6 years agoMerge "mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout"
jenkins-bot [Thu, 4 May 2017 16:51:47 +0000 (16:51 +0000)]
Merge "mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout"

6 years agoMerge "Fix typo in DBConnReff class phpdoc"
jenkins-bot [Thu, 4 May 2017 16:39:15 +0000 (16:39 +0000)]
Merge "Fix typo in DBConnReff class phpdoc"

6 years agoMerge "Fix inconsistent spec of InterwikiLookup::getAllPrefixes."
jenkins-bot [Thu, 4 May 2017 16:38:08 +0000 (16:38 +0000)]
Merge "Fix inconsistent spec of InterwikiLookup::getAllPrefixes."

6 years agoMerge "Remove unused var assign in Parser::getTemplateDom"
jenkins-bot [Thu, 4 May 2017 15:54:49 +0000 (15:54 +0000)]
Merge "Remove unused var assign in Parser::getTemplateDom"

6 years agoMerge "Follow-up bac92e67ca0: make order of filter groups less misleading"
jenkins-bot [Thu, 4 May 2017 13:03:54 +0000 (13:03 +0000)]
Merge "Follow-up bac92e67ca0: make order of filter groups less misleading"

6 years agoFix contradictory RC filters and add back-compat
Stephane Bisson [Tue, 6 Dec 2016 15:25:35 +0000 (10:25 -0500)]
Fix contradictory RC filters and add back-compat

Some combinations of RC filters should never appear
together because they guarantee to return no data
and cannot be visually represented in the new RC
filters UI (ERI project).

Examples include:
* 'hidemyself' and 'hidebyothers'
* 'hideminor' and 'hidemajor'
* All of the filters in the changeType group (which
  is extended by extensions)

This also handles an old special case, but it now redirects
instead of doing it silently:

hideanons=1 & hideliu=1 & hidebots=1 -> hideliu=1 & hidebots=1
hideanons=1 & hideliu=1 & hidebots=0 -> hidehumans=1

Bug: T151873
Change-Id: Id08dccd07b262ce61c9d38563f19a0ab181e2341

6 years agoMerge "Fix all the Doxygen for the RCFilters backend"
jenkins-bot [Thu, 4 May 2017 08:46:35 +0000 (08:46 +0000)]
Merge "Fix all the Doxygen for the RCFilters backend"

6 years agoFix inconsistent spec of InterwikiLookup::getAllPrefixes.
daniel [Tue, 2 May 2017 19:44:05 +0000 (21:44 +0200)]
Fix inconsistent spec of InterwikiLookup::getAllPrefixes.

The documented return type was not what existing callers expected,
and not what the default implementation actually returned.

This patch fixes the interface documentation and the behavior of
an alternative implementation.

Change-Id: Ib09bffeba3ddc5b43da1c7c299f1fa946be4e2e2

6 years agoFix typo in DBConnReff class phpdoc
addshore [Thu, 4 May 2017 08:20:43 +0000 (10:20 +0200)]
Fix typo in DBConnReff class phpdoc

Change-Id: Iba61678fb0b6bd63a1c15a074adc9d9523384cb7

6 years agoMerge "Embed TinyRGB color profile when JPG EXIF Color Space = sRGB but no profile...
jenkins-bot [Thu, 4 May 2017 07:59:08 +0000 (07:59 +0000)]
Merge "Embed TinyRGB color profile when JPG EXIF Color Space = sRGB but no profile embedded"

6 years agoChange default $wgShellLocale to C.UTF-8, and use it to set LC_ALL
Brad Jorsch [Tue, 28 Jul 2015 16:17:40 +0000 (12:17 -0400)]
Change default $wgShellLocale to C.UTF-8, and use it to set LC_ALL

It's less likely to cause surprises than language-specific defaults.

Bug: T107128
Change-Id: Ife7673255798f3a3d72028a26607c56b9b7fb224

6 years agoEtcdConfig: Fix infinite timeout bug, and reduce timeout
Tim Starling [Thu, 4 May 2017 05:07:11 +0000 (15:07 +1000)]
EtcdConfig: Fix infinite timeout bug, and reduce timeout

removeServer() returns the modified array, rather than passing by
reference, so you have to use the return value to avoid an infinite loop
when a server is down.

Tune the timeout downwards, to 2s. With three servers in the SRV pool,
if they are all unreachable, this will mean an overall request time of
6s, which is conveniently less than the APC lock time and the cache
TTL (9-10s). If the APC lock time is significantly shorter than the time
it takes to do the HTTP requests, then additional threads join in
waiting for the server. This could have stability consequences if the
maximum HHVM worker count is exceeded.

Change-Id: I3176aa41b8833c0ba0b668859e59911cd4392250

6 years agoresourceloader: Add CSSMin benchmarks
Timo Tijhof [Thu, 4 May 2017 04:00:14 +0000 (21:00 -0700)]
resourceloader: Add CSSMin benchmarks

Usage:

 # Run default benchmark
 $ php maintenance/benchmarks/benchmarkCSSMin.php

 # Use custom file
 $ php maintenance/benchmarks/benchmarkCSSMin.php --file resources/lib/qunitjs/qunit.css

 # Debug the output for inspection (no benchmark)
 $ php maintenance/benchmarks/benchmarkCSSMin.php --out

Change-Id: I70d118131d0ff16d1a811b2de1328ea622b7ca69

6 years agoRevert "Convert mwdoc-filter.php to Maintenance", rm wfShellWikiCmd
Matthew Flaschen [Thu, 4 May 2017 00:04:29 +0000 (20:04 -0400)]
Revert "Convert mwdoc-filter.php to Maintenance", rm wfShellWikiCmd

Revert a58948d64 and instead remove wfShellWikiCmd and escape
shell arguments directly.

This should be fine since mwdoc-filter.php does not depend on per-wiki
state.

Change-Id: Id9c6ca84bab827675b71ca16bf688fd3f5c993a1

6 years agoFix all the Doxygen for the RCFilters backend
Matthew Flaschen [Wed, 3 May 2017 02:47:41 +0000 (22:47 -0400)]
Fix all the Doxygen for the RCFilters backend

All the lists and sub-lists now render correctly,
and missing parameters have been added.

Bug: T163069
Change-Id: I7a8c95efaff7c844e32e4375dfe6af8c2e91923f

6 years agoMerge "RCFilters: Only register watchlist filter group when user is logged in"
jenkins-bot [Wed, 3 May 2017 22:20:33 +0000 (22:20 +0000)]
Merge "RCFilters: Only register watchlist filter group when user is logged in"

6 years agoMerge "RC Filters: always join with 'page'"
jenkins-bot [Wed, 3 May 2017 22:19:36 +0000 (22:19 +0000)]
Merge "RC Filters: always join with 'page'"

6 years agoFollow-up bac92e67ca0: make order of filter groups less misleading
Roan Kattouw [Tue, 2 May 2017 23:41:05 +0000 (16:41 -0700)]
Follow-up bac92e67ca0: make order of filter groups less misleading

The significance group comes before the lastRevision group in the UI
(because it has priority -6 vs -7), but we listed lastRevision first.
Swap them so the order in the definition matches the order in the UI.

Change-Id: I5d498bd8c7505f5cab3c89564650e0e8aaa4e117

6 years agoRCFilters: Only register watchlist filter group when user is logged in
Stephane Bisson [Tue, 2 May 2017 23:39:21 +0000 (16:39 -0700)]
RCFilters: Only register watchlist filter group when user is logged in

Follow-up to 9a97cb6.

Bug: T164314
Change-Id: If1af0816b5b37857060b87db8e4e798b4824b5a5

6 years agoRC Filters: always join with 'page'
Stephane Bisson [Wed, 3 May 2017 18:58:22 +0000 (14:58 -0400)]
RC Filters: always join with 'page'

The 'last revision' filter group relies on
the 'page' table to filter and highlight.

Bug: T163561
Change-Id: I29be21596ce02270859936203c921777c952e3a4

6 years agoFix typo in comment
Fomafix [Wed, 3 May 2017 20:14:44 +0000 (22:14 +0200)]
Fix typo in comment

Change-Id: I3c5f3e66e2bca5b1629ee2fc54992a81e36d71cb

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

Change-Id: Ie59fc60d2680bc9ed62230834e1930f16c32fb14

6 years agoMerge "Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)"
jenkins-bot [Wed, 3 May 2017 19:35:45 +0000 (19:35 +0000)]
Merge "Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)"

6 years agoMerge "Upstream transition-transform mixin from MobileFrontend"
jenkins-bot [Wed, 3 May 2017 18:26:33 +0000 (18:26 +0000)]
Merge "Upstream transition-transform mixin from MobileFrontend"

6 years agoUpstream transition-transform mixin from MobileFrontend
jdlrobson [Wed, 3 May 2017 00:16:31 +0000 (17:16 -0700)]
Upstream transition-transform mixin from MobileFrontend

This specialised usage of transition allows hardware accelerated
transitions on mobile devices and is commonly used in MobileFrontend.

Change-Id: Iaa622043fdbb5be965716c88b48f30f61d259c8b

6 years agoMerge "mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups"
jenkins-bot [Wed, 3 May 2017 16:48:56 +0000 (16:48 +0000)]
Merge "mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups"

6 years agoMerge "ApiSandbox: Specify a $overlay for menu-using widgets"
jenkins-bot [Wed, 3 May 2017 16:44:13 +0000 (16:44 +0000)]
Merge "ApiSandbox: Specify a $overlay for menu-using widgets"

6 years agoAdd quick shorthand for SVG generation
jdlrobson [Wed, 3 May 2017 00:48:01 +0000 (17:48 -0700)]
Add quick shorthand for SVG generation

Change-Id: Ic2a68d2fa62dc079743de641ada4c7f4dd294f2f

6 years agoUse IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)
Roan Kattouw [Wed, 3 May 2017 15:00:08 +0000 (08:00 -0700)]
Use IGNORE INDEX(ls_log_id) instead of FORCE INDEX(ls_field_val)

ls_field_val was renamed to PRIMARY, but this is only partially
complete in WMF production. There is only one other index on the
log_search table, so ignoring that one is equivalent to forcing
the other one.

Bug: T17441
Change-Id: I63182a9f94eabb4cc47414d86b02c82bde1e58b0

6 years agoMerge "Add mw-content-ltr|rtl to file redirect pages"
jenkins-bot [Wed, 3 May 2017 14:21:38 +0000 (14:21 +0000)]
Merge "Add mw-content-ltr|rtl to file redirect pages"

6 years agoMerge "Fix small typo in documentation of IDatabase"
jenkins-bot [Wed, 3 May 2017 14:10:55 +0000 (14:10 +0000)]
Merge "Fix small typo in documentation of IDatabase"

6 years agoMake "eval.php -d 2" work again
Tim Starling [Fri, 28 Apr 2017 01:50:10 +0000 (11:50 +1000)]
Make "eval.php -d 2" work again

Instead of iterating through load balancer info, just set the flag in
the master and replica connections, since that seems more robust.

Deprecate LoadBalancer::setServerInfo() and
LoadBalancer::getServerInfo(), no remaining callers in core or
in-tree extensions, I think I added the function just for this feature.

Do a service reset, since Logger instances are injected into
LoadBalancer by ServiceWiring (via MWLBFactory::applyDefaultConfig()).
Similarly CryptRand, MimeAnalyzer.

Fix the usage text for shell.php

Change-Id: I3e85a6e8cfa1243a0371cfb3ce1c18665e8c711d

6 years agoFix small typo in documentation of IDatabase
Amir Sarabadani [Wed, 3 May 2017 13:30:38 +0000 (18:00 +0430)]
Fix small typo in documentation of IDatabase

Change-Id: Ic9ac07700ded26e8a14f457428a7fd52a693923f

6 years agoAdd mw-content-ltr|rtl to file redirect pages
Derk-Jan Hartman [Tue, 26 Jan 2016 19:35:29 +0000 (20:35 +0100)]
Add mw-content-ltr|rtl to file redirect pages

28ea73bc3a07a4588f1b5fde4f5c41522eaa9518 added NS_FILE to the list,
because most of the content is user language. That does not
really apply for #REDIRECT, however.

As a side effect, this also makes the redirect arrows visible on File
redirect pages, because their CSS depends on these classes.

Another side effect is that now "additional" content will show for the
redirect as reported broken in T29857.

Bug: T60955
Change-Id: I6b14c17a4b74ff5964ea61554aa3afb197d206bf

6 years agoMerge "Convert mwdoc-filter.php to Maintenance class so --wiki works"
jenkins-bot [Wed, 3 May 2017 03:45:05 +0000 (03:45 +0000)]
Merge "Convert mwdoc-filter.php to Maintenance class so --wiki works"

6 years agoConvert mwdoc-filter.php to Maintenance class so --wiki works
Matthew Flaschen [Wed, 3 May 2017 02:02:06 +0000 (22:02 -0400)]
Convert mwdoc-filter.php to Maintenance class so --wiki works

Change-Id: Ie2fc4109bc2e7a23a6549d9705be44cf2eb858b9

6 years agoMerge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"
jenkins-bot [Wed, 3 May 2017 00:09:47 +0000 (00:09 +0000)]
Merge "maintenance/resources/update-oojs-ui: Copy across map files for debug mode"

6 years agoMerge "Move RELEASE-NOTES-1.29 to HISTORY"
jenkins-bot [Wed, 3 May 2017 00:08:10 +0000 (00:08 +0000)]
Merge "Move RELEASE-NOTES-1.29 to HISTORY"

6 years agoMerge "Follow-up 14cffee7: Correct deprecation version comment"
jenkins-bot [Wed, 3 May 2017 00:06:21 +0000 (00:06 +0000)]
Merge "Follow-up 14cffee7: Correct deprecation version comment"

6 years agoMerge "EditPage: Vary 'save button' label for appropriate i18n"
jenkins-bot [Wed, 3 May 2017 00:03:16 +0000 (00:03 +0000)]
Merge "EditPage: Vary 'save button' label for appropriate i18n"

6 years agoRCFilters: Override highlighted background
Moriel Schottlender [Tue, 2 May 2017 23:41:13 +0000 (16:41 -0700)]
RCFilters: Override highlighted background

Muted state has overridden the 'highlighted' state which meant that
arrow movement weren't visible on items that were muted. This fix
corrects that.

Bug: T159768
Change-Id: I9d853eb3de1e482bd01e27635e92af505176eef5

6 years agoMove RELEASE-NOTES-1.29 to HISTORY
James D. Forrester [Thu, 27 Apr 2017 21:02:10 +0000 (14:02 -0700)]
Move RELEASE-NOTES-1.29 to HISTORY

Changes to master that are going to be immediately backported to
REL1_29 before release should write changes to HISTORY directly.

Change-Id: Ia3e02293b13406e7a4741ef14897dd83bca98d46

6 years agoRCFilter UI: allow getParametersFromFilters to accept filter list
Moriel Schottlender [Tue, 2 May 2017 21:17:45 +0000 (14:17 -0700)]
RCFilter UI: allow getParametersFromFilters to accept filter list

Up until now we assumed that this method should output the parameters
from the state of the system, which meant that even if it accepted an
external list, it required that it be the format of this.groups.

Instead, allow the method to accept a "flat" list of filter name/values
and translate that to a parameter state without changing the model state.

Change-Id: Ib41da620a16d874326fe73220ae7a0114c555639

6 years agoMerge "RC Filters: watch filter highlight"
jenkins-bot [Tue, 2 May 2017 21:26:38 +0000 (21:26 +0000)]
Merge "RC Filters: watch filter highlight"

6 years agoMerge "Document "What's This" group UI feature"
jenkins-bot [Tue, 2 May 2017 20:16:54 +0000 (20:16 +0000)]
Merge "Document "What's This" group UI feature"

6 years agoMerge "Toggle logo preloading via the skin"
jenkins-bot [Tue, 2 May 2017 20:13:36 +0000 (20:13 +0000)]
Merge "Toggle logo preloading via the skin"

6 years agoRC Filters: watch filter highlight
Stephane Bisson [Tue, 2 May 2017 20:09:27 +0000 (16:09 -0400)]
RC Filters: watch filter highlight

When checking if lines are 'watchednew' for highlight purposes,
make sure 'rc_timestamp' and 'wl_notificationtimestamp' are truthy.

Bug: T163964
Change-Id: I3cd6cc9835db01229b8d1cc6ccfc371a36709ef2

6 years agoDocument "What's This" group UI feature
Matthew Flaschen [Tue, 2 May 2017 20:06:37 +0000 (16:06 -0400)]
Document "What's This" group UI feature

Bug: T163069
Change-Id: I1100dbea1549ee208dc0a1e9bcd56d8c93775302

6 years agoMerge "RC Filters: Support multiple tag filters"
jenkins-bot [Tue, 2 May 2017 20:02:02 +0000 (20:02 +0000)]
Merge "RC Filters: Support multiple tag filters"

6 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Tue, 2 May 2017 19:59:02 +0000 (19:59 +0000)]
Merge "Localisation updates from https://translatewiki.net."

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

Change-Id: I036a25f9df1810a9a484e05389bd82a0a70e5457

6 years agoMerge "RC Filters: support multiple namespaces"
jenkins-bot [Tue, 2 May 2017 19:58:27 +0000 (19:58 +0000)]
Merge "RC Filters: support multiple namespaces"

6 years agoMerge "userExpLevel test: use $tables from function under tests"
jenkins-bot [Tue, 2 May 2017 19:58:22 +0000 (19:58 +0000)]
Merge "userExpLevel test: use $tables from function under tests"

6 years agoRC Filters: Support multiple tag filters
Stephane Bisson [Tue, 2 May 2017 19:29:24 +0000 (15:29 -0400)]
RC Filters: Support multiple tag filters

Bug: T164133
Change-Id: Id9404940644197bac235202a45324b201613303d

6 years agoRemove unused var assign in Parser::getTemplateDom
Umherirrender [Tue, 2 May 2017 19:18:39 +0000 (21:18 +0200)]
Remove unused var assign in Parser::getTemplateDom

Change-Id: If11d7a2568d4235df6888e4001500bdf45f58eae

6 years agoMerge "userExpLevel test: use a single time()"
jenkins-bot [Tue, 2 May 2017 18:43:45 +0000 (18:43 +0000)]
Merge "userExpLevel test: use a single time()"

6 years agoRC Filters: support multiple namespaces
Stephane Bisson [Tue, 2 May 2017 17:47:17 +0000 (13:47 -0400)]
RC Filters: support multiple namespaces

Make the namespace filter support multiple values separated by ','.

Bug: T164132
Change-Id: I6a83eafef69ea416dd9ba8cecc524efbd85db438

6 years agoMerge "RC Filters: watchlist"
jenkins-bot [Tue, 2 May 2017 17:42:04 +0000 (17:42 +0000)]
Merge "RC Filters: watchlist"

6 years agoMerge "RC Filters: group.allSelected consider subsets"
jenkins-bot [Tue, 2 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "RC Filters: group.allSelected consider subsets"

6 years agomw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout
Brad Jorsch [Tue, 2 May 2017 16:35:27 +0000 (12:35 -0400)]
mw.special.apisandbox: Don't pass $label to OO.ui.FieldLayout

They removed that functionality. Instead, access the FieldLayout's
$label property to attach the click event handler we need. It's not
documented (I think), but seems stable.

Bug: T164149
Change-Id: I30e7ad51dc1a484203138919c19a55f77552f330

6 years agoMerge "RC Filters: don't bind onMenuToggle twice"
jenkins-bot [Tue, 2 May 2017 16:28:10 +0000 (16:28 +0000)]
Merge "RC Filters: don't bind onMenuToggle twice"

6 years agomw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups
Brad Jorsch [Tue, 2 May 2017 16:08:26 +0000 (12:08 -0400)]
mw.special.apisandbox: Specify auto width on PopupButtonWidgets' popups

Bug: T133710
Change-Id: Id6b05aa3d589040efeb7baf4ac9d4176182f538b

6 years agoApiSandbox: Specify a $overlay for menu-using widgets
Brad Jorsch [Wed, 9 Mar 2016 21:12:15 +0000 (16:12 -0500)]
ApiSandbox: Specify a $overlay for menu-using widgets

This makes the menu work more sensibly when the widget is inside a
scrolling box of some sort.

Bug: T129308
Change-Id: Ic3b26883984030bb0ab37fcca8acd8b8c4535c2d

6 years agoRC Filters: don't bind onMenuToggle twice
Stephane Bisson [Tue, 2 May 2017 14:46:54 +0000 (10:46 -0400)]
RC Filters: don't bind onMenuToggle twice

Having 2 event handlers for onMenuToggle means
double-counting popup openings, which breaks
the highlight guided tour prompt schedule.

Bug: T164228
Change-Id: Ia6855e6b07e1364ff76c2bccd82c33b21b82619b

6 years agoRC Filters: group.allSelected consider subsets
Stephane Bisson [Tue, 2 May 2017 13:25:33 +0000 (09:25 -0400)]
RC Filters: group.allSelected consider subsets

Consider a group to be all selected if its unselected
items are subsets of selected items.

This allows the watchlist group to show as no-effect
when 'watched' and 'notwatched' are selected but
'watchednow' is not selected.

Bug: T163964
Change-Id: I40d2a02ab074bc87f8a6f2498834b89fbbe55771

6 years agoToggle logo preloading via the skin
Gilles Dubuc [Tue, 2 May 2017 12:58:06 +0000 (14:58 +0200)]
Toggle logo preloading via the skin

Bug: T100999
Change-Id: I0e18dc7fdbf133f3e4002f48f3040604687571dc

6 years agoRC Filters: watchlist
Stephane Bisson [Mon, 1 May 2017 20:38:35 +0000 (16:38 -0400)]
RC Filters: watchlist

Introducing filtering on watchlist status
  watchlist=watched|watchednew|notwatched

'watchednew' is a subset of 'watched

Bug: T163964
Change-Id: I04df40c8399e15a03a400b4a24afedf1df242a93

6 years agoMerge "Check supportsDirectEditing when suggesting page creation"
jenkins-bot [Tue, 2 May 2017 11:39:48 +0000 (11:39 +0000)]
Merge "Check supportsDirectEditing when suggesting page creation"

6 years agomediawiki.user: Remove deprecated mw.user.bucket
Fomafix [Wed, 19 Apr 2017 07:21:02 +0000 (09:21 +0200)]
mediawiki.user: Remove deprecated mw.user.bucket

The function mw.user.bucket is already deprecated since MediaWiki 1.23.

Change-Id: I2589dc7ce94004504a7aad080374877391f20057

6 years agoresourceloader: Bump severity of style queue violation to Warning
Timo Tijhof [Tue, 2 May 2017 00:28:32 +0000 (17:28 -0700)]
resourceloader: Bump severity of style queue violation to Warning

Previously it was only in debug logs (which are enabled in Jenkins,
MediaWiki-Vagrant, Beta, and for mwdebug hosts in wmf-production).

Turning it into a warning() will log it for regular requests as well
which is the last step before we can consider hard enforcement.

Bug: T92459
Change-Id: I87c7794c5cfe35521bf76cc42f94907001e9d24b

6 years agoMerge "Adding explantation for why to use User::incEditCount()"
jenkins-bot [Mon, 1 May 2017 23:49:26 +0000 (23:49 +0000)]
Merge "Adding explantation for why to use User::incEditCount()"

6 years agoMerge "RC Filters: Last revision filter group"
jenkins-bot [Mon, 1 May 2017 23:48:11 +0000 (23:48 +0000)]
Merge "RC Filters: Last revision filter group"

6 years agoMerge "RC Filters: Make filters header sticky"
jenkins-bot [Mon, 1 May 2017 23:48:06 +0000 (23:48 +0000)]
Merge "RC Filters: Make filters header sticky"

6 years agoMerge "config: Use less generic cache key, and not fragmented by wiki"
jenkins-bot [Mon, 1 May 2017 23:31:21 +0000 (23:31 +0000)]
Merge "config: Use less generic cache key, and not fragmented by wiki"

6 years agoMerge "config: Add unit tests for EtcdConfig"
jenkins-bot [Mon, 1 May 2017 23:30:49 +0000 (23:30 +0000)]
Merge "config: Add unit tests for EtcdConfig"

6 years agoMerge "Avoid master queries in loadAndLazyInit() for miser mode"
jenkins-bot [Mon, 1 May 2017 23:24:36 +0000 (23:24 +0000)]
Merge "Avoid master queries in loadAndLazyInit() for miser mode"