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

Bug: T160916
Change-Id: Ib9562b404731e1f621b9f07c33821d04cd2aa6ae

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

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

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

Change-Id: I8909bf70bc12c12dd42e318e70987b0597760b67

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

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

Change-Id: I525052178b2be3c22e4016cea54d96ea6e687a87

7 years agoAvoid database connection in SpecialSearchTest data provider
aude [Sat, 18 Mar 2017 19:42:09 +0000 (15:42 -0400)]
Avoid database connection in SpecialSearchTest data provider

SearchResult::newFromTitle involves database connnection,
thus better to avoid calling this in the data provider.

Change-Id: I891e97cf18ca1dd44abefe01731dfc5da51f1982

7 years agoMerge "Replace deprecated jQuery.nodeName"
jenkins-bot [Sat, 18 Mar 2017 09:50:32 +0000 (09:50 +0000)]
Merge "Replace deprecated jQuery.nodeName"

7 years agoMerge "resourceloader: Fix broken @coverage for ImageModuleTest"
jenkins-bot [Sat, 18 Mar 2017 02:16:51 +0000 (02:16 +0000)]
Merge "resourceloader: Fix broken @coverage for ImageModuleTest"

7 years agoMerge "RCFilters: Update conflict messages"
jenkins-bot [Sat, 18 Mar 2017 02:16:46 +0000 (02:16 +0000)]
Merge "RCFilters: Update conflict messages"

7 years agoMerge "RCFilters UI: Implement conflict global result message"
jenkins-bot [Sat, 18 Mar 2017 02:01:52 +0000 (02:01 +0000)]
Merge "RCFilters UI: Implement conflict global result message"

7 years agoRCFilters: Update conflict messages
Roan Kattouw [Sat, 18 Mar 2017 01:45:47 +0000 (18:45 -0700)]
RCFilters: Update conflict messages

Bug: T160803
Change-Id: I5c645ddce991f9352d779ba4d72d5171a948f836

7 years agoresourceloader: Fix broken @coverage for ImageModuleTest
Timo Tijhof [Sat, 18 Mar 2017 01:26:08 +0000 (18:26 -0700)]
resourceloader: Fix broken @coverage for ImageModuleTest

Follows-up f4329ddbc8.

Change-Id: I7e1761295328af7ead42da4b722a2275b5c1ddb9

7 years agoMerge "Watchlist: Fix form and preference overriding"
jenkins-bot [Sat, 18 Mar 2017 01:16:49 +0000 (01:16 +0000)]
Merge "Watchlist: Fix form and preference overriding"

7 years agoRCFilters UI: Implement conflict global result message
Moriel Schottlender [Sat, 18 Mar 2017 00:29:07 +0000 (17:29 -0700)]
RCFilters UI: Implement conflict global result message

Bug: T156427
Change-Id: I7ae968477091db37e3e2d17fca6f212f919d90d8

7 years agoMerge "RCFilters UI: Create tooltips for filter states"
jenkins-bot [Sat, 18 Mar 2017 01:05:29 +0000 (01:05 +0000)]
Merge "RCFilters UI: Create tooltips for filter states"

7 years agoWatchlist: Fix form and preference overriding
Matthew Flaschen [Fri, 17 Mar 2017 22:33:12 +0000 (18:33 -0400)]
Watchlist: Fix form and preference overriding

Fix a regression caused by aa063f4c5a19.  Restore the behavior
where:

* Without action=submit: Boolean preferences apply to the displayed form and its
  results, but they can be overriden by the query string.
* With action=submit: Only boolean parameters in the query string apply;
  preferences are not considered.

  (However, boolean preferences not on the form, i.e. 'extended', still
  always apply.)

This behavior is a consequence of how checkboxes work in HTML; only
checked boxes are sent to the server.

Bug: T160734
Change-Id: Ic050dd1445ade9449496bb051f04ca0a87b8b5d7

7 years agoMerge "Mark 'jquery.autoElllipsis' module as deprecated"
jenkins-bot [Sat, 18 Mar 2017 00:50:13 +0000 (00:50 +0000)]
Merge "Mark 'jquery.autoElllipsis' module as deprecated"

7 years agoRCFilters UI: Create tooltips for filter states
Roan Kattouw [Fri, 10 Mar 2017 03:47:34 +0000 (19:47 -0800)]
RCFilters UI: Create tooltips for filter states

Tooltips represent the state of the filter, whether it is
conflicted, included, or fully covered.

If none of the above, tooltip message falls back on displaying
the description of the filter.

Bug: T156864
Change-Id: Ic97c7c6aae78bb6ddf51f0294eeae4b7f86a1a1d

7 years agoMerge "resourceloader: Fix broken 'deprecated' string messages"
jenkins-bot [Sat, 18 Mar 2017 00:38:43 +0000 (00:38 +0000)]
Merge "resourceloader: Fix broken 'deprecated' string messages"

7 years agoMark 'jquery.autoElllipsis' module as deprecated
Timo Tijhof [Fri, 17 Mar 2017 23:57:36 +0000 (16:57 -0700)]
Mark 'jquery.autoElllipsis' module as deprecated

It was originally introduced for jquery.searchSuggest, which hasn't
used this since 2014 (56a4aff8ca61106c) when it was removed for
performance reasons (T61172) in favour of CSS text-overflow.

Deprecation is done the same way as for 'jquery.arrowSteps'.

Bug: T160804
Change-Id: Ib7b37b94200a8802de9d98581d3cb42df6e5ba17

7 years agoresourceloader: Fix broken 'deprecated' string messages
Timo Tijhof [Sat, 18 Mar 2017 00:22:34 +0000 (17:22 -0700)]
resourceloader: Fix broken 'deprecated' string messages

Some used a string value, others an array with 'message' property.
Standardise on the string value, which seems more intuitive.

Change-Id: I5caead7b7017d2bad660db02fb45a54a26bf3728

7 years agoRemove unused 'jquery.arrowSteps' (deprecated in 1.28)
Timo Tijhof [Sat, 18 Mar 2017 00:11:53 +0000 (17:11 -0700)]
Remove unused 'jquery.arrowSteps' (deprecated in 1.28)

Was only used by UploadWizard, and no-where else in Wikimedia Git.
UploadWizard has its own copy as of last year. (T144974)

Change-Id: I3d426f67f8ba061d10434469f261cb725bd672d6

7 years agoMerge "RCFilters UI: Remove custom margin from capsule item widgets"
jenkins-bot [Fri, 17 Mar 2017 23:50:07 +0000 (23:50 +0000)]
Merge "RCFilters UI: Remove custom margin from capsule item widgets"

7 years agoRCFilters UI: Close gap between popup and input
Moriel Schottlender [Fri, 17 Mar 2017 22:35:21 +0000 (15:35 -0700)]
RCFilters UI: Close gap between popup and input

Bug: T160213
Change-Id: I9a36be445c3203b599034f8c45297ecd635cbcaf

7 years agoRCFilters UI: Remove custom margin from capsule item widgets
Moriel Schottlender [Fri, 17 Mar 2017 22:41:00 +0000 (15:41 -0700)]
RCFilters UI: Remove custom margin from capsule item widgets

Use the default margin for capsule item widget from OOUI so it
has proper distance in the second row as well.

Bug: T160784
Change-Id: Icba3f0fe532f473d066261405ddc04b8b6c6a31f

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

Change-Id: Ibf1d7374533428a2024f5f252c6d91ecc866455d

7 years agoMerge "ResourceLoaderOOUIModule: Minor code quality fixes, and more comments"
jenkins-bot [Fri, 17 Mar 2017 20:21:42 +0000 (20:21 +0000)]
Merge "ResourceLoaderOOUIModule: Minor code quality fixes, and more comments"

7 years agoMerge "RCFilters UI: Add a 'what's this?' link to filter groups"
jenkins-bot [Fri, 17 Mar 2017 20:05:21 +0000 (20:05 +0000)]
Merge "RCFilters UI: Add a 'what's this?' link to filter groups"

7 years agoRCFilters UI: Add a 'what's this?' link to filter groups
Moriel Schottlender [Fri, 17 Mar 2017 00:21:36 +0000 (17:21 -0700)]
RCFilters UI: Add a 'what's this?' link to filter groups

Bug: T159186
Change-Id: I347c23fdabab2a1e1c52f5b10995bcbb2a316875

7 years agoReplace deprecated jQuery.nodeName
Fomafix [Fri, 17 Mar 2017 14:42:20 +0000 (15:42 +0100)]
Replace deprecated jQuery.nodeName

jQuery.nodeName gets deprecated in jQuery 3.2.0. [1] [2]

[1] https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/
[2] https://github.com/jquery/jquery/issues/3475

Change-Id: I7e6d5191e4db5117dbcfa89b07f25e672ed1e4d2

7 years agoReplace deprecated Context::getStats() with MWServices::getStatsdDataFactory()
WMDE-Fisch [Fri, 17 Mar 2017 10:57:37 +0000 (11:57 +0100)]
Replace deprecated Context::getStats() with MWServices::getStatsdDataFactory()

Change-Id: I1756f69ca2ebd301a5049bf758d1a87c37771fe6

7 years agoRemove deprecated noop functions
WMDE-Fisch [Fri, 17 Mar 2017 10:25:53 +0000 (11:25 +0100)]
Remove deprecated noop functions

Change-Id: Ia821d43e243b1ee146d3bc4ed35f6aff0bf17466

7 years agoMerge "Add password validation to Special:ChangeCredentials"
jenkins-bot [Fri, 17 Mar 2017 08:35:06 +0000 (08:35 +0000)]
Merge "Add password validation to Special:ChangeCredentials"

7 years agoMerge "Update account creation form validation"
jenkins-bot [Fri, 17 Mar 2017 08:32:34 +0000 (08:32 +0000)]
Merge "Update account creation form validation"

7 years agoMerge "resourceloader: Use SVG url when ResourceLoaderImageModule can't embed"
jenkins-bot [Fri, 17 Mar 2017 06:33:31 +0000 (06:33 +0000)]
Merge "resourceloader: Use SVG url when ResourceLoaderImageModule can't embed"

7 years agoResourceLoaderOOUIModule: Minor code quality fixes, and more comments
Bartosz Dziewoński [Fri, 17 Mar 2017 01:03:04 +0000 (02:03 +0100)]
ResourceLoaderOOUIModule: Minor code quality fixes, and more comments

Change-Id: Ibc7195cc68e1a46062612635988bd16d8145ab63

7 years agoMerge "RCFilters UI: Separate name from paramName in filters"
jenkins-bot [Fri, 17 Mar 2017 00:54:52 +0000 (00:54 +0000)]
Merge "RCFilters UI: Separate name from paramName in filters"

7 years agoRCFilters UI: Separate name from paramName in filters
Moriel Schottlender [Sat, 11 Mar 2017 02:10:26 +0000 (18:10 -0800)]
RCFilters UI: Separate name from paramName in filters

Represent filters, internally, with a unique name comprised
of their group and param name, and leave a reference to the
parameter (or value) they represent so the state can be
rebuilt.

Change-Id: I08b69a09463afa1cf08e1cdbf7aaec8dfc16fd2e

7 years agoMerge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
jenkins-bot [Thu, 16 Mar 2017 22:28:41 +0000 (22:28 +0000)]
Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"

7 years agoresourceloader: Use SVG url when ResourceLoaderImageModule can't embed
WMDE-Fisch [Wed, 15 Mar 2017 19:09:17 +0000 (20:09 +0100)]
resourceloader: Use SVG url when ResourceLoaderImageModule can't embed

When the SVG is too big to be embeded it is now included via URL.
Previously it would produce an empty/broken 'url()' value.

Bug: T160532
Change-Id: I158781f9430cfa35737397ac7537a471634c4480

7 years agoRCfilters UI: Change mute display for included filters
Moriel Schottlender [Thu, 16 Mar 2017 22:04:19 +0000 (15:04 -0700)]
RCfilters UI: Change mute display for included filters

Bug: T156861
Bug: T149452
Change-Id: I64d84f0d84ff5e79da34f4897670102625c667cc

7 years agoMerge "RCFilters UI: Rework conflicts to be objects in filter or group context"
jenkins-bot [Thu, 16 Mar 2017 21:41:38 +0000 (21:41 +0000)]
Merge "RCFilters UI: Rework conflicts to be objects in filter or group context"

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

Change-Id: Ic6f9b78a996f4f9971ec99d48f1bca9e9ae69ebb

7 years agoRCFilters UI: Rework conflicts to be objects in filter or group context
Moriel Schottlender [Fri, 10 Mar 2017 23:22:12 +0000 (15:22 -0800)]
RCFilters UI: Rework conflicts to be objects in filter or group context

Allow conflicts to be defined in either the filter or the group context
and represent a whole object rather than an array of filter names.

Bug: T160453
Bug: T152754
Bug: T156427
Change-Id: I2423eb2618aa64bf30395b1a1912589e0c71f283

7 years agoMerge "Show better error for anons on Special:EmailUser"
jenkins-bot [Thu, 16 Mar 2017 19:11:23 +0000 (19:11 +0000)]
Merge "Show better error for anons on Special:EmailUser"

7 years agoMerge "RCFilters UI: Update fieldset as in load"
jenkins-bot [Thu, 16 Mar 2017 18:58:19 +0000 (18:58 +0000)]
Merge "RCFilters UI: Update fieldset as in load"

7 years agoMerge "RCFilters UI: Adjust filter list header elements' alignment"
jenkins-bot [Thu, 16 Mar 2017 18:58:10 +0000 (18:58 +0000)]
Merge "RCFilters UI: Adjust filter list header elements' alignment"

7 years agoMerge "RCFilters UI: Style adjustments for the FilterCapsuleMultiselectWidget"
jenkins-bot [Thu, 16 Mar 2017 18:58:04 +0000 (18:58 +0000)]
Merge "RCFilters UI: Style adjustments for the FilterCapsuleMultiselectWidget"

7 years agoRCFilters UI: Adjust filter list header elements' alignment
Moriel Schottlender [Thu, 16 Mar 2017 18:34:33 +0000 (11:34 -0700)]
RCFilters UI: Adjust filter list header elements' alignment

Bug: T160601
Change-Id: I89d3f9c59ef49e3c3dfdda1af8676855d3b9ac7b

7 years agoRCFilters UI: Update fieldset as in load
Moriel Schottlender [Wed, 15 Mar 2017 21:31:23 +0000 (14:31 -0700)]
RCFilters UI: Update fieldset as in load

Duplicate the javascript used on load on the fieldset
to reproduce the collapse and namespace checkboxes/select
behavior.

Bug: T157594
Change-Id: I12946be6ed6cd7ef60e87fa3576fda42f7005fb6

7 years agoRCFilters UI: Style adjustments for the FilterCapsuleMultiselectWidget
Moriel Schottlender [Wed, 15 Mar 2017 23:28:04 +0000 (16:28 -0700)]
RCFilters UI: Style adjustments for the FilterCapsuleMultiselectWidget

Bug: T159966
Change-Id: I6864e22d7c628297d8cdf435b48e48fbab1a3f55

7 years agoMerge "RCFilters: Prevent duplicate filter names"
jenkins-bot [Thu, 16 Mar 2017 16:56:18 +0000 (16:56 +0000)]
Merge "RCFilters: Prevent duplicate filter names"

7 years agoAdd password validation to Special:ChangeCredentials
Brad Jorsch [Fri, 2 Dec 2016 18:50:01 +0000 (13:50 -0500)]
Add password validation to Special:ChangeCredentials

Change-Id: I70a99f4e742a2ba9ade0348001924fc5a50428d4

7 years agoUpdate account creation form validation
Brad Jorsch [Thu, 1 Dec 2016 23:04:21 +0000 (18:04 -0500)]
Update account creation form validation

Use the cancreateerror returned from list=users&usprop=cancreate for
username validation.

Use the new action=validatepassword to validate entered passwords.

This also injects the resulting errors in the style of HTMLForm's field
validation rather than at the top of the form.

Change-Id: Ie8c1270eb605367556fe36b0b2080eb3f957dc54

7 years agoShow better error for anons on Special:EmailUser
Eddie Greiner-Petter [Mon, 13 Mar 2017 17:33:35 +0000 (18:33 +0100)]
Show better error for anons on Special:EmailUser

When a anon user visits Special:EmailUser, the PermissionError message
is shown (as only members of the group "user" (all logged in users) are
allowed to do this). There is a better error message, which tells "You
must be logged in and have a valid email adress in your preferences."
available, but was only shown to users who are logged in but did not
have a valid mail adress in their settings, because the check for the
permission "emailuser" happened before the check for the valid mail
(which returns false for anon users). Exchanging the order of those
makes the right error message appear.

Bug: T160309
Change-Id: I26175df1f7577937d9781950058ca458984ce2cb

7 years agoMerge "Revert "[search] Remove more dead code""
jenkins-bot [Thu, 16 Mar 2017 11:09:43 +0000 (11:09 +0000)]
Merge "Revert "[search] Remove more dead code""

7 years agoMerge "Revert "Default to CACHE_ACCEL if user skips advanced settings""
jenkins-bot [Thu, 16 Mar 2017 08:04:41 +0000 (08:04 +0000)]
Merge "Revert "Default to CACHE_ACCEL if user skips advanced settings""

7 years agoRCFilters: Prevent duplicate filter names
Matthew Flaschen [Thu, 16 Mar 2017 04:06:02 +0000 (00:06 -0400)]
RCFilters: Prevent duplicate filter names

Explicitly block two filters in the same group from having the same
name.

Before, it would be left to registerFilter, which would just cause
the second one to win.

Also, avoid a getFilter warning when the filter does not exist.
Do the same for getFilterGroup on ChangesListSpecialPage

Finally, a minor related doc fix.

Change-Id: I6b3880a5c7cc381c169bbd969cd4814559b49c91

7 years agoRevert "Default to CACHE_ACCEL if user skips advanced settings"
Aleksey Bekh-Ivanov (WMDE) [Wed, 15 Mar 2017 19:26:55 +0000 (19:26 +0000)]
Revert "Default to CACHE_ACCEL if user skips advanced settings"

This reverts commit 1fec847c6b366ab21bb215b94837a186545096f4.

Bug: T160519
Change-Id: I3bbfb5c5b61b8587ddc4af4fa134de6c86f46d98

7 years agoMerge "RCFilters: Don't allow underscore in filter or group names"
jenkins-bot [Thu, 16 Mar 2017 06:03:19 +0000 (06:03 +0000)]
Merge "RCFilters: Don't allow underscore in filter or group names"

7 years agoMerge "RCFilters: Test abstract class func directly, not in subclass tests"
jenkins-bot [Thu, 16 Mar 2017 06:00:19 +0000 (06:00 +0000)]
Merge "RCFilters: Test abstract class func directly, not in subclass tests"

7 years agoRCFilters: Don't allow underscore in filter or group names
Matthew Flaschen [Wed, 15 Mar 2017 04:23:29 +0000 (00:23 -0400)]
RCFilters: Don't allow underscore in filter or group names

This is reserved for the client-side which joins 'someGroup'
and 'somefilter' to make 'someGroup__somefilter' as an internal
ID.

Change-Id: I1b6ca9f337dd48e10705c46ef5027c3156254e01

7 years agoRCFilters: Test abstract class func directly, not in subclass tests
Matthew Flaschen [Thu, 16 Mar 2017 00:15:16 +0000 (20:15 -0400)]
RCFilters: Test abstract class func directly, not in subclass tests

Change-Id: I8f526975bbf0a5392b69d239bc9db9771c99cdd9

7 years agoMerge "Mark WikiRevision methods as public"
jenkins-bot [Thu, 16 Mar 2017 00:15:18 +0000 (00:15 +0000)]
Merge "Mark WikiRevision methods as public"

7 years agoMerge "jquery.ui: Add previously undocumented changes in PATCHES"
jenkins-bot [Thu, 16 Mar 2017 00:05:54 +0000 (00:05 +0000)]
Merge "jquery.ui: Add previously undocumented changes in PATCHES"

7 years agojquery.ui: Add previously undocumented changes in PATCHES
Timo Tijhof [Wed, 15 Mar 2017 23:52:31 +0000 (16:52 -0700)]
jquery.ui: Add previously undocumented changes in PATCHES

Change-Id: I8d9561916820212842f87fa2306ff7474b268173

7 years agoMerge "Change 'history-show-deleted' message to 'Revision deleted only' for clarity"
jenkins-bot [Wed, 15 Mar 2017 22:34:16 +0000 (22:34 +0000)]
Merge "Change 'history-show-deleted' message to 'Revision deleted only' for clarity"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Mar 2017 20:55:50 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie2f9d001e9396e7a28d4c83deeae9acef01b76c7

7 years agoMerge "Revert "Improve sorting on SpecialWanted*-Pages""
jenkins-bot [Wed, 15 Mar 2017 20:07:49 +0000 (20:07 +0000)]
Merge "Revert "Improve sorting on SpecialWanted*-Pages""

7 years agoRevert "Improve sorting on SpecialWanted*-Pages"
20after4 [Wed, 15 Mar 2017 19:29:04 +0000 (19:29 +0000)]
Revert "Improve sorting on SpecialWanted*-Pages"

This reverts commit 5b15728478f9b167389268fb988a7b9f9f78fcf5. The change causes db query errors:
DBQueryError: 1054 Unknown column qc_ra.rd_namespace in order clause

Change-Id: I068beeae70037c959d42419791911c54ca9908a1

7 years agoMerge "Make infused and non-infused DateInputWidget consistent"
jenkins-bot [Wed, 15 Mar 2017 19:26:10 +0000 (19:26 +0000)]
Merge "Make infused and non-infused DateInputWidget consistent"

7 years agoMerge "Skin: Only load jquery.makeCollapsible if needed"
jenkins-bot [Wed, 15 Mar 2017 17:58:03 +0000 (17:58 +0000)]
Merge "Skin: Only load jquery.makeCollapsible if needed"

7 years agoMerge "Skin: Preload jquery.tablesorter based on rough heuristics"
jenkins-bot [Wed, 15 Mar 2017 17:57:59 +0000 (17:57 +0000)]
Merge "Skin: Preload jquery.tablesorter based on rough heuristics"

7 years agoMake selectRowCount() (hopefully) work in MSSQL.
Brian Wolff [Mon, 13 Mar 2017 04:29:43 +0000 (04:29 +0000)]
Make selectRowCount() (hopefully) work in MSSQL.

Make table and column aliases be quoted identifiers. This
is needed for MSSQL (rowcount is a reserved word), and is
generally just a good idea.

I have tested this on MySql and SQLite. I don't have
MSSQL installed to test on.

Bug: T158766
Change-Id: Ic63f63d208ba6ad15e77eb634e94855ee2728d05

7 years agoMark WikiRevision methods as public
addshore [Wed, 15 Mar 2017 14:53:19 +0000 (14:53 +0000)]
Mark WikiRevision methods as public

Change-Id: If252103d4850d9c9f0607a225b7d345736658cc7

7 years agoMerge "RCFilters UI: Use data-feature-in-structured-ui in the frontend"
jenkins-bot [Wed, 15 Mar 2017 11:24:45 +0000 (11:24 +0000)]
Merge "RCFilters UI: Use data-feature-in-structured-ui in the frontend"

7 years agoMerge "RCFilters UI: Adjust popup positioning again"
jenkins-bot [Wed, 15 Mar 2017 11:23:53 +0000 (11:23 +0000)]
Merge "RCFilters UI: Adjust popup positioning again"

7 years agoMerge "mw.loader: Add tests for mw.loader StringSet fallback"
jenkins-bot [Wed, 15 Mar 2017 08:22:01 +0000 (08:22 +0000)]
Merge "mw.loader: Add tests for mw.loader StringSet fallback"

7 years agoMerge "rv accidental inclusion of debug code in TemplateParser"
jenkins-bot [Wed, 15 Mar 2017 07:19:13 +0000 (07:19 +0000)]
Merge "rv accidental inclusion of debug code in TemplateParser"

7 years agoMerge "Default to CACHE_ACCEL if user skips advanced settings"
jenkins-bot [Wed, 15 Mar 2017 07:01:44 +0000 (07:01 +0000)]
Merge "Default to CACHE_ACCEL if user skips advanced settings"

7 years agoDefault to CACHE_ACCEL if user skips advanced settings
Brian Wolff [Wed, 15 Mar 2017 06:35:53 +0000 (06:35 +0000)]
Default to CACHE_ACCEL if user skips advanced settings

In the event user skips advanced settings in the installer, and
CACHE_ACCEL is available, we should default to it. This is already
the default in the event the user goes to advanced settings
since b3dc2fedc5e35015f9c7

Bug: T160495
Change-Id: Icaa2ca4e8eb63254142e837d2a47b6023a8ea0a2

7 years agorv accidental inclusion of debug code in TemplateParser
Brian Wolff [Wed, 15 Mar 2017 04:53:39 +0000 (04:53 +0000)]
rv accidental inclusion of debug code in TemplateParser

Follow up 73e08353fb96f5cbd93c6a7004d91c3d0845b446

Change-Id: I59bcff4334be61977a617a4a8726ae90165530e7

7 years agoMerge "Avoid breaking wikis that were modifying $wgDummyLanguageCodes"
jenkins-bot [Wed, 15 Mar 2017 02:59:07 +0000 (02:59 +0000)]
Merge "Avoid breaking wikis that were modifying $wgDummyLanguageCodes"

7 years agoMerge "Make MessageCache use the immutable text cache during cache rebuilds"
jenkins-bot [Wed, 15 Mar 2017 02:52:21 +0000 (02:52 +0000)]
Merge "Make MessageCache use the immutable text cache during cache rebuilds"

7 years agoMerge "Better path traversal prevention in TemplateParser."
jenkins-bot [Wed, 15 Mar 2017 02:50:32 +0000 (02:50 +0000)]
Merge "Better path traversal prevention in TemplateParser."

7 years agoMerge "mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget"
jenkins-bot [Tue, 14 Mar 2017 23:49:40 +0000 (23:49 +0000)]
Merge "mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget"

7 years agoMerge "Add --tidy option to maintenance/parse.php"
jenkins-bot [Tue, 14 Mar 2017 23:23:29 +0000 (23:23 +0000)]
Merge "Add --tidy option to maintenance/parse.php"

7 years agoMerge "Fixing search results percentage width"
jenkins-bot [Tue, 14 Mar 2017 23:07:39 +0000 (23:07 +0000)]
Merge "Fixing search results percentage width"

7 years agoAdd --tidy option to maintenance/parse.php
Subramanya Sastry [Sun, 12 Mar 2017 22:13:51 +0000 (17:13 -0500)]
Add --tidy option to maintenance/parse.php

Change-Id: I6ec08237bd15ee2d824164a0493b7fff9ef312db

7 years agomw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget
Bartosz Dziewoński [Tue, 14 Mar 2017 21:28:16 +0000 (22:28 +0100)]
mw.widgets.SearchInputWidget: Do not pass `type: 'search'` to TextInputWidget

Causes deprecation warnings.

Most of this code is copy-pasted from OO.ui.SearchInputWidget.

Bug: T148471
Change-Id: I81d52ba938a8b90c5d2c173f1f2682d9e3300e43

7 years agoFixing search results percentage width
Jan Drewniak [Mon, 27 Feb 2017 12:24:27 +0000 (13:24 +0100)]
Fixing search results percentage width

The width of search results on SpecialSearch
page was set to 60% to accomodate the interwiki
results sidebar. As seen on:
https://phabricator.wikimedia.org/T149806

This modification should be moved to the
interwikiwidget.styles.less file so it doesn't
interfere with results when the intwiki
widget is not active.

Bug: T159806
Change-Id: Ib9bdc501c8b0eccbcc84abe399a38d10c9a5d20f

7 years agoMerge "Don't use $this as a function argument"
jenkins-bot [Tue, 14 Mar 2017 21:08:27 +0000 (21:08 +0000)]
Merge "Don't use $this as a function argument"

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

Change-Id: I700258b10dc880529bb6f37c7a31b54b765310ef

7 years agoRevert "[search] Remove more dead code"
Erik Bernhardson [Tue, 14 Mar 2017 20:10:23 +0000 (13:10 -0700)]
Revert "[search] Remove more dead code"

This reverts commit 1525f6cd45e47c4e9623da234a1d55f862b39498.

This should be functionally equivilent to what was being done
before. When go is triggered but does not cause a redirect the
hook is called. Nothing is done with the result of the hook, same
as before.

Not going to bother deprecating, it doesn't particularly hurt the
architecture in any way, it was removed for being what appeared as dead
code due to a long removed feature. There are apparently a few usages of
this in extensions that may or may not work with recent releases of
mediawiki.

Bug: T160441
Change-Id: I368dec79431fbcc8d04f95afed8bbc7262a2e5de

7 years agoMake sure Swift store operations close the source file handle
Aaron Schulz [Thu, 9 Mar 2017 02:51:27 +0000 (18:51 -0800)]
Make sure Swift store operations close the source file handle

Bug: T159607
Change-Id: I9a8907a20ba83f33cc5fc96bc15a1728770f656a

7 years agopostEdit: Only call mw.cookie.get() if needed
Timo Tijhof [Wed, 8 Mar 2017 04:57:16 +0000 (20:57 -0800)]
postEdit: Only call mw.cookie.get() if needed

Avoid synchronous document.cookie reads unconditionally during page load.
At least avoid the read where it isn't needed, such as non-view actions
and special pages.

Ideally this would happen in mw.requestIdleCallback, but unfurtunately
various extensions have a fragile dependency on reading mw.config
wgPostEdit at initialitation time which would likely fail if this is no
longer set synchronously. To be revisited...

Change-Id: Ib655bf6507333c1a9845a05eb436dca522efbab7

7 years agoBetter path traversal prevention in TemplateParser.
Brian Wolff [Tue, 14 Mar 2017 04:01:09 +0000 (04:01 +0000)]
Better path traversal prevention in TemplateParser.

In practise this probably doesn't matter, since template names
are not user controlled, and php isn't stupid enough to fall for
tricks with nulls (afaict). Nonetheless, the code from Title is
only meant to prevent url traversal, it is not meant to prevent
file system path traversal.

Change-Id: Id690576326d03744acc8fbbe78f4b7a4b4c04d7e

7 years agoMerge "Add image.img_user, image.img_timestamp index"
jenkins-bot [Tue, 14 Mar 2017 17:53:51 +0000 (17:53 +0000)]
Merge "Add image.img_user, image.img_timestamp index"

7 years agoMerge "Minor fixes for second sister search AB test"
jenkins-bot [Tue, 14 Mar 2017 16:12:38 +0000 (16:12 +0000)]
Merge "Minor fixes for second sister search AB test"