lhc/web/wiklou.git
6 years agoImprove HTTP logging
Tim Starling [Fri, 28 Apr 2017 01:32:44 +0000 (11:32 +1000)]
Improve HTTP logging

* Log HTTP debug lines to the "http" channel instead of wfDebug()
* Add the ability to do debug logging to MultiHttpClient
* Add a static method Http::createMultiClient() which provides a
  MultiHttpClient configured similarly to the way individual requests
  are configured, respecting the wiki's $wgHTTPTimeout and writing debug
  logs.
* In EtcdConfig, pass the logger instance through to the MultiHttpClient
  backend.

Change-Id: Ic5bdcb0cae95d7b3715ab5261758be082751c3ff

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 14 May 2017 19:54:43 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4b723b8eac7d7df85781495c396db74ea0021dbc

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 13 May 2017 19:54:02 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia4e0aad6e4f8ee1f1cba85cf72c77d83bffae7f3

6 years agoMerge "resourceloader: Add filename to validateScriptFile cache key"
jenkins-bot [Sat, 13 May 2017 00:36:43 +0000 (00:36 +0000)]
Merge "resourceloader: Add filename to validateScriptFile cache key"

6 years agoMerge "resourceloader: Simplify validateScriptFile() with getWithSetCallback"
jenkins-bot [Sat, 13 May 2017 00:32:10 +0000 (00:32 +0000)]
Merge "resourceloader: Simplify validateScriptFile() with getWithSetCallback"

6 years agoresourceloader: Add filename to validateScriptFile cache key
Timo Tijhof [Fri, 12 May 2017 18:05:20 +0000 (19:05 +0100)]
resourceloader: Add filename to validateScriptFile cache key

* Add fileName to cache key to fix T52919. The cached parsed error
  message contains the filename, this should be part of the cache
  key as otherwise two identical user scripts may report the same
  error message, including " on line X of page Y" where Y is whichever
  of the two pages first created the cache entry.

* Make the cache key global instead of per-wiki. There is no need
  for this to be per-wiki.

Bug: T52919
Change-Id: I6c2718c53be7f6384a6486a4a8718ae7f423d216

6 years agoMerge "ApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid"
jenkins-bot [Fri, 12 May 2017 22:45:23 +0000 (22:45 +0000)]
Merge "ApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 12 May 2017 20:23:36 +0000 (22:23 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I411ee26a2f6dd7199c42bc3a8e70fde852255ca7

6 years agoresourceloader: Simplify validateScriptFile() with getWithSetCallback
Timo Tijhof [Fri, 12 May 2017 18:03:12 +0000 (19:03 +0100)]
resourceloader: Simplify validateScriptFile() with getWithSetCallback

* Simplify by using early return and getWithSetCallback.
* Add TTL (previously indefinite, now 1 week).

Bug: T52919
Change-Id: Ic95ba392cdb3bcc8081c77d2c2a3240548bed366

6 years agoApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid
Brad Jorsch [Thu, 11 May 2017 22:18:44 +0000 (18:18 -0400)]
ApiQueryRevisions: Don't be so tricky handling rvstartid/rvendid

If someone strangely supplies 0 as an id, the tricky version confuses
that with null and winds up making the DB layer throw an exception. Just
do it more straightforwardly.

Bug: T165100
Change-Id: Id8376d419e7758c0bf92ad50dd7b7ac283a73101

6 years agoRefactor filter-specific logic into group models
Moriel Schottlender [Tue, 9 May 2017 23:28:40 +0000 (16:28 -0700)]
Refactor filter-specific logic into group models

Make the view model more generic and ready to accept other types
of filtering, like namespaces and tags, by handing off the responsibility
and logic of the parameterizing and filter relationships to the groups.

Change-Id: I9c333719e89088d96d044d72ddb9c39feeeb68ca

6 years agoRCFilters UI: Add a placeholder to SavedLinksListWidget when it's empty
Roan Kattouw [Thu, 11 May 2017 01:28:39 +0000 (18:28 -0700)]
RCFilters UI: Add a placeholder to SavedLinksListWidget when it's empty

No longer hide the button when the menu is empty, but instead
show the placeholder item when the *model* is empty.

Bug: T164861
Change-Id: I96e5e375de5f35946663042f6731d7b69e53308b

6 years agoRCFilters UI: Add tooltip to saved links items
Roan Kattouw [Thu, 11 May 2017 01:26:42 +0000 (18:26 -0700)]
RCFilters UI: Add tooltip to saved links items

Bug: T164861
Change-Id: Ic7c38c59c53d4d83b959eff36d4b1d198bb654ea

6 years agoMerge "Pager class for filtering by date range"
jenkins-bot [Fri, 12 May 2017 13:16:58 +0000 (13:16 +0000)]
Merge "Pager class for filtering by date range"

6 years agoMerge "RCFilters: Treat saved query with multiple spaces as empty"
jenkins-bot [Fri, 12 May 2017 13:16:23 +0000 (13:16 +0000)]
Merge "RCFilters: Treat saved query with multiple spaces as empty"

6 years agoMerge "RCFilters: Actually read/write highlight parameter"
jenkins-bot [Fri, 12 May 2017 13:15:47 +0000 (13:15 +0000)]
Merge "RCFilters: Actually read/write highlight parameter"

6 years agoPager class for filtering by date range
Geoffrey Mon [Mon, 12 Dec 2016 14:23:54 +0000 (09:23 -0500)]
Pager class for filtering by date range

New abstract class RangeChronologicalPager to provide shared date range
filtering capability (with unit tests)

I18n msgs to use as common labels for date range inputs

Expose some ReverseChronologicalParser::getDateCond logic so we can
convert year/month date filters to datestamp date filters

Bug: T120733
Change-Id: I65fdc00368f406f5fa2492600e95e07ce442c165

6 years agoMerge "Add X-Content-Dimensions support to DjVu"
jenkins-bot [Fri, 12 May 2017 03:18:31 +0000 (03:18 +0000)]
Merge "Add X-Content-Dimensions support to DjVu"

6 years agoMerge "Factor out changetag name validation check"
jenkins-bot [Fri, 12 May 2017 02:25:43 +0000 (02:25 +0000)]
Merge "Factor out changetag name validation check"

6 years agoMerge "RCFilters UI: Add down indicator to SavedLinksListWidget button"
jenkins-bot [Fri, 12 May 2017 01:07:38 +0000 (01:07 +0000)]
Merge "RCFilters UI: Add down indicator to SavedLinksListWidget button"

6 years agoMerge "RCFilters UI: Don't remove removed saved links twice"
jenkins-bot [Fri, 12 May 2017 01:07:34 +0000 (01:07 +0000)]
Merge "RCFilters UI: Don't remove removed saved links twice"

6 years agoRCFilters: Treat saved query with multiple spaces as empty
Moriel Schottlender [Fri, 12 May 2017 00:52:45 +0000 (17:52 -0700)]
RCFilters: Treat saved query with multiple spaces as empty

Because it is empty, even if there's multiple spaces. Also, if the
input is invalid and we didn't save the query, don't close the
popup.

Bug: T165113
Change-Id: I30e68b0b90e2a4077fb4068c1462d40b03cbfe8c

6 years agoRCFilters: Actually read/write highlight parameter
Moriel Schottlender [Thu, 11 May 2017 23:24:54 +0000 (16:24 -0700)]
RCFilters: Actually read/write highlight parameter

The highlight parameter enables/disables the highlight view. It was
not properly updated to the URL, and a separate typo made it not update
the model correctly.

Bug: T165107
Change-Id: Ie711d4d08fb3eeffca50c2953016e02e2620f898

6 years agoMerge "Gate option to save RC filters to default false"
jenkins-bot [Thu, 11 May 2017 21:45:45 +0000 (21:45 +0000)]
Merge "Gate option to save RC filters to default false"

6 years agoMerge "mw.Upload.Dialog: Define .static.name"
jenkins-bot [Thu, 11 May 2017 21:38:03 +0000 (21:38 +0000)]
Merge "mw.Upload.Dialog: Define .static.name"

6 years agoMerge "Check for null before calling a textResults method to (fixes T165091)"
jenkins-bot [Thu, 11 May 2017 21:36:06 +0000 (21:36 +0000)]
Merge "Check for null before calling a textResults method to (fixes T165091)"

6 years agoMerge "Fix comment typo in MimeMagic.php"
jenkins-bot [Thu, 11 May 2017 21:29:36 +0000 (21:29 +0000)]
Merge "Fix comment typo in MimeMagic.php"

6 years agoMerge "benchmarks: Convert benchmarkHooks to use Benchmarker"
jenkins-bot [Thu, 11 May 2017 21:19:11 +0000 (21:19 +0000)]
Merge "benchmarks: Convert benchmarkHooks to use Benchmarker"

6 years agoGate option to save RC filters to default false
Matthew Flaschen [Thu, 11 May 2017 17:49:23 +0000 (13:49 -0400)]
Gate option to save RC filters to default false

Change-Id: I1c9e382c265a097b5eea07b529ec542a60562307

6 years agoFix comment typo in MimeMagic.php
Umherirrender [Thu, 11 May 2017 20:18:31 +0000 (22:18 +0200)]
Fix comment typo in MimeMagic.php

Change-Id: I6343e773c9b9988683b2b28cbbde8fc71359376f

6 years agoCheck for null before calling a textResults method to (fixes T165091)
Mukunda Modell [Thu, 11 May 2017 19:59:12 +0000 (14:59 -0500)]
Check for null before calling a textResults method to (fixes T165091)

Bug: T165091
Change-Id: I6fd23eb5fa04049fd7a44faae76f77fae23f5202

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

Change-Id: I6d7f1e58cbbc0adbdd159ab7d37f2f22a8fd73d6

6 years agomw.Upload.Dialog: Define .static.name
Bartosz Dziewoński [Thu, 11 May 2017 18:09:23 +0000 (20:09 +0200)]
mw.Upload.Dialog: Define .static.name

Bug: T164999
Change-Id: I0e5d11bdeac1ea60caaa146041057e7a9faf351c

6 years agoMerge "Handle proxy-based TLS when placed in front of Swift"
jenkins-bot [Thu, 11 May 2017 12:10:35 +0000 (12:10 +0000)]
Merge "Handle proxy-based TLS when placed in front of Swift"

6 years agoAdd X-Content-Dimensions support to DjVu
Gilles Dubuc [Thu, 11 May 2017 11:12:55 +0000 (13:12 +0200)]
Add X-Content-Dimensions support to DjVu

Bug: T150741
Change-Id: I4a3bae9bf056a7ba332f2f0a330697cdf59b4d04

6 years agoRCFilters UI: Add down indicator to SavedLinksListWidget button
Roan Kattouw [Thu, 11 May 2017 01:30:45 +0000 (18:30 -0700)]
RCFilters UI: Add down indicator to SavedLinksListWidget button

Bug: T164861
Change-Id: I23c602e9bcfbbe8f39f3e3efc4a5482490699214

6 years agoRCFilters UI: Don't remove removed saved links twice
Roan Kattouw [Thu, 11 May 2017 01:27:47 +0000 (18:27 -0700)]
RCFilters UI: Don't remove removed saved links twice

The second removal also didn't remove the right thing.

Change-Id: Iab32ae2e19e2b19995b88fbfd2e84a36dbda1bac

6 years agoMerge "Fix usage of $db->nextSequenceValue()"
jenkins-bot [Wed, 10 May 2017 23:54:58 +0000 (23:54 +0000)]
Merge "Fix usage of $db->nextSequenceValue()"

6 years agoFactor out changetag name validation check
Brad Jorsch [Tue, 17 Mar 2015 12:46:40 +0000 (08:46 -0400)]
Factor out changetag name validation check

This way it can be called by AbuseFilter without also getting caught in
the "already exists" checks. And possibly it could also be used in the
future to validate input passed to ChangeTags::addTags()

Bug: T92956
Change-Id: Ic5d754323cbfd2c2b54c4df1245767946ebb1821

6 years agoCheck for index to exist before accessing it.
Mukunda Modell [Wed, 10 May 2017 21:43:21 +0000 (16:43 -0500)]
Check for index to exist before accessing it.

This fixes "Notice: Undefined index: quality ..."

Bug: T164983
Change-Id: If72c40aeaf0ee5727e21f9fe4dac92c12436ce41

6 years agoFix usage of $db->nextSequenceValue()
Brad Jorsch [Wed, 10 May 2017 21:28:24 +0000 (17:28 -0400)]
Fix usage of $db->nextSequenceValue()

The return value from the method is only suitable for passing to
$db->insert(). To get the inserted ID, you need to call $db->insertId()
even if $db->nextSequenceValue() returned non-null.

Bug: T164900
Change-Id: I6beb6243ccb9425372623307ef23ae6571ce8c0d

6 years agoMerge "Avoid postgres CategoryMembershipChangeTest failures"
jenkins-bot [Wed, 10 May 2017 20:55:19 +0000 (20:55 +0000)]
Merge "Avoid postgres CategoryMembershipChangeTest failures"

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

Change-Id: Iaaf6784416df518129277b41020f308d951c32b9

6 years agoAvoid postgres CategoryMembershipChangeTest failures
Aaron Schulz [Wed, 10 May 2017 02:50:46 +0000 (19:50 -0700)]
Avoid postgres CategoryMembershipChangeTest failures

Strip out the redundant /32 CIDR suffix from the IP.

Bug: T75174
Change-Id: If7738ab46c72babb51d3c306ce749a9ccfe34740

6 years agoMerge "Make LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conver...
jenkins-bot [Wed, 10 May 2017 18:32:10 +0000 (18:32 +0000)]
Merge "Make LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conversion"

6 years agoMerge "Fix some postgres test failures"
jenkins-bot [Wed, 10 May 2017 17:25:45 +0000 (17:25 +0000)]
Merge "Fix some postgres test failures"

6 years agoMerge "Make loadWatchedItem() coerce the DB timestamp to TS_MW"
jenkins-bot [Wed, 10 May 2017 17:19:46 +0000 (17:19 +0000)]
Merge "Make loadWatchedItem() coerce the DB timestamp to TS_MW"

6 years agoMerge "Avoid assuming a user with ID 0 exists in ApiMainTest::testAssert"
jenkins-bot [Wed, 10 May 2017 17:07:58 +0000 (17:07 +0000)]
Merge "Avoid assuming a user with ID 0 exists in ApiMainTest::testAssert"

6 years agoMerge "OOUI-ificiation of TablePager nav"
jenkins-bot [Wed, 10 May 2017 17:04:22 +0000 (17:04 +0000)]
Merge "OOUI-ificiation of TablePager nav"

6 years agoHandle proxy-based TLS when placed in front of Swift
Aaron Schulz [Wed, 29 Mar 2017 20:10:17 +0000 (13:10 -0700)]
Handle proxy-based TLS when placed in front of Swift

Force the URL for storage operations to use https if the authentication
URL is already forced to use https. This avoids following an http URL
based on the response of a Swift proxy unaware that a terminator placed
in front of it was used for the authentication.

Bug: T160616
Change-Id: Ia6c8c99ebb38d5828773b2f7aa8cf14ced6bdfde

6 years agoMerge "Add collation for Bashkir (ba)"
jenkins-bot [Wed, 10 May 2017 13:40:11 +0000 (13:40 +0000)]
Merge "Add collation for Bashkir (ba)"

6 years agoAdd collation for Bashkir (ba)
Brian Wolff [Fri, 28 Apr 2017 04:52:49 +0000 (04:52 +0000)]
Add collation for Bashkir (ba)

This is based on a numeric uppercase collation. Bashkir characters
will be remapped to the private use area for the purpose of sorting.

Bug: T162823
Change-Id: I65f1af0b57ff6ded7d464e39efd401f178a3519e

6 years agoMake LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conversion
Aaron Schulz [Wed, 10 May 2017 02:32:24 +0000 (19:32 -0700)]
Make LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conversion

Bug: T75174
Change-Id: I217a8e1847a21d54434693fafa7f618ec5840876

6 years agoAvoid assuming a user with ID 0 exists in ApiMainTest::testAssert
Aaron Schulz [Wed, 10 May 2017 02:25:56 +0000 (19:25 -0700)]
Avoid assuming a user with ID 0 exists in ApiMainTest::testAssert

If the load() triggered by User method calls fails, then mId becomes 0
which means there is no "user" right set in getAutomaticGroups().

Bug: T75174
Change-Id: I2d719e4b96c0142e9d408aa2d4f7c5e7a767a754

6 years agoFix some postgres test failures
Aaron Schulz [Wed, 10 May 2017 01:27:28 +0000 (18:27 -0700)]
Fix some postgres test failures

Bug: T75174
Change-Id: If9812ae301f0af84fa012e2e980b92036c1b29b2

6 years agoMake loadWatchedItem() coerce the DB timestamp to TS_MW
Aaron Schulz [Wed, 10 May 2017 01:41:22 +0000 (18:41 -0700)]
Make loadWatchedItem() coerce the DB timestamp to TS_MW

Bug: T75174
Change-Id: Ie72bd17b424ba857d0b4a22227c9cffad0853050

6 years agoUpdate OOjs UI to v0.21.3
Volker E [Wed, 10 May 2017 01:21:26 +0000 (18:21 -0700)]
Update OOjs UI to v0.21.3

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

Change-Id: I53696e023197ae4dd85605d6615e9faceda05398

6 years agoMerge "Add missing addQuotes() to ChangesListSpecialPage"
jenkins-bot [Wed, 10 May 2017 00:32:21 +0000 (00:32 +0000)]
Merge "Add missing addQuotes() to ChangesListSpecialPage"

6 years agoMerge "Make registerTempTableOperation() detect TRUNCATE operations"
jenkins-bot [Wed, 10 May 2017 00:29:42 +0000 (00:29 +0000)]
Merge "Make registerTempTableOperation() detect TRUNCATE operations"

6 years agoAdd missing addQuotes() to ChangesListSpecialPage
Aaron Schulz [Tue, 9 May 2017 23:13:31 +0000 (16:13 -0700)]
Add missing addQuotes() to ChangesListSpecialPage

Bug: T75174
Change-Id: I34a2a3e8661edff68b115e349baddcec0bd14629

6 years agoStore original media dimensions as additional header
Gilles Dubuc [Wed, 26 Apr 2017 12:01:49 +0000 (14:01 +0200)]
Store original media dimensions as additional header

For storage repos that support headers (such as Swift), this will store the original
media dimensions as an extra custom header, X-Content-Dimensions.
The header is formatted to minimize its length when dealing with multipage
documents, by expressing the information as page ranges keyed by dimensions.

Example for a multipage documents with some pages of different sizes:
X-Content-Dimensions: 1903x899:1-9,11/1903x873:10

Example for a single page document:
X-Content-Dimensions: 800x600:1

Bug: T150741
Change-Id: Ic4c6a86557b3705cf75d074753e9ce2ee070a6df

6 years agoMake registerTempTableOperation() detect TRUNCATE operations
Aaron Schulz [Sun, 30 Apr 2017 18:59:23 +0000 (11:59 -0700)]
Make registerTempTableOperation() detect TRUNCATE operations

Bug: T145947
Change-Id: I6094624fc594b23b1df6107f7ac1c3d93f609ebc

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

Change-Id: I13d63f8e59ea5eea6b3a3760075d754064c5fea0

6 years agoMerge "Allow callback functions for creating jobs"
jenkins-bot [Tue, 9 May 2017 18:38:57 +0000 (18:38 +0000)]
Merge "Allow callback functions for creating jobs"

6 years agoAllow callback functions for creating jobs
Lucas Werkmeister [Thu, 4 May 2017 16:00:28 +0000 (18:00 +0200)]
Allow callback functions for creating jobs

$wgJobClasses can now specify a factory function for creating a job,
instead of a class to be instantiated directly. This makes it possible
to inject services in a job constructor, and register a factory function
that calls the constructor with default services.

This follows Ieb85493a7765 and Ia2107dc5af78, which introduced factory
functions for API modules and special pages.

Change-Id: I0461e59da2a8fa6681e3b1fcdfc38bfed7f3ac32

6 years agoMerge "Revised styling of sister-search sidebar."
jenkins-bot [Tue, 9 May 2017 16:51:40 +0000 (16:51 +0000)]
Merge "Revised styling of sister-search sidebar."

6 years agoMerge "Change delimiter for multiple namespaces and tags"
jenkins-bot [Tue, 9 May 2017 11:41:48 +0000 (11:41 +0000)]
Merge "Change delimiter for multiple namespaces and tags"

6 years agoChange delimiter for multiple namespaces and tags
Matthew Flaschen [Mon, 8 May 2017 05:06:12 +0000 (01:06 -0400)]
Change delimiter for multiple namespaces and tags

It's ; for namespaces (since that is generally what we're using,
e.g. for STRING_OPTIONS), and | for tags.  I would have
preferred them to all be consistent, but there is one revision
that has a ;, and this seems better than modifying the DB.

Comma is already used as a delimiter between separate parameters
(e.g. hideanons and namepsace).

Also, fix multiple namespaces for parseParameters and add test
cases.

Bug: T164132
Bug: T164133
Change-Id: Iad061e0bc17e3522a3f5d330ac2c8bf9cf0e614f

6 years agoMerge "MessageCache: Avoid 'contributions' replicas"
jenkins-bot [Tue, 9 May 2017 02:32:38 +0000 (02:32 +0000)]
Merge "MessageCache: Avoid 'contributions' replicas"

6 years agoMerge "Prettify MessageCache::loadFromDB()-small query"
jenkins-bot [Tue, 9 May 2017 02:32:34 +0000 (02:32 +0000)]
Merge "Prettify MessageCache::loadFromDB()-small query"

6 years agoMerge "ApiQueryRevisions: Restore use of rvstartid/rvendid as a tiebreaker"
jenkins-bot [Tue, 9 May 2017 02:16:15 +0000 (02:16 +0000)]
Merge "ApiQueryRevisions: Restore use of rvstartid/rvendid as a tiebreaker"

6 years agoFollow-up I5cede8: fix JS error when user has no filters saved
Roan Kattouw [Tue, 9 May 2017 00:34:01 +0000 (17:34 -0700)]
Follow-up I5cede8: fix JS error when user has no filters saved

Change-Id: Ie7de070925874d2c29e185a90d65a0b0a72f07cd

6 years agoFollowup I5cede8: Make the SavedQueries popup larger
Moriel Schottlender [Tue, 9 May 2017 00:14:07 +0000 (17:14 -0700)]
Followup I5cede8: Make the SavedQueries popup larger

The labels and popup are now slightly wider.

Bug: T151994
Bug: T164128
Change-Id: I64bd496ade241c800fcb0bb12023486e7d601a23

6 years agoFollowup I5cede8: Fixup SavedQueries styling and event
Moriel Schottlender [Mon, 8 May 2017 23:57:41 +0000 (16:57 -0700)]
Followup I5cede8: Fixup SavedQueries styling and event

Includes small styling fixes to saved queries and the ability
to update the label of an existing matched query if we rename
it.

Bug: T151994
Bug: T164128
Change-Id: Ic46b082cbfc3462f1d61895bcfc7c545902b2d1a

6 years agoMerge "RCFilters UI: Add a 'saved queries' quick filters feature"
jenkins-bot [Mon, 8 May 2017 23:47:54 +0000 (23:47 +0000)]
Merge "RCFilters UI: Add a 'saved queries' quick filters feature"

6 years agoRCFilters UI: Add a 'saved queries' quick filters feature
Moriel Schottlender [Tue, 25 Apr 2017 23:59:50 +0000 (16:59 -0700)]
RCFilters UI: Add a 'saved queries' quick filters feature

Bug: T151994
Bug: T164128
Change-Id: I5cede87633147736d3b4ee5b8ea178ae21bd441f

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 agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 8 May 2017 20:03:26 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I001225f92a48f46a6a9418958bd8603c2d3f403d

6 years agoApiQueryRevisions: Restore use of rvstartid/rvendid as a tiebreaker
Brad Jorsch [Mon, 8 May 2017 18:18:03 +0000 (14:18 -0400)]
ApiQueryRevisions: Restore use of rvstartid/rvendid as a tiebreaker

If rvstartid/rvendid are used with revisions that have the same
timestamp, we should omit any revisions with the same timestamp but
out-of-range IDs.

Bug: T163532
Change-Id: I6ba5e0724945668dad55eec0d09cb7d3fe08e347

6 years agoMessageCache: Avoid 'contributions' replicas
Brad Jorsch [Mon, 8 May 2017 18:00:26 +0000 (14:00 -0400)]
MessageCache: Avoid 'contributions' replicas

On WMF wikis, the partitioning of the revision table on the
'contributions' replicas makes the query here perform really poorly.
Specify 'api' as a hack for now to avoid those replicas.

This query happens once per day per wiki, plus when someone edits the
MediaWiki namespace, so it shouldn't be much additional load.

Bug: T164666
Change-Id: I5ae74d1702144f6475e9cfb13effc43389d66233

6 years agoPrettify MessageCache::loadFromDB()-small query
Brad Jorsch [Mon, 8 May 2017 17:57:13 +0000 (13:57 -0400)]
Prettify MessageCache::loadFromDB()-small query

Adjust the call so it uses JOIN...ON syntax rather than comma joins.

Bug: T164666
Change-Id: I93c8569620d543e9507d0adf1283443915f50d4b

6 years agoMerge "RC Filters: Single boolean filters are not contradictory"
jenkins-bot [Mon, 8 May 2017 17:12:53 +0000 (17:12 +0000)]
Merge "RC Filters: Single boolean filters are not contradictory"

6 years agoEnable extensions to allow software-specific tags to be added by users
Matthias Mullie [Tue, 14 Feb 2017 11:39:02 +0000 (12:39 +0100)]
Enable extensions to allow software-specific tags to be added by users

Bug: T121880
Bug: T121872
Change-Id: I6e054cfc065c8d8ae7d20a518b1963cd0551c5c2

6 years agoMerge "Fix a couple of issues with cleanupInvalidDbKeys.php maint script"
jenkins-bot [Mon, 8 May 2017 15:13:44 +0000 (15:13 +0000)]
Merge "Fix a couple of issues with cleanupInvalidDbKeys.php maint script"

6 years agoMerge "RC Filters: Rephrase learner level message"
jenkins-bot [Mon, 8 May 2017 15:12:04 +0000 (15:12 +0000)]
Merge "RC Filters: Rephrase learner level message"

6 years agoMerge "Remove "(WMDE)" from my name in .mailmap"
jenkins-bot [Mon, 8 May 2017 13:37:49 +0000 (13:37 +0000)]
Merge "Remove "(WMDE)" from my name in .mailmap"

6 years agoMerge "SpecialRecentchanges: Add class="mw-recentchanges-toplinks" to the "top links""
jenkins-bot [Mon, 8 May 2017 13:35:36 +0000 (13:35 +0000)]
Merge "SpecialRecentchanges: Add class="mw-recentchanges-toplinks" to the "top links""

6 years agoRC Filters: Rephrase learner level message
Stephane Bisson [Mon, 8 May 2017 13:32:46 +0000 (09:32 -0400)]
RC Filters: Rephrase learner level message

Bug: T164611
Change-Id: I5cd7b392fc89402e358084c8153bf8c2b9f1abd2

6 years agoRC Filters: Single boolean filters are not contradictory
Stephane Bisson [Mon, 8 May 2017 12:58:05 +0000 (08:58 -0400)]
RC Filters: Single boolean filters are not contradictory

When all boolean filters of a group are selected
(for example: hideanons && hideliu), we consider the selection
unproductive and set them all to false.

Some legacy filters are alone in their group
(for example: ORES hideDamaging). They should not
be considered.

Bug: T164625
Change-Id: Ibb6721ccdfb226b3baac7775c30af230c68309e7

6 years agoRemove "(WMDE)" from my name in .mailmap
Thiemo Mättig [Mon, 8 May 2017 09:20:36 +0000 (11:20 +0200)]
Remove "(WMDE)" from my name in .mailmap

No other WMDE employee does have this. I think this is supposed to be
the "canonical name", which means it should not contain such extra
information, right?

Change-Id: Ic5bbb53d650843dfb627baa4c7508d88eba03729

6 years agoAPI: Convert rvstartid/rvendid to timestamps for query
Brad Jorsch [Fri, 21 Apr 2017 15:00:14 +0000 (11:00 -0400)]
API: Convert rvstartid/rvendid to timestamps for query

We tried something like this once before, but reverted it because it was
an unintended behavior change (see T98467). This time it's intended, we
need it for query optimization.

The behavior changes here are:
* rvstartid/rvendid is exactly equivalent to specifying rvstart/rvend
  with the corresponding revisions' timestamps.
* If the revision for rvstartid/rvendid is not found in the database, an
  error will be thrown.

This will pull timestamps from deleted revisions, i.e. the `archive`
table. While this is technically an information leak (that some revision
ID exists as a deleted revision and the time the revision was made),
it's minor and in line with the information revealed in Tool Labs thanks
to T51088.

Bug: T163532
Change-Id: Ida64a377c38b3553aa82ac754d80e8f898caf6c5

6 years agoMerge "Have Title::get(Next|Previous)RevisionID sort by timestamp"
jenkins-bot [Mon, 8 May 2017 05:43:39 +0000 (05:43 +0000)]
Merge "Have Title::get(Next|Previous)RevisionID sort by timestamp"

6 years agoHave Title::get(Next|Previous)RevisionID sort by timestamp
Brad Jorsch [Fri, 21 Apr 2017 18:14:11 +0000 (14:14 -0400)]
Have Title::get(Next|Previous)RevisionID sort by timestamp

Revision IDs are usually increasing as timestamp increases, but not
always. Callers almost certainly want next/previous timestamp when the
two differ.

This also takes care of a minor bug in the nearby getFirstRevision()
where it'll choose an arbitrary tied revision ID if there were multiple
revisions made in the same second.

Bug: T4930
Bug: T163532
Bug: T159319
Change-Id: Iab2060a0ad5e45edbaa0ff36e863cb014b8e876f

6 years agoWrap parser output in <div class="mw-parser-output">
Brad Jorsch [Thu, 27 Apr 2017 16:58:17 +0000 (12:58 -0400)]
Wrap parser output in <div class="mw-parser-output">

This will allow CSS to target just the parser output, without also
accidentally targeting the edit form, diff tables, and so on.

Bug: T37247
Change-Id: If4eb5bf71f94fa366ec4eddb6964e8f4df6b824a
Depends-On: I330c6aa4aaee045614b1801ed34bc9e03be69650
Depends-On: I52a518fa44e017841fe78474012cd69823e0a41d

6 years agoMerge "Add DatabaseUpdater::modifyTable"
jenkins-bot [Sun, 7 May 2017 20:03:56 +0000 (20:03 +0000)]
Merge "Add DatabaseUpdater::modifyTable"

6 years agoMerge "CREDITS: remove duplicate entry for Nik Everett"
jenkins-bot [Sun, 7 May 2017 20:03:32 +0000 (20:03 +0000)]
Merge "CREDITS: remove duplicate entry for Nik Everett"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 7 May 2017 19:55:28 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I2b3b0cb604caa001245786be38730195e242e621

6 years agoMerge "Add single angle quotation marks and to special characters"
jenkins-bot [Sun, 7 May 2017 19:42:27 +0000 (19:42 +0000)]
Merge "Add single angle quotation marks and  to special characters"

6 years agoCREDITS: remove duplicate entry for Nik Everett
Bryan Davis [Sun, 7 May 2017 17:13:39 +0000 (11:13 -0600)]
CREDITS: remove duplicate entry for Nik Everett

Change-Id: I8bc4bcecd12aa4dc41e1826896dbe89104958125

6 years agoMerge "Update CREDITS"
jenkins-bot [Sun, 7 May 2017 17:09:46 +0000 (17:09 +0000)]
Merge "Update CREDITS"