lhc/web/wiklou.git
6 years agoMerge "build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0"
jenkins-bot [Tue, 27 Jun 2017 08:57:28 +0000 (08:57 +0000)]
Merge "build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0"

6 years agoMerge "Remove "@author Bryan Davis" and "Brad Jorsch" annotations"
jenkins-bot [Tue, 27 Jun 2017 06:02:23 +0000 (06:02 +0000)]
Merge "Remove "@author Bryan Davis" and "Brad Jorsch" annotations"

6 years agoresourceloader: Add basic tests for getScript() and buildContent()
Timo Tijhof [Tue, 27 Jun 2017 05:04:21 +0000 (22:04 -0700)]
resourceloader: Add basic tests for getScript() and buildContent()

Bug: T162719
Change-Id: I37d64da77682adfef61e78033d639b623d7c9c2b

6 years agoresourceloader: Add @covers for stripBom and makeModuleResponse tests
Timo Tijhof [Tue, 27 Jun 2017 04:44:11 +0000 (21:44 -0700)]
resourceloader: Add @covers for stripBom and makeModuleResponse tests

Change-Id: Ie32178cdd03a79a0ab871122acf081c65e5a9f4d

6 years agoresourceloader: Add @covers for stripBom() test
Timo Tijhof [Tue, 27 Jun 2017 04:44:11 +0000 (21:44 -0700)]
resourceloader: Add @covers for stripBom() test

Change-Id: I3403b6617121f5965ef7aa125eb2528db7c89e95

6 years agoresourceloader: Complete test coverage for FileModule::getTemplates()
Timo Tijhof [Tue, 27 Jun 2017 04:21:36 +0000 (21:21 -0700)]
resourceloader: Complete test coverage for FileModule::getTemplates()

* Add coverage for the 'else' branch for file not existing and
  an exception being thrown.

Change-Id: Ia7d608f1ed72f07f46b969046d9c9910fbfd738d

6 years agoUser: Avoid deprecated Linker::link()
Kunal Mehta [Tue, 27 Jun 2017 02:19:27 +0000 (19:19 -0700)]
User: Avoid deprecated Linker::link()

Change-Id: Id50615c1cd4c49ea7b04747f15e353448e971b66

6 years agoDidYouMeanWidget: Don't use deprecated Linker::linkKnown()
Kunal Mehta [Tue, 27 Jun 2017 02:17:17 +0000 (19:17 -0700)]
DidYouMeanWidget: Don't use deprecated Linker::linkKnown()

Change-Id: Ie5464c9d8e3207e7d307bbd31f3c3026ac18fcf2

6 years agoRCFilters: Remove <hr> if extension table is empty
Moriel Schottlender [Tue, 27 Jun 2017 00:37:18 +0000 (17:37 -0700)]
RCFilters: Remove <hr> if extension table is empty

Bug: T168325
Change-Id: I5f537722aeef8d52cd5b0555519be97a7675491f

6 years agoMerge "RCFilters: Add 'single_option' group type"
jenkins-bot [Tue, 27 Jun 2017 00:29:48 +0000 (00:29 +0000)]
Merge "RCFilters: Add 'single_option' group type"

6 years agoRCFilters: Correct default view title
Moriel Schottlender [Tue, 27 Jun 2017 00:25:14 +0000 (17:25 -0700)]
RCFilters: Correct default view title

The key was changed from "label" to "title" but that was not changed
in the default view. Change the definition key and adjust the name
of the method so it isn't confusing.

Bug: T168855
Change-Id: Ib94f57d3bcce94a02fac25d66b893a68aa648e84

6 years agoRCFilters: Add 'single_option' group type
Moriel Schottlender [Fri, 23 Jun 2017 20:30:42 +0000 (13:30 -0700)]
RCFilters: Add 'single_option' group type

Group type that only allows a single option to be selected
from its range of items.

Bonus: Add the ability to have a view that is hidden from
the menus

Bug: T162784
Bug: T162786
Change-Id: Ide93491a49c1405926ac171c7924a469e94c0e0a

6 years agoRCFilters: Simplify "Saved filter settings" to "Saved filters"
Roan Kattouw [Tue, 27 Jun 2017 00:00:56 +0000 (17:00 -0700)]
RCFilters: Simplify "Saved filter settings" to "Saved filters"

Bug: T167876
Change-Id: I5beb2433a9fb0ba8493ec571c1c4d37cd4ee26ba

6 years agoRCFilters: Always use the filled bookmark icon (unClip)
Roan Kattouw [Mon, 26 Jun 2017 23:49:52 +0000 (16:49 -0700)]
RCFilters: Always use the filled bookmark icon (unClip)

Bug: T168828
Change-Id: I436f00bc87db143116125a185abd8000132df195

6 years agoMerge "Replace some usages of Linker::link with LinkRenderer"
jenkins-bot [Mon, 26 Jun 2017 22:56:45 +0000 (22:56 +0000)]
Merge "Replace some usages of Linker::link with LinkRenderer"

6 years agoMerge "RCFilters: Invert the muted state of inverted namespace options"
jenkins-bot [Mon, 26 Jun 2017 22:46:47 +0000 (22:46 +0000)]
Merge "RCFilters: Invert the muted state of inverted namespace options"

6 years agoRCFilters: Invert the muted state of inverted namespace options
Moriel Schottlender [Wed, 21 Jun 2017 21:16:51 +0000 (14:16 -0700)]
RCFilters: Invert the muted state of inverted namespace options

Since the inversion happened, the background of selected items was
overridden by "muted" background, so we had to change a few more
details to get things to work properly:
- Override selected color even if the item is muted (previously,
  'selected' cannot be muted by definition, but this patch changes
  that and hence needs to make sure selected color overrides the
  muted color state)
- Set correct muted state on the namespace items to be reversed.
- The highlight/select/mute background issue exposed a secondary
  issue when switching views by clicking the 'tag' item, whereby
  the change of view itself causes the input to empty, and triggers
  the updateItemVisibility in MenuSelectWidget, which then selects
  the first item. This shouldn't happen when the user is actively
  selecting an item from the tags, so a method of recognizing that
  the user is actively selecting an item was added.

Change-Id: Idf5c2232216ad6a38b29bbc103bbca66f56533b7

6 years agoRemove "@author Bryan Davis" and "Brad Jorsch" annotations
Bryan Davis [Tue, 13 Jun 2017 16:51:53 +0000 (10:51 -0600)]
Remove "@author Bryan Davis" and "Brad Jorsch" annotations

Undo traces of a practice we carried over from past projects and
existing examples that is neither universal nor actively encouraged in
the MediaWiki codebase.

Bug: T139301
Change-Id: I5c9c89b72a45a44aa4264a5e57b003c1a86cdf6e
Co-Authored-By: Brad Jorsch <bjorsch@wikimedia.org>
6 years agoMerge "mw.filewarning: Increase the area of the warning button"
jenkins-bot [Mon, 26 Jun 2017 20:25:38 +0000 (20:25 +0000)]
Merge "mw.filewarning: Increase the area of the warning button"

6 years agoMerge "mediawiki.Title: Remove needless $.type() and minor clean up"
jenkins-bot [Mon, 26 Jun 2017 20:21:18 +0000 (20:21 +0000)]
Merge "mediawiki.Title: Remove needless $.type() and minor clean up"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 26 Jun 2017 19:56:04 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I457987aceec9e936608988e63a88686d1e98675d

6 years agotests: Reset LanguageConverter conversion tables between test cases
C. Scott Ananian [Mon, 26 Jun 2017 17:56:30 +0000 (13:56 -0400)]
tests: Reset LanguageConverter conversion tables between test cases

Conversion rules defined in a previous test case were leaking into
subsequent test cases.  Existing tests had worked around this by defining
non-overlapping rules, but it's better to just fix the problem at the
source.

Change-Id: I65736520cd04bfe8949b29ade07338a6e1b88a4d

6 years agobuild: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0
Umherirrender [Mon, 26 Jun 2017 16:35:31 +0000 (18:35 +0200)]
build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0

The used phpcs has a bug, so the version 0.9.0 could not be enforced at the moment.
Will be fixed in next version, see T167168

Changed:
- Remove duplicate newline at end of file
- Add space between function and ( for closures
- and -> &&, or -> ||

Change-Id: I4172fb08861729bccd55aecbd07e029e2638d311

6 years agoDowngrade 'found writes/callbacks pending.' from error to info
Mukunda Modell [Mon, 26 Jun 2017 16:27:23 +0000 (11:27 -0500)]
Downgrade 'found writes/callbacks pending.' from error to info

This generates useless logspam and should be logged with a lower
log level.

Bug: T149353
Change-Id: If5e84b89eca098ac7f8c788ca3b0d268adf799fb

6 years agomw.filewarning: Increase the area of the warning button
Bartosz Dziewoński [Mon, 26 Jun 2017 16:26:34 +0000 (18:26 +0200)]
mw.filewarning: Increase the area of the warning button

So that the user can move the mouse cursor to the popup
without the popup disappearing.

Bug: T157544
Change-Id: Ide9db6f6fd092caeea1bacfc97ec79f9acc3793e

6 years agoMerge "Parser: Emit deprecation warnings for ParserLimitReport hook"
jenkins-bot [Mon, 26 Jun 2017 15:05:22 +0000 (15:05 +0000)]
Merge "Parser: Emit deprecation warnings for ParserLimitReport hook"

6 years agoFix highlighting for phrase queries
David Causse [Thu, 22 Jun 2017 12:48:14 +0000 (14:48 +0200)]
Fix highlighting for phrase queries

I think the bug was introduced during a cleanup in Iaabc10c.
I don't think that " should be part of the legalSearchChars at query
time, it seems to break the regex.
The strategy here is to distinguish legalSearchChars used query time vs
the ones used at index time by introducing:
SearchEngine::legalSearchCharsForUpdate()

Bug: T167798
Change-Id: I61dc53665e26d3c6c48caed78dd3bbde9a33def7

6 years agoMerge "Perform input validation for file $page at some strategic locations"
jenkins-bot [Mon, 26 Jun 2017 06:55:16 +0000 (06:55 +0000)]
Merge "Perform input validation for file $page at some strategic locations"

6 years agodocs: Use oojs-ui-wikimediaui, instead of -mediawiki
Prateek Saxena [Mon, 26 Jun 2017 03:52:56 +0000 (09:22 +0530)]
docs: Use oojs-ui-wikimediaui, instead of -mediawiki

Change-Id: Iac6a526c928fe384f5f7df5af6b0156146bf2f33

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 25 Jun 2017 20:08:15 +0000 (22:08 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3311079076af3f9bad7b06c4ac0a532a2ecd75ba

6 years agoMerge "Update weblinks in comments to msdn.microsoft.com"
jenkins-bot [Sun, 25 Jun 2017 10:35:55 +0000 (10:35 +0000)]
Merge "Update weblinks in comments to msdn.microsoft.com"

6 years agoMerge "Rename canTalk methods"
jenkins-bot [Sun, 25 Jun 2017 10:25:55 +0000 (10:25 +0000)]
Merge "Rename canTalk methods"

6 years agoMerge "Parser: Ensure function and tag hook callbacks are callable upon registration"
jenkins-bot [Sun, 25 Jun 2017 10:24:58 +0000 (10:24 +0000)]
Merge "Parser: Ensure function and tag hook callbacks are callable upon registration"

6 years agoMerge "FileDeleteForm: Create log entry even if the page didn't exist"
jenkins-bot [Sun, 25 Jun 2017 10:15:42 +0000 (10:15 +0000)]
Merge "FileDeleteForm: Create log entry even if the page didn't exist"

6 years agoRename canTalk methods
daniel [Fri, 9 Jun 2017 18:29:18 +0000 (20:29 +0200)]
Rename canTalk methods

This renames Title::canTalk to Title::canHaveTalkPage
and MWNamespace::canTalk to MWNamespace::hasTalkNamespace.

Bug: T165149
Change-Id: I342a273a497b31282388b13bf76dadfb1122dcbb

6 years agoParser: Ensure function and tag hook callbacks are callable upon registration
daniel [Wed, 7 Jun 2017 10:49:24 +0000 (12:49 +0200)]
Parser: Ensure function and tag hook callbacks are callable upon registration

This is to safeguard against issues like T167238, where the callback was invalid,
but was only noticed when the magic word was used in an article.

In general, type checks should be applied when things get
registered for later use. Fail early, stay sane.

Change-Id: Ifb7005ee214829c98cec534261c0db7d13f50f35

6 years agoMerge "API: Allow deleting files without corresponding pages"
jenkins-bot [Sun, 25 Jun 2017 10:08:32 +0000 (10:08 +0000)]
Merge "API: Allow deleting files without corresponding pages"

6 years agoRemove newline at end from english messages
Umherirrender [Sat, 24 Jun 2017 23:40:22 +0000 (01:40 +0200)]
Remove newline at end from english messages

Newline get lost on translation, but it seems there are not needed.

Change-Id: I51cfc598052d4d9b457c2d7a4f25178d580d8ee3

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 24 Jun 2017 20:11:00 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I18ef4dcda34a029f16c6a85c3474eeef6a71502b

6 years agoParser: Emit deprecation warnings for ParserLimitReport hook
Kunal Mehta [Sat, 24 Jun 2017 00:37:31 +0000 (17:37 -0700)]
Parser: Emit deprecation warnings for ParserLimitReport hook

Change-Id: I351f0867132acf8d5cc9ee51b575744445b28b77

6 years agomediawiki.Title: Remove needless $.type() and minor clean up
Timo Tijhof [Sat, 24 Jun 2017 00:23:49 +0000 (01:23 +0100)]
mediawiki.Title: Remove needless $.type() and minor clean up

* Use typeof instead of $.type() for primitives.
* Remove needless type check before instanceof.
* Use early-return pattern.

Change-Id: Ibfdbc3912961fd017cefb7115951f07b92f6d435

6 years agoMerge "API: Fix capitalization of SpecialRecentChanges* classes"
jenkins-bot [Fri, 23 Jun 2017 21:35:47 +0000 (21:35 +0000)]
Merge "API: Fix capitalization of SpecialRecentChanges* classes"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 23 Jun 2017 19:55:33 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id56fbcea3887cfa2a0ba2a3bdc83a180c20bdc92

6 years agoAPI: Fix capitalization of SpecialRecentChanges* classes
Kunal Mehta [Fri, 23 Jun 2017 19:23:55 +0000 (12:23 -0700)]
API: Fix capitalization of SpecialRecentChanges* classes

And use the magic ::class instead of plain strings.

Noticed by logging added for T166759.

Change-Id: I7694c272c255b5b1f7455e55e70ecc240a4ba61c

6 years agoSpecialContributions: Fix capitalization of DateInputWidget class
Kunal Mehta [Fri, 23 Jun 2017 19:13:02 +0000 (12:13 -0700)]
SpecialContributions: Fix capitalization of DateInputWidget class

The namespace was improperly capitalized, move it to a "use" statement
while we're at it so it's only included once.

Noticed by the logging added for T166759.

Change-Id: I3fe6533a0f06dcbc37017361679dad9e77808830

6 years agoMerge "RCFilters: Unify reading filters by views and adjust unit tests"
jenkins-bot [Fri, 23 Jun 2017 18:39:02 +0000 (18:39 +0000)]
Merge "RCFilters: Unify reading filters by views and adjust unit tests"

6 years agoMerge "RCFilters: Change the input icon on interaction"
jenkins-bot [Fri, 23 Jun 2017 18:35:45 +0000 (18:35 +0000)]
Merge "RCFilters: Change the input icon on interaction"

6 years agoRCFilters: Unify reading filters by views and adjust unit tests
Moriel Schottlender [Fri, 23 Jun 2017 01:35:58 +0000 (18:35 -0700)]
RCFilters: Unify reading filters by views and adjust unit tests

- Have the initialization method read filters by views and treat
  all filters, regardless of their views, the exact same, including
  evaluating their subsets and conflicts.
- Clean up unit test file and make pass with the new initialization.

Change-Id: I200720ffde8ad8ff7a63d0cd82615d358e74949a

6 years agoFactor out byte limit label logic from edit page to utility function
Ed Sanders [Fri, 23 Jun 2017 06:56:00 +0000 (23:56 -0700)]
Factor out byte limit label logic from edit page to utility function

Other input widgets have byte limits and may want to display the counter.

Change-Id: I61b72ab75007d80b9e0bba0f391c88cbac2bce3d

6 years agoMerge "Set $wgGalleryOptions in Setup.php"
jenkins-bot [Fri, 23 Jun 2017 15:05:29 +0000 (15:05 +0000)]
Merge "Set $wgGalleryOptions in Setup.php"

6 years agoMerge "Use $.noop instead of function () {}"
jenkins-bot [Fri, 23 Jun 2017 11:42:26 +0000 (11:42 +0000)]
Merge "Use $.noop instead of function () {}"

6 years agoSet $wgGalleryOptions in Setup.php
Matthias Mullie [Fri, 23 Jun 2017 11:31:49 +0000 (13:31 +0200)]
Set $wgGalleryOptions in Setup.php

Defaults will be added to the config array at a later point,
without overriding any that have already been set.
This'll make it less prone to errors in case $wgGalleryOptions
is incomplete.

Bug: T168479
Change-Id: I5f127e5ac8c8a1583301dd7aed2ae8e434987950

6 years agoMerge "resourceloader: Backport jquery-migrate.js patch for exceptionHook"
jenkins-bot [Fri, 23 Jun 2017 11:32:13 +0000 (11:32 +0000)]
Merge "resourceloader: Backport jquery-migrate.js patch for exceptionHook"

6 years agoUse $.noop instead of function () {}
Fomafix [Fri, 23 Jun 2017 06:45:29 +0000 (08:45 +0200)]
Use $.noop instead of function () {}

$.noop (https://api.jquery.com/jQuery.noop/) already provides an empty
function.

Change-Id: I7f1ca20a894d0469cb7bcb72c81722070e040956

6 years agoFix border-radii on FilterTagMultiselectWidget
Ed Sanders [Fri, 23 Jun 2017 05:26:29 +0000 (22:26 -0700)]
Fix border-radii on FilterTagMultiselectWidget

Change-Id: I14211db541f02a48e7aa0a95f967d7882c59280e

6 years agoMerge "RCFilters: Reposition TagItemWidget to be center on the widget"
jenkins-bot [Fri, 23 Jun 2017 00:24:13 +0000 (00:24 +0000)]
Merge "RCFilters: Reposition TagItemWidget to be center on the widget"

6 years agoMerge "RCFilters: Have the model accept multiple views"
jenkins-bot [Fri, 23 Jun 2017 00:18:15 +0000 (00:18 +0000)]
Merge "RCFilters: Have the model accept multiple views"

6 years agoMerge "RCFilters: Correct unbalanced margins in active filters display"
jenkins-bot [Fri, 23 Jun 2017 00:12:02 +0000 (00:12 +0000)]
Merge "RCFilters: Correct unbalanced margins in active filters display"

6 years agoMerge "RCFilters: Remove view triggers before checking emptiness of string"
jenkins-bot [Fri, 23 Jun 2017 00:11:19 +0000 (00:11 +0000)]
Merge "RCFilters: Remove view triggers before checking emptiness of string"

6 years agoMerge "RCFilters: Change to the new views redesign"
jenkins-bot [Fri, 23 Jun 2017 00:06:45 +0000 (00:06 +0000)]
Merge "RCFilters: Change to the new views redesign"

6 years agoRCFilters: Change to the new views redesign
Moriel Schottlender [Thu, 15 Jun 2017 00:15:52 +0000 (17:15 -0700)]
RCFilters: Change to the new views redesign

- Allow for multiple footers for the menu, each configured
  for its own view (or multiple views)
- Move the switch view buttons to the right of the input
- Add a 'back' button on the menu header when we're in
  advanced filters view, moving back to default view

Bug: T167384
Change-Id: I9fd0243f88f92ddacb4c912ff974f7d325f32f5d

6 years agoresourceloader: Backport jquery-migrate.js patch for exceptionHook
Timo Tijhof [Thu, 22 Jun 2017 22:49:56 +0000 (23:49 +0100)]
resourceloader: Backport jquery-migrate.js patch for exceptionHook

jQuery Migrate has to monkey-patch jQuery.Deferred, but in doing so
it also effectively disables exceptionHook, which means exceptions
are no longer logged to the console.

<https://github.com/jquery/jquery-migrate/pull/262>

Bug: T168086
Change-Id: Id46abcc7fb5e65954532b114636bf0f1f000a551

6 years agoMerge "RCFilters: Actually recognize a saved query default and delete when removed"
jenkins-bot [Thu, 22 Jun 2017 22:48:14 +0000 (22:48 +0000)]
Merge "RCFilters: Actually recognize a saved query default and delete when removed"

6 years agoMerge "Fix the tableExists method of MysqlBase"
jenkins-bot [Thu, 22 Jun 2017 21:24:17 +0000 (21:24 +0000)]
Merge "Fix the tableExists method of MysqlBase"

6 years agoFix the tableExists method of MysqlBase
mainframe98 [Mon, 19 Jun 2017 17:20:43 +0000 (19:20 +0200)]
Fix the tableExists method of MysqlBase

The table name generated by Database::tableName() does not work in
MysqlBase's tableExist method, as the syntax of SHOW TABLES does not
function like other foreign db queries. It instead should use FROM
$database rather than the database name in front of the table name.

Bug: T168207
Change-Id: I7806090eaa647959fd34de8bc606eeb952161529

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

Change-Id: Ie2c6873b323f3668546ee1467865fdb342900a77

6 years agoRCFilters: Have the model accept multiple views
Moriel Schottlender [Wed, 21 Jun 2017 00:37:17 +0000 (17:37 -0700)]
RCFilters: Have the model accept multiple views

Organize the way we create and process multiple views, to stop
hard-coding namespaces and tags.

Change-Id: Ib28c166052781b23a3b35c1b7b0af7d26f102e3f

6 years agoRCFilters: Actually recognize a saved query default and delete when removed
Moriel Schottlender [Thu, 22 Jun 2017 01:21:56 +0000 (18:21 -0700)]
RCFilters: Actually recognize a saved query default and delete when removed

Compare ID to saved default even if those were saved in different
formats (number vs string) when setting default on initialization
and when deleting the default when deleting the item.

Change-Id: Ia211a7166b3ff514c0e2a34bb370cf2d50057745

6 years agoMerge "Linker: Remove whiny FIXME comments"
jenkins-bot [Thu, 22 Jun 2017 18:09:46 +0000 (18:09 +0000)]
Merge "Linker: Remove whiny FIXME comments"

6 years agoLinker: Remove whiny FIXME comments
Bartosz Dziewoński [Thu, 22 Jun 2017 17:49:20 +0000 (19:49 +0200)]
Linker: Remove whiny FIXME comments

These are not actionable. Such is life, deal with it.

Change-Id: I81df045f54052b98cf798d3d42a3d730407d68ae

6 years agoMerge "API: Display message-per-value style help for submodule parameters"
jenkins-bot [Thu, 22 Jun 2017 17:10:36 +0000 (17:10 +0000)]
Merge "API: Display message-per-value style help for submodule parameters"

6 years agoMerge "Add 3D filetype for STL files"
jenkins-bot [Thu, 22 Jun 2017 16:49:40 +0000 (16:49 +0000)]
Merge "Add 3D filetype for STL files"

6 years agoMerge "Remove execute bits from non-executable files"
jenkins-bot [Thu, 22 Jun 2017 16:08:27 +0000 (16:08 +0000)]
Merge "Remove execute bits from non-executable files"

6 years agoRemove execute bits from non-executable files
Brad Jorsch [Thu, 22 Jun 2017 15:27:23 +0000 (11:27 -0400)]
Remove execute bits from non-executable files

Change-Id: I4d6a202c63bef3e52b67b55fb6daef04dc2fdd62

6 years agoCollationFa: Avoid PHP 7 Unicode escape syntax
Bartosz Dziewoński [Thu, 22 Jun 2017 14:22:49 +0000 (16:22 +0200)]
CollationFa: Avoid PHP 7 Unicode escape syntax

We still support PHP 5.5.

Change-Id: I587cb794cded95afe7ad493614a6090a108efe6c

6 years agoMerge "Ability to create tests with nested modules"
jenkins-bot [Thu, 22 Jun 2017 14:11:21 +0000 (14:11 +0000)]
Merge "Ability to create tests with nested modules"

6 years agoAdd SearchIndexField::getEngineHints()
David Causse [Tue, 20 Jun 2017 13:43:28 +0000 (15:43 +0200)]
Add SearchIndexField::getEngineHints()

Allows search engine clients that implement custom definitions
to pass engine hints used at index time.
Hints are a way to fine tune the behavior of the search engine
when handling a particular field.
As of now this is introduced for CirrusSearch to let SearchIndexField
implementations to control how the noop script is configured.
The noop hint with CirrusSearch allows to (for example):
- ignore an update if a numeric value does not change for more than X%
- control the merge strategy of complex fields

Bug: T166589
Change-Id: Ia560e41d33013c30ac47e5a60543f8cb133e61fb

6 years agoMerge "RC Filters: Fix tags for integrated filters"
jenkins-bot [Thu, 22 Jun 2017 00:48:38 +0000 (00:48 +0000)]
Merge "RC Filters: Fix tags for integrated filters"

6 years agoRCFilters: Remove view triggers before checking emptiness of string
Moriel Schottlender [Wed, 21 Jun 2017 20:31:35 +0000 (13:31 -0700)]
RCFilters: Remove view triggers before checking emptiness of string

Bug: T168220
Change-Id: I3ae6fba358456745cb570840211319f7eac754ce

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

Change-Id: If8ff147d26d1ccf1d4c540ee7bc25cabead1da5a

6 years agoMerge "resourceloader: Add unit tests for ResourceLoader::isFileModule"
jenkins-bot [Wed, 21 Jun 2017 20:01:47 +0000 (20:01 +0000)]
Merge "resourceloader: Add unit tests for ResourceLoader::isFileModule"

6 years agoMerge "Allow $wgResourceModuleSkinStyles for any ResourceLoaderFileModule subclass"
jenkins-bot [Wed, 21 Jun 2017 19:53:24 +0000 (19:53 +0000)]
Merge "Allow $wgResourceModuleSkinStyles for any ResourceLoaderFileModule subclass"

6 years agoresourceloader: Add unit tests for ResourceLoader::isFileModule
Timo Tijhof [Wed, 21 Jun 2017 19:37:44 +0000 (20:37 +0100)]
resourceloader: Add unit tests for ResourceLoader::isFileModule

Change-Id: Ic21ae9e9cc418868ad7b93fe65bd09495f38d1b2

6 years agoMerge "Make MalformedTitleException errorMessage non-null"
jenkins-bot [Wed, 21 Jun 2017 19:42:51 +0000 (19:42 +0000)]
Merge "Make MalformedTitleException errorMessage non-null"

6 years agoMerge "Fix enhanced RC data attribute sanitizing"
jenkins-bot [Wed, 21 Jun 2017 19:38:48 +0000 (19:38 +0000)]
Merge "Fix enhanced RC data attribute sanitizing"

6 years agoAllow $wgResourceModuleSkinStyles for any ResourceLoaderFileModule subclass
Bartosz Dziewoński [Mon, 5 Jun 2017 23:04:19 +0000 (01:04 +0200)]
Allow $wgResourceModuleSkinStyles for any ResourceLoaderFileModule subclass

All ResourceLoaderFileModule subclasses are now required to support
the 'skinStyles' property in their module definition, and ideally
make use of it (but at least they must not fail violently).

Follow-up to 51eede02837a3a9d378cb35fa7c27a9f4e8e5f4e.

Bug: T167478
Bug: T168088
Change-Id: I35a12a451bf2695818702df1bbd1708173a3f9ce

6 years agoAPI: Don't handle non-preflight OPTIONS as CORS
Brad Jorsch [Wed, 21 Jun 2017 18:45:56 +0000 (14:45 -0400)]
API: Don't handle non-preflight OPTIONS as CORS

If it's not a preflight, it's either a simple request or an actual
request after a preflight. But simple requests can only be GET, HEAD, or
POST, and we only return a successful response for a preflight if the
actual request is going to be GET or POST. So either way it shouldn't be
handled as CORS.

This also adds a response header to indicate to the end user why
something they probably intended as a CORS request wasn't handled as
one, to help with debugging.

And it renames a local variable that confused me when looking back at
this code.

Bug: T168558
Change-Id: Ia66c74e1cc8536c6c478237540abb4d7a98b9803

6 years agoMerge "Factor out new qualifiedTableComponents() Database method"
jenkins-bot [Wed, 21 Jun 2017 18:36:42 +0000 (18:36 +0000)]
Merge "Factor out new qualifiedTableComponents() Database method"

6 years agoMerge "Load mediawiki.action.edit.styles on mobile"
jenkins-bot [Wed, 21 Jun 2017 17:07:02 +0000 (17:07 +0000)]
Merge "Load mediawiki.action.edit.styles on mobile"

6 years agoMake MalformedTitleException errorMessage non-null
Lucas Werkmeister [Tue, 20 Jun 2017 18:26:04 +0000 (20:26 +0200)]
Make MalformedTitleException errorMessage non-null

A null $errorMessage constructor argument has not been supported since
I43d988602b, since wfMessage (via the Message constructor) throws an
exception if the message key is null. It follows that getErrorMessage()
can never return null.

Bug: T99818
Change-Id: I2cbf4909e7237b0a91d100cc5478fb4cfee1d748

6 years agoRC Filters: Fix tags for integrated filters
Matthew Flaschen [Wed, 21 Jun 2017 07:15:48 +0000 (03:15 -0400)]
RC Filters: Fix tags for integrated filters

Change-Id: Ibf06ffe9338b12951caa7259304594d4fcc928d5

6 years agoFactor out new qualifiedTableComponents() Database method
Aaron Schulz [Tue, 20 Jun 2017 23:29:56 +0000 (16:29 -0700)]
Factor out new qualifiedTableComponents() Database method

Change-Id: Ib453a5a8e0cf8bb1b77e65eb6f9569819d4eb5b2

6 years agoLoad mediawiki.action.edit.styles on mobile
jdlrobson [Tue, 20 Jun 2017 21:28:35 +0000 (14:28 -0700)]
Load mediawiki.action.edit.styles on mobile

Hopefully uncontroversial.
Mobile non-js editing is currently feature flagged
by $wgMFAllowNonJavaScriptEditing so this shouldn't have
any impact on production but will ensure the editor gets
styled consistently with future changes here.

Change-Id: If8994370e9ec7fc424ce7cb22df922d029cfc035

6 years agoMerge "Replace Linker::link() with LinkRenderer in special pages"
jenkins-bot [Tue, 20 Jun 2017 21:07:22 +0000 (21:07 +0000)]
Merge "Replace Linker::link() with LinkRenderer in special pages"

6 years agoMerge "Replace a Linker::link() call in InfoAction.php"
jenkins-bot [Tue, 20 Jun 2017 21:05:15 +0000 (21:05 +0000)]
Merge "Replace a Linker::link() call in InfoAction.php"

6 years agoMerge "ApiSandbox: Indicate when login is suppressed"
jenkins-bot [Tue, 20 Jun 2017 21:02:30 +0000 (21:02 +0000)]
Merge "ApiSandbox: Indicate when login is suppressed"

6 years agoMerge "API: Add the ability to flag parameter values as deprecated"
jenkins-bot [Tue, 20 Jun 2017 20:59:17 +0000 (20:59 +0000)]
Merge "API: Add the ability to flag parameter values as deprecated"

6 years agoReplace Linker::link() with LinkRenderer in special pages
Matěj Suchánek [Thu, 23 Mar 2017 18:09:41 +0000 (18:09 +0000)]
Replace Linker::link() with LinkRenderer in special pages

Bug: T149346
Change-Id: I2735750803dc1b2e36be3989caaabbf3232b2923

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 20 Jun 2017 20:06:45 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1d2050c1a5d2cadf8f8e152037f7b80530612dcd

6 years agoAPI: Display message-per-value style help for submodule parameters
Brad Jorsch [Thu, 25 May 2017 21:31:59 +0000 (17:31 -0400)]
API: Display message-per-value style help for submodule parameters

The module's summary will be used as the description of the value.

Since these are often very long lists, this also changes ApiSandbox to
collapse <dl> lists in parameter descriptions by default.

Bug: T123930
Change-Id: I205b68a52a94cae4c1cdf7ec9fd3e8a04d565919