James D. Forrester [Fri, 6 Oct 2017 19:58:53 +0000 (12:58 -0700)]
SearchInputWidget: Don't show images
But we should also have a different class name for this, as this isn't
upstream's SearchInputWidget.
Bug: T177659
Change-Id: Ie62e8678e89b2403d769694adb23fe21a047019c
Translation updater bot [Fri, 6 Oct 2017 20:00:00 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Id60644489cb7332c77becff126ef97b4643f83e2
Eddie Greiner-Petter [Fri, 6 Oct 2017 19:35:29 +0000 (21:35 +0200)]
Clarify purgeExpiredUserrights maintenance script
This moves an @since tag where it belongs (class-level instead of
file-level comment) and removes a wrong message (purges are run directly
after execute() ended and will have immediate effect).
Follows-up on
fdb4557.
Change-Id: I26fdb1c147b9b44690a3dd0f7c836aca85430c5e
Roan Kattouw [Fri, 6 Oct 2017 02:26:44 +0000 (19:26 -0700)]
RCFilters UI: In the highlight code, use .data() the way it was meant to be used
Use .data( 'highlightedFilters' ) instead of .attr( 'data-highlightedFilters' ),
and make the value an array rather than a string that we have to convert
back and forth every time. We have to use .attr() for data-color because it's
used by CSS, but data-highlightedFilters isn't used by anything else.
Using an array makes the code much simpler. Also add the class
mw-rcfilters-highlighted to every highlighted item, so we can find
them back easily and don't have to use $( '[data-highlightedFilters]' )
(attribute selectors are slow, and this wouldn't work with .data() anyway).
Bonus: use the comma-separator message
Change-Id: I04de7f8fb74d60fb23ef47bf50bacfeb176a55b1
jenkins-bot [Thu, 5 Oct 2017 23:40:07 +0000 (23:40 +0000)]
Merge "HTMLMultiSelectField: Support sections in OOUI mode"
jenkins-bot [Thu, 5 Oct 2017 22:46:57 +0000 (22:46 +0000)]
Merge "Add maintenance script: Clean up expired userrights"
Timo Tijhof [Thu, 5 Oct 2017 20:30:20 +0000 (21:30 +0100)]
jquery.ui: Fix various jQuery Migrate warnings
These are the most common three, triggered whenever a jQuery UI
dialog is created.
> JQMIGRATE: jQuery.fn.bind() is deprecated
> JQMIGRATE: jQuery.expr.filters is deprecated; use jQuery.expr.pseudos
> JQMIGRATE: jQuery.fn.andSelf() was removed, use jQuery.fn.addBack()
Bug: T169385
Change-Id: I717f2580e3aae443cb9fc734de8f4b0dd8825b8c
Translation updater bot [Thu, 5 Oct 2017 20:03:15 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I62a90758714d96ddcd91f8959b2e019aa72cfb9b
Timo Tijhof [Thu, 5 Oct 2017 19:26:50 +0000 (20:26 +0100)]
jquery-migrate: Disable console.trace() call by default
They are slow and spammy, especially given in modern browsers
console.warn() already provides a trace (and one that is collapsed
by default in Chrome, which seems preferred).
Change-Id: I94d3c7bf6deb47c2f3f660dfd2298ee293e7d825
Timo Tijhof [Thu, 5 Oct 2017 19:23:55 +0000 (20:23 +0100)]
jquery-migrate: Remove redundant PATCH note for Deferred bug
This patch was merged upstream and is no longer a local patch
since
2e2ac756e7224 upgraded us to jQuery Migrate 3.0.1.
I mistakenly kept this comment when re-applying our patches.
Change-Id: Id5fa8c03bc5791971a6406376ca8abf5503268f6
Eddie Greiner-Petter [Wed, 4 Oct 2017 19:55:59 +0000 (21:55 +0200)]
Add maintenance script: Clean up expired userrights
This adds a maintenance script that removes all expired user group
entries from the user_groups table and adds them to the
user_former_groups table.
Bug: T176754
Change-Id: Ie0f4afd3dbecd3af42e89bb99cf03dbe03768d07
jenkins-bot [Thu, 5 Oct 2017 17:55:50 +0000 (17:55 +0000)]
Merge "Refactor global function wfBCP47 to static function LanguageCode::bcp47"
jenkins-bot [Thu, 5 Oct 2017 17:47:29 +0000 (17:47 +0000)]
Merge "Revert "Remove some remaining mentions of unstubbing from core""
Addshore [Thu, 5 Oct 2017 17:27:08 +0000 (17:27 +0000)]
Revert "Remove some remaining mentions of unstubbing from core"
This reverts commit
0f91e75c20e040f0e688fb05654ba7797afcff76.
Bug: T177478
Change-Id: I1937bd116d22479c38a9a34714c2090e2a4c0d7e
jenkins-bot [Thu, 5 Oct 2017 17:26:00 +0000 (17:26 +0000)]
Merge "RCFilters: Load default saved query if it exists"
Moriel Schottlender [Fri, 18 Aug 2017 21:30:17 +0000 (14:30 -0700)]
RCFilters: Load default saved query if it exists
Bug: T166908
Change-Id: Ic3931bc0d67b340db11ed100aad836e8d867fa56
Addshore [Thu, 5 Oct 2017 16:51:11 +0000 (16:51 +0000)]
Revert "Stop stubbing StubUserLang"
This reverts commit
7ab57ba290f670847f981d5fc2c79339f1d4844e.
Bug: T177478
Change-Id: I28ac95ebcb64231a12c178165a0cb174e70f4e18
jenkins-bot [Thu, 5 Oct 2017 15:21:17 +0000 (15:21 +0000)]
Merge "Use Special:PageData as the canonical capitalization"
jenkins-bot [Thu, 5 Oct 2017 13:57:29 +0000 (13:57 +0000)]
Merge "Fix inability of fetching message object"
Lucas Werkmeister [Wed, 4 Oct 2017 15:38:10 +0000 (17:38 +0200)]
Use Special:PageData as the canonical capitalization
We want Special:PageData (uppercase D) to be the proper page title and
Special:Pagedata (lowercase d) to redirect to it, not vice versa.
(Special page names are case insensitive, so it’s not necessary to add
the old name Special:Pagedata as an explicit alias.)
Note: if a localisation cache is configured, it needs to be rebuilt
after this change.
Bug: T177411
Change-Id: I27c47a16326540a74d0850467d430faaa25369df
Fomafix [Thu, 6 Apr 2017 15:17:19 +0000 (17:17 +0200)]
Refactor global function wfBCP47 to static function LanguageCode::bcp47
Deprecate global function wfBCP47.
Change-Id: Ie6bb061b5d6ca67289bb18bc468a87421f38fc94
jenkins-bot [Thu, 5 Oct 2017 07:06:54 +0000 (07:06 +0000)]
Merge "Allow duplicate articles in parser tests with same content"
jenkins-bot [Thu, 5 Oct 2017 06:27:41 +0000 (06:27 +0000)]
Merge "CLI: Make sure we don't exit with 0 when an exception is encountered"
jenkins-bot [Wed, 4 Oct 2017 22:37:01 +0000 (22:37 +0000)]
Merge "Hard deprecate wfInitShellLocale()"
jenkins-bot [Wed, 4 Oct 2017 22:28:31 +0000 (22:28 +0000)]
Merge "Make Database::rollback() also suppress callback errors"
jenkins-bot [Wed, 4 Oct 2017 22:00:23 +0000 (22:00 +0000)]
Merge "TitleWidget: Perform diacritic-insensitive highlighting"
Max Semenik [Wed, 4 Oct 2017 21:58:38 +0000 (14:58 -0700)]
Hard deprecate wfInitShellLocale()
Soft deprecated since 1.30, no callers anywhere.
Change-Id: Ifec11eb3c2c25ea9d7e5ecb72c53127536ab6c30
jenkins-bot [Wed, 4 Oct 2017 21:52:50 +0000 (21:52 +0000)]
Merge "mediawiki.notification: Move offset() computation to next frame"
jenkins-bot [Wed, 4 Oct 2017 21:47:22 +0000 (21:47 +0000)]
Merge "mediawiki.notification: Refactor $.ready handler and init()"
jenkins-bot [Wed, 4 Oct 2017 21:44:23 +0000 (21:44 +0000)]
Merge "mediawiki.notification: Use css() instead of slow show()/hide()"
Timo Tijhof [Wed, 4 Oct 2017 20:30:24 +0000 (21:30 +0100)]
mediawiki.notification: Move offset() computation to next frame
Crrently on all page views in WMF production, the $.ready handler
is inserting the notif $area and subsequently doing a forced
style calculation due to getBoundingClientRect() from offset().
Move this to an animation frame instead and re-order the statements
so that DOM reads go before DOM writes.
Change-Id: I7c6201dc8d4e3227e01b75e853b6e4dc9a734031
Timo Tijhof [Wed, 4 Oct 2017 20:10:57 +0000 (21:10 +0100)]
mediawiki.notification: Refactor $.ready handler and init()
* Merge code from $.ready handler into init().
This makes it more obvious in which order the code runs, and
makes it easier to make perf fixes in the next commit.
* Move updateAreaMode() to the start of the init() function.
Change-Id: I088446e17c2dc8ed88742bfeae80352444126e88
jenkins-bot [Wed, 4 Oct 2017 21:04:52 +0000 (21:04 +0000)]
Merge "Remove perf tracking code that was moved to WikimediaEvents in Ib300af5c"
jenkins-bot [Wed, 4 Oct 2017 20:58:42 +0000 (20:58 +0000)]
Merge "RCFilters: Allows specifying default highlights from the server"
Stephane Bisson [Wed, 4 Oct 2017 12:52:25 +0000 (08:52 -0400)]
RCFilters: Allows specifying default highlights from the server
Bug: T172757
Change-Id: I0545b4e0222e14be99d567e7890ccf33722a5d1e
Timo Tijhof [Wed, 4 Oct 2017 20:08:46 +0000 (21:08 +0100)]
mediawiki.notification: Use css() instead of slow show()/hide()
There is a lot of complexity and overhead involved with show()
and hide() methods for back-compat and edge cases that we don't
want to involve here (such as storing the last known display,
figuring out the default display, dealing with elements hidden
by default via CSS rules etc.).
We know the stylesheet does not hide the element by default, so
we merely need to set or unset the 'display: none;' inline style.
Ref T159911.
Change-Id: Ia22a2adddddf8514368124d93e3a753440814d97
Translation updater bot [Wed, 4 Oct 2017 19:54:24 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I348badd5ddcd70157dd07c87717b6f64cfcafb3e
jenkins-bot [Wed, 4 Oct 2017 19:06:12 +0000 (19:06 +0000)]
Merge "RCFilters: Avoid adding raw filter and group objects to js vars"
Aaron Schulz [Wed, 4 Oct 2017 18:24:11 +0000 (11:24 -0700)]
Make Database::rollback() also suppress callback errors
This is consistent with query error suppression, let the
listener callbacks have a chance to run. This also makes
LoadBalancer::rollbackMasterChanges move on to the other
connections.
Change-Id: Ic8b9dd4b868bfe69b04fb20f7be5fce11d864fc4
Marius Hoch [Wed, 4 Oct 2017 16:10:27 +0000 (18:10 +0200)]
CLI: Make sure we don't exit with 0 when an exception is encountered
I registered the additional shutdown function for CLI only
as it shouldn't have effect otherwise.
Bug: T177414
Change-Id: I440d294eef5e307743cfc7f5ab3b531e8c973873
jenkins-bot [Wed, 4 Oct 2017 15:57:11 +0000 (15:57 +0000)]
Merge "Update OOjs UI to v0.23.3"
Stephane Bisson [Wed, 4 Oct 2017 15:06:16 +0000 (11:06 -0400)]
RCFilters: Avoid adding raw filter and group objects to js vars
Bug: T176236
Change-Id: I0c68ea0e090cfb065d2e3e8acad7025c61c344ca
Aleksey Bekh-Ivanov (WMDE) [Tue, 26 Sep 2017 12:01:30 +0000 (14:01 +0200)]
Fix inability of fetching message object
Fatal error was happening due to the fact that ApiUsageException was
trying to call `getMessage()` on StatusValue which doesn't have this
method.
Change-Id: Idd9c7d47d9e24a6a32db6daf75a827bf958c9b76
Reedy [Wed, 4 Oct 2017 13:13:26 +0000 (14:13 +0100)]
Remove some old mysql 4 messages from installer i18n files
Bug: T34217
Change-Id: Id9859769235a03229f962545cef6786f5e700c71
Max Semenik [Sat, 9 Sep 2017 06:10:09 +0000 (23:10 -0700)]
Inject dependencies into Shell\Command
This slightly changes how execution time limits fall back on each other.
Change-Id: I7754a9e6be9638eebe90cb953adb8e2a6ee97cef
Volker E [Wed, 4 Oct 2017 01:41:52 +0000 (18:41 -0700)]
Update OOjs UI to v0.23.3
Release notes:
https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.23.3
Depends-on: Ica85dce164ab0ff269ca26ac078ea245219ad4c1
Change-Id: Ied8d6d6dfa9965912c17e0573fec33d2b67a5027
jenkins-bot [Tue, 3 Oct 2017 23:28:38 +0000 (23:28 +0000)]
Merge "Support uploads with UTF-8 names on Windows"
Brion Vibber [Tue, 3 Oct 2017 22:15:15 +0000 (15:15 -0700)]
Support uploads with UTF-8 names on Windows
On PHP 7.1 and later, filesystem functions on Windows
use the Unicode system functions, which makes our file
handling work for non-ASCII file names.
Previously this was blacklisted for Windows on all PHP
versions. Versions before 7.1 will still reject Unicode
filenames with non-ASCII chars.
Bug: T3780
Change-Id: I94377faa5185f133be2dfb7b9b6aeacbd582834f
Chad Horohoe [Tue, 3 Oct 2017 22:50:12 +0000 (15:50 -0700)]
Remove some remaining mentions of unstubbing from core
Change-Id: Ife34335db7afd9bd4f0936cb90be227d7c4c9651
jenkins-bot [Tue, 3 Oct 2017 22:09:15 +0000 (22:09 +0000)]
Merge "RCFilters: Init highlight button based on model state"
Chad Horohoe [Tue, 3 Oct 2017 21:26:18 +0000 (14:26 -0700)]
Stop stubbing StubUserLang
Stub objects are confusing as heck and are a performance optimization
that really aren't fit for the modern era. They were designed to avoid
loading the actual code from the disk back in the days when bytecode
caching wasn't always gonna be there.
It's 2017. If you're using HHVM, you've got a bytecode cache. If you're
using any reasonably recent version of PHP then you've got the opcode
caching enabled by default in basically every distro-related build.
Nothing actually relies on this object being a stub (that'd be silly),
so only references are basically things force unstubbing (also kind of
silly) the object. Once remaining code referencing this in extensions
are all cleaned up then we can remove the class itself.
Change-Id: I15df24aeeb729e8e764792daa933377f35042fab
jenkins-bot [Tue, 3 Oct 2017 20:51:51 +0000 (20:51 +0000)]
Merge "RCFilters: Convert saved queries from filters to parameters"
jenkins-bot [Tue, 3 Oct 2017 20:30:29 +0000 (20:30 +0000)]
Merge "Add SECURITY"
Stephane Bisson [Tue, 3 Oct 2017 15:29:04 +0000 (11:29 -0400)]
RCFilters: Init highlight button based on model state
Bug: T177028
Change-Id: Idea7e09152e3176084f0634d24615a79364d77bb
Translation updater bot [Tue, 3 Oct 2017 20:11:24 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Id856ec22448bbe6d788185bbfbe020bb387d8a56
Kunal Mehta [Tue, 3 Oct 2017 20:03:35 +0000 (13:03 -0700)]
Add SECURITY
Intended for people who aren't familiar with our projects. To avoid
duplicating any information, just link to the wiki page that contains
information on how to report security issues.
Bug: T158119
Change-Id: I8eb05688cc028ba2b4b467fc464b590da0e60b0b
jenkins-bot [Tue, 3 Oct 2017 20:02:19 +0000 (20:02 +0000)]
Merge "TitleWidget: Only apply padding fix to withImages mode"
Ed Sanders [Sun, 1 Oct 2017 12:15:38 +0000 (13:15 +0100)]
TitleWidget: Perform diacritic-insensitive highlighting
Change-Id: Ib92877e4afa45f73bb086c04946f5c1d0c99ed6f
jenkins-bot [Tue, 3 Oct 2017 19:49:48 +0000 (19:49 +0000)]
Merge "TitleOptionWidget: Don't show an icon when showImages=false"
jenkins-bot [Tue, 3 Oct 2017 19:49:44 +0000 (19:49 +0000)]
Merge "mw.widgets.SearchInputWidget: Avoid overriding getOptionWidgetData"
jenkins-bot [Tue, 3 Oct 2017 18:46:52 +0000 (18:46 +0000)]
Merge "Remove 'Browser default' editfont option"
jenkins-bot [Tue, 3 Oct 2017 18:12:37 +0000 (18:12 +0000)]
Merge "mediawiki.searchSuggest: Add support for search namespace preferences"
Paladox [Sun, 15 Jan 2017 18:18:29 +0000 (18:18 +0000)]
mediawiki.searchSuggest: Add support for search namespace preferences
This way it allows namespaces other then NS_MAIN.
Bug: T26214
Change-Id: I6a545eb8563e81a66de39a8295ef2e40c3e73f95
Kunal Mehta [Tue, 15 Aug 2017 20:00:27 +0000 (13:00 -0700)]
OutputPage: Turn html5shiv into a raw ResourceLoader module
This lets us take advantage of ResourceLoader's on the fly minification
rather than needing to ship a minified copy, which is problematic for
other distributions like Debian.
Because the startup module excludes raw modules, it is not possible to
load or depend upon this module, and trying to use
`mw.loader.load('html5shiv')` for example will throw an exception.
This follows-up
3a30e03645f895b.
Change-Id: I635e224fb043c614c4918771c7c8f836575c683b
Timo Tijhof [Tue, 3 Oct 2017 17:18:49 +0000 (18:18 +0100)]
resourceloader: Add unit test for ClientHtml::makeLoad sync=>true
Used by Special:JavaScriptTest, and we may need to use this
in OutputPage as well (for html5shiv).
Change-Id: If7d7c12056dc3aab78486050f0798d42b158d9a9
Timo Tijhof [Tue, 3 Oct 2017 17:10:02 +0000 (18:10 +0100)]
phpunit: Include all raw modules in detection of illegal dependencies
* Use getStartupModules() instead of hardcoding these two module names.
* Also collect any other module that is registered with raw=>true.
Change-Id: I5f75cc8f99b90f58d76b7e87f068f50f9f608ed0
jenkins-bot [Tue, 3 Oct 2017 15:57:09 +0000 (15:57 +0000)]
Merge "Add a help button to the Tagged Edits menu"
jenkins-bot [Tue, 3 Oct 2017 15:52:29 +0000 (15:52 +0000)]
Merge "Change "Advanced filters" label color"
jenkins-bot [Tue, 3 Oct 2017 15:06:13 +0000 (15:06 +0000)]
Merge "SpecialBlock: Tweaks for OOUI HTMLForm"
Ed Sanders [Tue, 3 Oct 2017 15:04:54 +0000 (16:04 +0100)]
TitleWidget: Only apply padding fix to withImages mode
Change-Id: I60d0c3169cede2251595d68649c76823ea77afe9
Ed Sanders [Tue, 3 Oct 2017 14:52:13 +0000 (15:52 +0100)]
TitleOptionWidget: Don't show an icon when showImages=false
Change-Id: Ib4262bc15a3845ec9e7af484dbdfa4277f2f4014
Ed Sanders [Tue, 3 Oct 2017 14:42:19 +0000 (15:42 +0100)]
mw.widgets.SearchInputWidget: Avoid overriding getOptionWidgetData
This means we don't have to track upstream changes to the method.
Change-Id: I44739eefae4d47aeee9f506e0d99e605da4fb961
Bartosz Dziewoński [Tue, 3 Oct 2017 13:44:30 +0000 (15:44 +0200)]
SpecialBlock: Tweaks for OOUI HTMLForm
* Expand both the dropdown and textfield of "Reason" field to the
usual maximum width and display them on separate lines.
* Fix autohiding of form fields where applicable (checkboxes that only
apply when blocking a user or an IP address).
* Fix bolding of the "Confirm block" label when blocking yourself.
Follow-up to
d56758e134358fdac3f8dda16417bfd30f78bab9.
Bug: T107036
Change-Id: Ia5c54e518de99a79f5319c42ccf1a9a0e31ad471
petarpetkovic [Tue, 3 Oct 2017 11:45:03 +0000 (13:45 +0200)]
Change "Advanced filters" label color
Change "Advanced filters" label color to Base20 (#54595D),
fixing monobook skin low contrast.
Bug: T172733
Change-Id: Idb1b9ad7120c387482f8df7fcad8508f2a95139e
petarpetkovic [Tue, 3 Oct 2017 11:04:55 +0000 (13:04 +0200)]
Add a help button to the Tagged Edits menu
Bug: T176661
Change-Id: Ia295633dcf96a5466650620ef6e5cef766d19988
Željko Filipin [Tue, 3 Oct 2017 09:17:39 +0000 (11:17 +0200)]
Selenium tests should log in before creating pages
MediaWiki Vagrant by default allows creating pages to anonymous users,
but other environments, like Beta Cluster, require user to log in
before creating pages.
Bug: T176315
Change-Id: I34eeaf3cc22a64be6580aa483b28885137ba60b6
Translation updater bot [Mon, 2 Oct 2017 20:14:52 +0000 (22:14 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I75b3048eb0491d6e67a2a3cdf34b47791bd6baed
Roan Kattouw [Mon, 2 Oct 2017 19:07:57 +0000 (12:07 -0700)]
Reapply "RCFilters: Don't apply/clear highlights 66 times"
Reverts
84ddcd5d23, reapplies
212d67c67.
The original version broke the highlight color circles, this fixes it
by using enable instead of this.highlightEnabled to pass down to the
items. The former was always false, so it didn't actually propagate
the state down correctly.
Bug: T177107
Change-Id: I341d9bcd39252eac07bfebfa6d46895bc62c372f
jenkins-bot [Mon, 2 Oct 2017 18:34:38 +0000 (18:34 +0000)]
Merge "Revert "RCFilters: Don't apply/clear highlights 66 times""
Catrope [Mon, 2 Oct 2017 18:24:33 +0000 (18:24 +0000)]
Revert "RCFilters: Don't apply/clear highlights 66 times"
Breaks highlight display
This reverts commit
212d67c67e153f95fd2eb49a75b7ece27d794b53.
Change-Id: Ia0111bd35a40df56122a5b8c483de1be35609911
jenkins-bot [Mon, 2 Oct 2017 17:41:41 +0000 (17:41 +0000)]
Merge "Updated type and function docs for MagicWord.php"
jenkins-bot [Mon, 2 Oct 2017 16:36:49 +0000 (16:36 +0000)]
Merge "TitleWidget: Use OOUI query highlighting, instead of jQuery lib"
Umherirrender [Mon, 2 Oct 2017 11:52:17 +0000 (13:52 +0200)]
Updated type and function docs for MagicWord.php
Change-Id: I46ebd315a99b1677ff89ba392c0072b41bbeb36d
jenkins-bot [Mon, 2 Oct 2017 09:09:19 +0000 (09:09 +0000)]
Merge "SpecialBlock: Switch to OOUI form"
jenkins-bot [Mon, 2 Oct 2017 09:06:58 +0000 (09:06 +0000)]
Merge "Enable IP ranges in HTMLUserTextField"
jenkins-bot [Mon, 2 Oct 2017 04:44:08 +0000 (04:44 +0000)]
Merge "Remove unneeded js module in SpecialUnblock"
Seb35 [Fri, 15 Sep 2017 08:29:13 +0000 (10:29 +0200)]
Improve GitInfo for reading packed refs
GitInfo only reads branches in files /refs/heads/*; it should also
read those in /.git/packed-refs.
There are 4 tests in this commit to test this new "feature" and add some
code coverage to other methods. Given this class tests Git behaviour and
MediaWiki itself is versioned with Git, the test data are created during
the tests and removed at the end to avoid interference with Git as CVS.
Bug: T155747
Change-Id: Icccdf3ec797788582f836e2d8e267a1d714d50dc
jenkins-bot [Sun, 1 Oct 2017 21:59:39 +0000 (21:59 +0000)]
Merge "mw.loader: Return consistent object shape from splitModuleKey()"
Umherirrender [Sat, 16 Sep 2017 12:34:15 +0000 (14:34 +0200)]
Allow duplicate articles in parser tests with same content
Some extensions needs Template:(( in the parser tests,
but when using phpunit tests all pages are created at the begin,
which gives errors like
'duplicate article 'Template:((' at
/Arrays/arrayLoopsInteractionParserTests.txt:10
Change-Id: Iefa3dc8d647d58f2d5382b847bbd6228f46faff3
jenkins-bot [Sun, 1 Oct 2017 20:51:31 +0000 (20:51 +0000)]
Merge "Avoid double escaping headers in InfoAction"
jenkins-bot [Sun, 1 Oct 2017 20:50:07 +0000 (20:50 +0000)]
Merge "Clean up wiki ID and DB domain ID handling"
Translation updater bot [Sun, 1 Oct 2017 19:55:27 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I9d12a53dfbb3eb90cae81cd670f94cb5305e3ff4
Ed Sanders [Sun, 1 Oct 2017 12:14:40 +0000 (13:14 +0100)]
TitleWidget: Use OOUI query highlighting, instead of jQuery lib
Change-Id: I75ee7b3da74bdf9638c442322b699d22b4fee74c
jenkins-bot [Sat, 30 Sep 2017 23:45:11 +0000 (23:45 +0000)]
Merge "Check requirements for parser test suite in phpunit tests"
jenkins-bot [Sat, 30 Sep 2017 23:44:57 +0000 (23:44 +0000)]
Merge "build: Updating mediawiki/mediawiki-codesniffer to 13.0.0"
Translation updater bot [Sat, 30 Sep 2017 19:54:25 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Ic025a6a40c6af463475b0e50ce14a20ea17243f6
Timo Tijhof [Sat, 30 Sep 2017 17:50:53 +0000 (18:50 +0100)]
mw.loader: Use Array#indexOf directly instead of jQuery.inArray
Unlike other jQuery methods (which are quite often significantly
faster or slower than native methods), jQuery.inArray is quite
literally a wrapper around Array#indexOf. Use it directly where
possible.
Also:
* Replace `$.inArray(val, [a, b]) !== -1` pattern
with `val === a || val === b` which is upto 10x faster.
* mw.loader.store.set.: Remove redundant parenthesis in nested expression.
Change-Id: Ia2b922b3245bfb39b609b57e84938317e9c89cd6
Timo Tijhof [Sat, 30 Sep 2017 17:35:13 +0000 (18:35 +0100)]
mw.loader: Return consistent object shape from splitModuleKey()
This is used in mw.loader.implement() in a truthy check before
assigning as value of `registry[module].version`.
Both implicit undefined and empty string are falsey so the
behaviour is unchanged.
This reduces shape variability for JS engines, and also avoid
potential mistakes if the function is used elsewhere since
internally the registry, as maintained by mw.loader.register(),
uses empty string as default for version, not undefined.
Change-Id: I067137557a55d521fefa40986373e55b6bbb59ff
Aaron Schulz [Mon, 25 Sep 2017 10:37:13 +0000 (12:37 +0200)]
Clean up wiki ID and DB domain ID handling
Bug: T174017
Change-Id: I42299a393c6691d39817db1d83a176a17df2474b
jenkins-bot [Sat, 30 Sep 2017 02:09:46 +0000 (02:09 +0000)]
Merge "RCFilters: Don't apply/clear highlights 66 times"