Commit graph

73804 commits

Author SHA1 Message Date
Bartosz Dziewoński
7128b5dccf .mailmap, CREDITS: Correct Alexandre Emsenhuber's (IAlex) name
Change-Id: I129fdefecced2092e201a27af131109c5e253712
2016-11-21 16:02:41 +01:00
Bartosz Dziewoński
e1ae296667 .mailmap: Correct typos in introduction
Change-Id: Ib37b486639ab43aeb158b7ff36cecdff8fd0e571
2016-11-21 16:02:39 +01:00
Reedy
2f5ee95188 registration: FileExtensions should be an array, not an object
Change-Id: Iff44a4c241ab953906a7b0611f09e66856b1f7dc
2016-11-21 05:54:48 +00:00
Translation updater bot
3e2533695e Localisation updates from https://translatewiki.net.
Change-Id: I00eb99c8834b2e77cd753437444048939910d4cf
2016-11-20 21:57:44 +01:00
Translation updater bot
5a87ec27fc Localisation updates from https://translatewiki.net.
Change-Id: Idc1396aa25ce815c796598f4d889a1c2a1972416
2016-11-19 21:54:08 +01:00
jenkins-bot
6fce2ba116 Merge "mw.loader: Use for-loop instead of $.each()" 2016-11-19 00:41:15 +00:00
jenkins-bot
de19ed1823 Merge "resourceloader: Remove unused getPosition() code" 2016-11-19 00:14:19 +00:00
jenkins-bot
fba48c6dae Merge "content: Use Language::factory( 'en' ) instead of wfGetLangObj( 'en' )" 2016-11-18 22:53:48 +00:00
Fomafix
9d12d0749c content: Use Language::factory( 'en' ) instead of wfGetLangObj( 'en' )
'en' is a static value so wfGetLangObj always calls Language::factory.

Change-Id: I22df4f7321ffa3e62a552bd2f449bf27feb5c042
2016-11-18 22:43:40 +00:00
jenkins-bot
1f83b42429 Merge "Remove last remnants of pre-1.16 live preview" 2016-11-18 21:56:35 +00:00
Timo Tijhof
eaa2d28310 mw.loader: Use for-loop instead of $.each()
Change-Id: Iec632e90062f611add7b16b2f6f8fe839361be62
2016-11-18 13:18:43 -08:00
jenkins-bot
b330e5a736 Merge "Add 'tests' testsuite" 2016-11-18 21:14:47 +00:00
jenkins-bot
d1f572501b Merge "Allow stashing of unset globals in MWTestCase" 2016-11-18 21:09:35 +00:00
jenkins-bot
f4d9004bf0 Merge "Add $specialPageAliases for Bengali (bn)" 2016-11-18 21:00:44 +00:00
Translation updater bot
497d02b7ad Localisation updates from https://translatewiki.net.
Change-Id: Ibcd3105fe50f948278e7b039c9140e896f01b700
2016-11-18 21:52:59 +01:00
addshore
87b59b2b91 Add 'tests' testsuite
This also fixed the testLoggersAreRestoredOnTearDown
test which was broken, and factors it out into
3 seperate tests

Bug: T151081
Change-Id: I00d29b501fa84db22e3bcd3d5642c49b2e99d4a0
2016-11-18 19:41:27 +00:00
jenkins-bot
90558d5b91 Merge "Make insertRedirectEntry() use upsert() to reduce contention" 2016-11-18 19:21:05 +00:00
jenkins-bot
eb5af5346d Merge "Rename getSlaveDB() FileRepo method to getReplicaDB()" 2016-11-18 19:14:27 +00:00
Aaron Schulz
bee07f1578 Make insertRedirectEntry() use upsert() to reduce contention
Bug: T150453
Change-Id: I89705b954d5ddaf337e57fcfd02691edaa32ec83
2016-11-18 19:04:39 +00:00
Timo Tijhof
189c906062 resourceloader: Remove unused getPosition() code
Unused as of bc374082fa (T109837).

Change-Id: I1d8f7109bbe49700f1824fdce0439e958e84f6fa
2016-11-18 19:02:12 +00:00
jenkins-bot
5111bd2def Merge "Add 'autocomplete' option to HTMLTextField" 2016-11-18 18:41:16 +00:00
jenkins-bot
fd88074bbf Merge "Add hooks to Special:TrackingCategories" 2016-11-18 18:28:56 +00:00
Aaron Schulz
f525c72590 Rename getSlaveDB() FileRepo method to getReplicaDB()
The old name is left as an alias.

Change-Id: I60ab2cd5ce05df4247d5e25b017d2debee56554e
2016-11-18 07:42:39 -08:00
addshore
d544acdbbb Allow stashing of unset globals in MWTestCase
Change-Id: I6a1cf9a2e436978a6068cecdaf74aa58b31100ab
2016-11-18 14:59:49 +00:00
jenkins-bot
e25ddecff4 Merge "mw.loader: For using() errors, reject Promise instead of throwing" 2016-11-18 09:35:30 +00:00
Reedy
ad86dda42f registration: Set "FileExtensions" to $GLOBALS
Change-Id: Ie52004d25ebc06c81cd7d8d7de60479ff365ccea
2016-11-17 23:24:42 +00:00
Reedy
34e549ff61 registration: Support setting $wgPasswordPolicy in extension.json
Bug: T149597
Change-Id: I56c0b8932fcd42ec9b748529daa32a998fb19bf8
2016-11-17 22:46:32 +00:00
jenkins-bot
aec35d57fc Merge "eslint: Re-enable valid-jsdoc and make a pass" 2016-11-17 21:15:28 +00:00
Timo Tijhof
7e2e2db806 mw.loader: For using() errors, reject Promise instead of throwing
The "Unknown module" and "Circular dependency" errors both come from the
resolve() function. Add a try/catch around that and reject the promise
if caught.

Bug: T131612
Change-Id: I900909cd00df6a51f3bf1f3df91bdb610c11c446
2016-11-17 13:08:08 -08:00
Ed Sanders
2231d4e859 eslint: Re-enable valid-jsdoc and make a pass
Change-Id: I5c3c942d5a9c51628619227c4bbaefd1d92a842d
2016-11-17 13:06:07 -08:00
Translation updater bot
1855b6ff90 Localisation updates from https://translatewiki.net.
Change-Id: I043af13a04eda33e421557da4766fc1d898ea508
2016-11-17 22:03:19 +01:00
Gergő Tisza
8f17b09a9f Add 'autocomplete' option to HTMLTextField
Adds support for the 'autocomplete' HTML attribute to HTMLTextField
(mainly for turning it off, but other values are supported as well).
Renames 'autocomplete' to 'autocomplete-data' (with temporary B/C)
in HTMLAutoCompleteSelectField to make space.

Change-Id: Ic0539d5a61d9862e670d10686adc1e41f65d908e
2016-11-17 19:50:38 +00:00
jenkins-bot
b90fa4201a Merge "resourceloader: Remove top/bottom queue distinction" 2016-11-17 14:27:07 +00:00
jenkins-bot
3c7c900d23 Merge "Add GENDER support for "you are blocked" messages in ChangeTags" 2016-11-17 08:46:19 +00:00
jenkins-bot
3c108c8f46 Merge "Use different varname for upgraded hash from original hash" 2016-11-17 06:43:37 +00:00
jenkins-bot
bcea7fcb1c Merge "resourceloader: Add tests to verify empty string works" 2016-11-17 01:46:03 +00:00
Timo Tijhof
6f5cb7d42b resourceloader: Add tests to verify empty string works
It's not explicitly supported anywhere, but I don't see a point in explicitly
disallowing it. Add unit tests to verify that this works.

Bug: T28804
Change-Id: I876ac43885bb27da54ef6e59b6416868ff636b84
2016-11-16 17:15:04 -08:00
jenkins-bot
81a45b2b0e Merge "Fix UserTest case that was missing a cache purge" 2016-11-17 01:12:06 +00:00
Aaron Schulz
a1e5fd85a0 Fix UserTest case that was missing a cache purge
The process cache is based on blind-TTL, so purge it to
test the persistent cache properly.

Change-Id: I8ee78a1e73bf5164e74b1e8a23559c2e91bba6dd
2016-11-16 16:38:09 -08:00
jenkins-bot
b1a6630244 Merge "Skin: Reduce database queries for footer links on every page" 2016-11-17 00:31:48 +00:00
jenkins-bot
a9ea7f391c Merge "Password list only has 10,000 passwords, not 50k" 2016-11-16 21:25:56 +00:00
Translation updater bot
249ed2ffa8 Localisation updates from https://translatewiki.net.
Change-Id: I50135dc784bb7e110e08f5216db755a4c052ae05
2016-11-16 22:10:52 +01:00
Reedy
1c8ef45f2d Password list only has 10,000 passwords, not 50k
Follows up I26a9e8f2318a1eed33d7638b125695e8de3a9796

Change-Id: I15a02289d35c4c22091fc6c64d91f1ba7f89e495
2016-11-16 21:09:11 +00:00
Timo Tijhof
e99e98aa73 Skin: Reduce database queries for footer links on every page
When viewing Special:Blankpage there are still 6 database queries
on every page view. 3 of these are from the Skin:

	> $tpl->set( 'disclaimer', $this->disclaimerLink() );
	> $tpl->set( 'privacy', $this->privacyLink() );
	> $tpl->set( 'about', $this->aboutLink() );

In Wikimedia production, Xenon flame graphs (reversed) for index.php
attribute 22% of LinkCache::fetchPageRow calls to Skin::footerLink().

Add them to Skin::preloadExistence() instead.

Change-Id: I61c285be08a2130fb39b75ca717ea83f297c4489
2016-11-16 13:00:08 -08:00
niharika29
7665985070 Add var to User class to store block type for eventlogging purposes
Bug: T146230
Change-Id: I70b54243a3018191a4e0cc311e90f66d240e1813
2016-11-16 19:43:27 +00:00
Timo Tijhof
bc374082fa resourceloader: Remove top/bottom queue distinction
* The styles queue has always been top-only
  (except for a few months in 2015).
* The top queue loads asynchronous since mid-2015. (T107399)
  And LocalStorage eval, previously the last remaining non-async part
  of module loading, is also async as of October 2016. (T142129)

* This change merges the bottom 'mw.loader.load()' queue with the top queue.
  It also moves any other snippets potentially in the bottom queue still:
  - embed: I couldn't find any private modules with position=bottom
     (doesn't make sense due to their blocking nature). If any do exist,
     (third-party extensions?), they'll now be embedded in the <head>.
  - scripts: Any legacy 'only=scripts' requests will now initiate
     from the <head>.

Bug: T109837
Change-Id: I6c21e3e47c23df33a04c42ce94bd4c1964599c7f
2016-11-16 19:29:16 +00:00
jenkins-bot
2196833990 Merge "LegacyLogger: Fix @return documentation for formatAsWfDebugLog()" 2016-11-16 19:24:19 +00:00
James D. Forrester
9ff1b4bf8e Follow-up 1cc3a57: Move changes from RELEASE-NOTES-1.28 to 1.29
1.28.0 has already branched and this won't be back-ported.

Change-Id: I1ac1bbc992c665accd3df512eeb6a40ee790ec41
2016-11-16 10:58:27 -08:00
Timo Tijhof
ecfd8c3934 LegacyLogger: Fix @return documentation for formatAsWfDebugLog()
Follows-up 81e8d7af4.

Change-Id: I04a1bb53e5d35434166596edda4cdb1fe189964b
2016-11-16 10:56:04 -08:00
jenkins-bot
44a9c1bf59 Merge "Send a cookie with autoblocks to prevent vandalism." 2016-11-16 18:44:20 +00:00