Alexandre Emsenhuber [Thu, 6 Feb 2014 00:14:51 +0000 (01:14 +0100)]
Send the full title to the 'nogomatch' debug log group
Otherwise the namespace gets lost when the user provides one.
Change-Id: I73f63e936ba53993ba40c89d7fa3d2b218a796a2
jenkins-bot [Wed, 26 Feb 2014 18:03:58 +0000 (18:03 +0000)]
Merge "Support interwiki searches in API"
jenkins-bot [Wed, 26 Feb 2014 15:06:05 +0000 (15:06 +0000)]
Merge "Put callback function within class in SiteConfigurationTest"
jenkins-bot [Wed, 26 Feb 2014 09:40:51 +0000 (09:40 +0000)]
Merge "Revert "DefaultSettings.php: Remove $wgPasswordSenderName""
jenkins-bot [Wed, 26 Feb 2014 07:07:56 +0000 (07:07 +0000)]
Merge "Removed pointless cache bypass in Swift backend"
TTO [Wed, 26 Feb 2014 06:06:17 +0000 (06:06 +0000)]
Revert "DefaultSettings.php: Remove $wgPasswordSenderName"
It seems that this variable is used by a whole
lot of extensions, so to remove it now would be
to break these other extensions.
This reverts commit
acda2cc90aea519f41c8ae55bc4d05f02072df84.
Change-Id: I2bd3078508c0608ff58bae4c9ec456e57c617da8
Mwalker [Wed, 26 Feb 2014 02:52:36 +0000 (02:52 +0000)]
Merge "Add test for BadTitleError exception"
Mwalker [Wed, 26 Feb 2014 02:50:23 +0000 (02:50 +0000)]
Merge "Add test for ThrottledError exception"
Aaron Schulz [Wed, 26 Feb 2014 01:40:53 +0000 (17:40 -0800)]
Removed pointless cache bypass in Swift backend
* This was added by mistake in
2af7ad8 apparently
Change-Id: Ic4004428095953ce07e1e97da43748eba04f6639
jenkins-bot [Wed, 26 Feb 2014 01:11:42 +0000 (01:11 +0000)]
Merge "Add new Hook 'SendWatchlistEmailNotification'"
bsitu [Fri, 21 Feb 2014 01:40:29 +0000 (17:40 -0800)]
Add new Hook 'SendWatchlistEmailNotification'
Bug: 53569
Change-Id: I73d5eef9a18d59b022c353c4b7d2aee18bfa6591
Brad Jorsch [Tue, 25 Feb 2014 15:04:30 +0000 (10:04 -0500)]
Remove STRAIGHT_JOIN from ApiQueryLogEvents
Per Sean Pringle:
> In all cases the STRAIGHT_JOIN forces an index scan on logging.times
> index, or more rarely a range access on logging.type_time index. Both
> query plans hit tens of millions of rows and take many minutes.
>
> Removing the STRAIGHT_JOIN allows the MariaDB query optimizer to
> choose a plan that takes seconds. Often it includes a filesort step,
> but more importantly it allows "index condition pushdown" which makes
> the filesort cheap.
Bug: 61889
Change-Id: Iad3905f29a2bdee1e3ebbfb2e1909b330faa8e81
Chad Horohoe [Wed, 12 Feb 2014 17:30:22 +0000 (09:30 -0800)]
Support interwiki searches in API
Adds new SearchResult methods for getting namespace text
Bug: 60975
Change-Id: I381c8681cabfa9ff7a73cbe0286ed32d267a5990
addshore [Tue, 25 Feb 2014 21:37:40 +0000 (22:37 +0100)]
Fix typo in MWExceptionHandlerTest
Change-Id: I9868155c05bc9ca708f72b0ede02d90612136db9
addshore [Tue, 25 Feb 2014 19:09:17 +0000 (20:09 +0100)]
Add test for BadTitleError exception
Change-Id: Ib7c5b9f385aa3fc3e68c55927b0cd5adc82ac1d1
addshore [Tue, 25 Feb 2014 19:07:06 +0000 (20:07 +0100)]
Add test for ThrottledError exception
Change-Id: Ia98d6c24ce56c6707a67498e26107250d427a3bf
Translation updater bot [Tue, 25 Feb 2014 21:05:45 +0000 (21:05 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: I1cdc5f6df47189ab35d141ed89a4c84cfac7fe18
Translation updater bot [Tue, 25 Feb 2014 19:43:20 +0000 (19:43 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: Icd5562293ec48bc3f62d5b0accea9dd857d78a48
jenkins-bot [Tue, 25 Feb 2014 18:50:22 +0000 (18:50 +0000)]
Merge "mediawiki.api: Fix documentation of ajax() to mention exposed jqXHR"
Bartosz Dziewoński [Thu, 23 Jan 2014 19:47:18 +0000 (20:47 +0100)]
mediawiki.notification: Hide #mw-notification-area when it's empty
We need to hide the area manually, since it has padding, causing it to
obscure whatever is behind it in spite of being invisible.
Bug: 52659
Change-Id: I54e51b392673bc361af4e7bf703df75b83d783d4
tonythomas01 [Tue, 25 Feb 2014 12:57:24 +0000 (18:27 +0530)]
Improved way to tick all namespaces when Select all is ticked
Follow up from Ie62b9186e98dd770de4282ea57d7248158a6e782
Co Author : Helder.Wiki
Change-Id: Iea336d40ac7d1271d4934797f74dabadea0cdafe
jenkins-bot [Tue, 25 Feb 2014 12:30:11 +0000 (12:30 +0000)]
Merge "Fix ForeignDBViaLBRepo favicon"
jenkins-bot [Tue, 25 Feb 2014 11:55:51 +0000 (11:55 +0000)]
Merge "Remove doc about a file that doesnt exist"
addshore [Tue, 25 Feb 2014 11:50:42 +0000 (12:50 +0100)]
Remove doc about a file that doesnt exist
Change-Id: I1bcf0a8a9a10906b6078c3f45f864359f6d32eda
Gergő Tisza [Tue, 18 Feb 2014 18:55:04 +0000 (18:55 +0000)]
mediawiki.api: Fix documentation of ajax() to mention exposed jqXHR
Fixes the documentation which got out of sync after I49977b5f9
changed the resolution of the promise to also pass the jqXHR.
Change-Id: Ifa9899c1e235af19c3df21337db97cb12b0b5806
umherirrender [Tue, 11 Feb 2014 18:50:34 +0000 (19:50 +0100)]
Document $wgResourceLoaderMaxage in DefaultSettings.php
To have a start and to remove the todo.
Change-Id: I62421f1399c0f3e77238c39322028b969c0e925f
jenkins-bot [Tue, 25 Feb 2014 00:49:31 +0000 (00:49 +0000)]
Merge "Add sequence support for upsert in DatabaseOracle"
jenkins-bot [Mon, 24 Feb 2014 22:52:38 +0000 (22:52 +0000)]
Merge "Add scope to Exception class methods"
jenkins-bot [Mon, 24 Feb 2014 22:52:24 +0000 (22:52 +0000)]
Merge "Split Exception.php"
Gergő Tisza [Mon, 24 Feb 2014 22:10:02 +0000 (22:10 +0000)]
Fix ForeignDBViaLBRepo favicon
Due to the weird inheritance structure of the FileRepo tree,
ForeignDBViaLBRepo inherited the wrong getInfo behavior and
returned the favicon of the local wiki.
Change-Id: I4892247c0e4a2e05c9148efe089f0ff52459bbd0
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/253
jenkins-bot [Mon, 24 Feb 2014 21:55:06 +0000 (21:55 +0000)]
Merge "Avoid key fragmentation in FileBackend"
jenkins-bot [Mon, 24 Feb 2014 21:52:02 +0000 (21:52 +0000)]
Merge "API: Add prop=redirects and list=allredirects"
Aaron Schulz [Mon, 24 Feb 2014 21:22:15 +0000 (13:22 -0800)]
Avoid key fragmentation in FileBackend
* Make sure that global backends do not prefix the cache keys
with local wiki IDs for container and file stat entries.
This causes fragmentation and breaks invalidation.
Change-Id: Ic02d6e41f828dc82cc07c7d24c8af29c46392a9c
Translation updater bot [Mon, 24 Feb 2014 20:55:48 +0000 (20:55 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: Ie74d3a5bd0aaf4b6231da21997d51361df696995
Translation updater bot [Mon, 24 Feb 2014 20:53:27 +0000 (20:53 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: I2535a33defbc75fdb860acac3c98a8511e064a0a
addshore [Mon, 24 Feb 2014 20:21:09 +0000 (21:21 +0100)]
Add scope to Exception class methods
Change-Id: I0097aa9a6d9c178c85706b90484f7a68d3ddbc8b
addshore [Mon, 24 Feb 2014 20:13:49 +0000 (21:13 +0100)]
Split Exception.php
Change-Id: I8273b342f8814887b65227457d0a461d7cd31e75
jenkins-bot [Mon, 24 Feb 2014 19:41:04 +0000 (19:41 +0000)]
Merge "Stop using and deprecate jquery.delayedBind"
jenkins-bot [Mon, 24 Feb 2014 18:21:21 +0000 (18:21 +0000)]
Merge "Remove another ss_active_users check from SiteStats::isSane"
jenkins-bot [Mon, 24 Feb 2014 18:06:39 +0000 (18:06 +0000)]
Merge "DefaultSettings.php: Remove $wgPasswordSenderName"
Bartosz Dziewoński [Mon, 24 Feb 2014 17:40:36 +0000 (18:40 +0100)]
DefaultSettings.php: Remove $wgPasswordSenderName
It doesn't do anything.
Follow-up to Ibfd28cd181365c8c0b5f3e8ffe8f5de8c89844a3.
Change-Id: Id20e4ec1cdae94fadb278146cd72d5a9b247dccf
umherirrender [Mon, 24 Feb 2014 17:17:35 +0000 (18:17 +0100)]
Remove another ss_active_users check from SiteStats::isSane
Also add a comment to method doc to make sure, nobody will add it again.
Follow-Up: Id8f1cb7035ae0058fb34a6c7bdf7bf9f6c740a69
Follow-Up: I268599be96106e1175fdf9750a2adc9468ebc93c
Change-Id: Ifd6da554b531720aace4497f7fbc2f58c12edc07
Bartosz Dziewoński [Sat, 8 Feb 2014 22:16:22 +0000 (23:16 +0100)]
Vector: Delete edit-icon.png
It's unused. It was added with the commit that added Vector itself
(r51086) and survived being recompressed four times since then.
Change-Id: Ia4124c2853ed98f3d0afacd3489f8b1cab0c4c16
Brad Jorsch [Mon, 30 Dec 2013 21:57:27 +0000 (16:57 -0500)]
API: Add prop=redirects and list=allredirects
While redirects can be sort-of queried using list=backlinks with
blfilterredir=redirects, we can get more accurate results with a module
dedicated to this purpose. We can also get the fragment of the redirect
without having to load the content of the redirect page and parse it.
I'm a bit surprised I was able to put together a query for this that
will work as a prop module. Or did I overlook something?
And then we may as well add the corresponding list=allredirects, to work
like alllinks, allfileusages, and alltransclusions.
Bug: 57057
Change-Id: I81082aa9e4e3a3b2c66cc4f9970a97eed83a6a4f
Bartosz Dziewoński [Sat, 22 Feb 2014 16:07:01 +0000 (17:07 +0100)]
jquery.suggestions, mediawiki.searchSuggest: Fix form submission
Don't override form submission behavior (by capturing the Enter key on
search box, preventing default behavior, and then manually submitting
the form); just let it happen if it's wanted.
Then swap out a few unjustified stopImmediatePropagation() calls to
stopPropagation() so that the event can be actually fired. Add some
comments while we're at it.
This allows the user to use Ctrl+Enter (or Shift+Enter) to submit the
form into a new tab (or new window) on browsers that support this
(currently Opera and Chrome).
Bug: 34756
Bug: 35974
Change-Id: I49ef7cc89400032505bc444f21d522d5b5d47586
Bartosz Dziewoński [Sat, 22 Feb 2014 16:06:53 +0000 (17:06 +0100)]
jquery.suggestions: Do not duplicate keypress logic
This is handled in keyup/keypress handlers, no need to repeat it twice.
Change-Id: I3ddcd21136b44eedcec53b1ecc91bad38f697402
jenkins-bot [Mon, 24 Feb 2014 14:56:03 +0000 (14:56 +0000)]
Merge "Fix possible error list for action=query&list=blocks"
jenkins-bot [Mon, 24 Feb 2014 14:53:04 +0000 (14:53 +0000)]
Merge "Ticking 'Search in all namespaces' in prefs should disable other checkboxes"
umherirrender [Tue, 11 Feb 2014 18:37:07 +0000 (19:37 +0100)]
Fix possible error list for action=query&list=blocks
possible errors for requireMaxOneParameter are generated with getRequireMaxOneParameterErrorMessages,
not getRequireOnlyOneParameterErrorMessages
Change-Id: Ia3d705ddf2f2d969b3112962a13f27dc9a106037
tonythomas01 [Fri, 31 Jan 2014 18:51:35 +0000 (00:21 +0530)]
Ticking 'Search in all namespaces' in prefs should disable other checkboxes
Ticking 'Search in all namespaces' will disable all other checkboxes
below. They will regain their original state once it is unticked.
Bug: 60285
Change-Id: Ie62b9186e98dd770de4282ea57d7248158a6e782
Marius Hoch [Sun, 23 Feb 2014 20:47:48 +0000 (21:47 +0100)]
Make SiteStats (re)initializing more sane
Don't set ss_active_users back to its default in SiteStatsInit::refresh.
Also remove SiteStatsInit::update and make refresh() protected.
Also don't consider ss_active_users in SiteStats::isSane as that value
isn't going to be fixed by the following SiteStatsInit::refresh call.
Change-Id: I268599be96106e1175fdf9750a2adc9468ebc93c
Translation updater bot [Sun, 23 Feb 2014 21:43:18 +0000 (21:43 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: I11ac7d4aeadddc7f20f44b98a9c08c8f20019ee6
Bartosz Dziewoński [Sun, 23 Feb 2014 18:44:04 +0000 (19:44 +0100)]
Resources.php: Create a section for MediaWiki UI
The modules were placed under MediaWiki Legacy…
Change-Id: I36d8753689a286a7cb6a0df128ce0e1e3d7ee780
Alex Ivanov [Wed, 11 Dec 2013 00:34:38 +0000 (02:34 +0200)]
Add personal tools messages for messages login, userlogout, createaccount
Add personal tools messages for:
* login -- pt-login
* userlogout -- pt-userlogout
* createaccount -- pt-createaccount
Those messages shouldn't be used as personal tools messages.
Bug: 52861
Change-Id: I8fb229b15c4736945db46672b42a26fd7dafb5f6
jenkins-bot [Sat, 22 Feb 2014 20:07:10 +0000 (20:07 +0000)]
Merge "Add test to complete coverage of getStatusArray"
jenkins-bot [Sat, 22 Feb 2014 20:02:43 +0000 (20:02 +0000)]
Merge "Add unit test for Status __wakeup"
Bartosz Dziewoński [Sat, 22 Feb 2014 19:19:49 +0000 (20:19 +0100)]
Stop using and deprecate jquery.delayedBind
Reasons:
* It provides the same functionality as jquery.throttle-debounce, but
in a hackier and less flexible way
* It's (to my knowledge) not used outside of core, while
jquery.throttle-debounce is - deciding on one can lower the payload
size a little bit
* It's a custom library and we have too many of those
Only two modules in core were using it:
* jquery.expandableField: It was, in fact, used incorrectly, the code
needs a simple setTimeout / clearTimeout pair with no debouncing.
The bug made it possible to keep focus on a field while it was
unexpanded (by quickly triggering blur and focus events in order).
* skins.vector.js: Straightforwardly converted the usage to a
$.debounce call. Also fixed a bug where the window resize handler
was bound for each $.fn.collapsibleTabs call instead of once.
The module will be removed in MediaWiki 1.24:
Ifc84b09a78007a6a0ea5676b0f12a38937dca2e7.
Change-Id: I83ba37a9568a171d9f3654f6bfdb6064e0e65bd4
jenkins-bot [Sat, 22 Feb 2014 16:56:27 +0000 (16:56 +0000)]
Merge "CSSJanus: Account for attribute selectors in brace lookahead"
Sorawee Porncharoenwase [Sat, 22 Feb 2014 16:05:38 +0000 (16:05 +0000)]
Prevent Special:Diff from processing empty string
Umherirrender found that I77fdaf8e has a flaw. Currently it is possible
to go to index.php?title=Special:Diff (without any trailing string),
and the page will be redirected to index.php?diff= which is the last diff
of the main page. However, the intended way to deal with this case is to
raise ErrorPageError. This patch fixes the problem.
Change-Id: I3ff0b11671f27e77d9068930338ec8bbb674a89f
addshore [Sat, 22 Feb 2014 11:00:18 +0000 (12:00 +0100)]
Add test to complete coverage of getStatusArray
Change-Id: Ia2f9b5a723d85d19ee7a24fcf9b132d0289705f0
addshore [Sat, 22 Feb 2014 10:41:17 +0000 (11:41 +0100)]
Add unit test for Status __wakeup
Change-Id: I5f116bc7df5932d6f5aeed7b81680cc08e243d0f
James D. Forrester [Sat, 22 Feb 2014 03:43:34 +0000 (19:43 -0800)]
Update OOjs UI to v0.1.0-pre (
ddcf828854)
New changes:
12c3ead Localisation updates from https://translatewiki.net.
520b00a Add autosize option to OO.ui.TextInputWidget
cf3b31f [BREAKING CHANGE] Refactor dialog and window sets
57f95fe Add OO.ui.InlineMenuWidget
Change-Id: Ic85e5816ae674a669d1fdc1c860378c14ffe7f46
jenkins-bot [Sat, 22 Feb 2014 03:42:41 +0000 (03:42 +0000)]
Merge "Add scripts to generate update builds of OOjs and OOjs UI"
Translation updater bot [Fri, 21 Feb 2014 22:06:21 +0000 (22:06 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: I71e13fdbb541c2fccbe303849a3c78f0c1260bd2
csteipp [Fri, 21 Feb 2014 21:04:13 +0000 (13:04 -0800)]
Add note about user_password_expires schema change
Followup to I92a9fc63b409b182b1d7b48781d73fc7216f8061
Change-Id: Ibf19549a0c99fa3a369695861d7078e88e18331a
jenkins-bot [Fri, 21 Feb 2014 20:28:30 +0000 (20:28 +0000)]
Merge "Password Expiration"
jenkins-bot [Fri, 21 Feb 2014 14:40:14 +0000 (14:40 +0000)]
Merge "UploadStash us_props fix for Postgres"
aude [Fri, 21 Feb 2014 09:58:36 +0000 (10:58 +0100)]
Add visibility to User functions
Change-Id: Ib2bea5ba8132e79345b46ec3e6db7576af07a007
jenkins-bot [Thu, 20 Feb 2014 21:52:02 +0000 (21:52 +0000)]
Merge "Support >2 and JSON-formatted options in parser tests."
Translation updater bot [Thu, 20 Feb 2014 20:44:52 +0000 (20:44 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: Ie1ce49320e2baf9daaa1b2b32dbe881c1e26026f
csteipp [Wed, 9 Oct 2013 18:09:28 +0000 (11:09 -0700)]
Password Expiration
Add functionality to expire users' passwords:
* Adds column to the user table to keep a password expiration
* Adds $wgPasswordExpirationDays, which will force users to reset
their passwords after a set number of days. By default, this set
to false, so passwords never expire.
* Adds a default grace period of 7 days, where if the user's password
is expired, they can still login, but are encouraged to reset their
password.
* Adds hook 'LoginPasswordResetMessage' to update reset message, in
case an extension wants to vary the message on a particular reset
event.
* Adds hook 'ResetPasswordExpiration' to allow extensions to change
the expiration date when the user resets their password. E.g., if
an extension wants to vary the expiration based on the user's group.
If the user is in the grace period, they get a password reset form
added to the login successful page. If an extension prevents showing
the login successful page (like CentralAuth), it should be updated to
show a password change form during the grace period. After the grace
period, the user will not be able to login without changing their
password.
Also prevents a successful reset if the user is "changing" their
password to their existing password.
No passwords will expire by default. Sites will have to call
User->expirePassword() from their own maintenance script to trigger a
password reset for a user.
Bug: 54997
Change-Id: I92a9fc63b409b182b1d7b48781d73fc7216f8061
YuviPanda [Thu, 20 Feb 2014 15:06:59 +0000 (20:36 +0530)]
Make ApiCreateAccount return camelcase statuses
Bug: 61663
Change-Id: I214d8eb7c9d49f55f49c5228c92806601c5499f6
jenkins-bot [Thu, 20 Feb 2014 12:07:31 +0000 (12:07 +0000)]
Merge "Don't print mediawiki.notification messages"
Matthew Flaschen [Thu, 20 Feb 2014 03:24:48 +0000 (22:24 -0500)]
Break out rotation mixin into its own file
Before, including mediawiki.mixins always caused keyframes to appear
in the output, regardless of whether .rotation was used.
Change-Id: Ibdd092ccc6dafd444407a6756c33830396f56b50
Bartosz Dziewoński [Thu, 20 Feb 2014 11:27:54 +0000 (11:27 +0000)]
Merge "Add oojs-ui to the core documentation generator"
jenkins-bot [Thu, 20 Feb 2014 11:11:41 +0000 (11:11 +0000)]
Merge "QUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config"
jenkins-bot [Thu, 20 Feb 2014 09:53:06 +0000 (09:53 +0000)]
Merge "Remove undefined $env and TODO comment for it too"
Aaron Schulz [Thu, 16 Jan 2014 00:46:01 +0000 (16:46 -0800)]
Added concurrent HEAD request support for Swift
* This adds a new preloadFileStat() method to FileBackend.
* FileBackend::doOperations() makes use of this instead of primeFileCache().
The later was mostly useless due to the 'latest' flag, which stat entries
rarely had (and since they use add(), 'latest' ones do not override the
non-'latest' ones).
* Simplified primeContainerCache/primeFileCache to no longer accept
FileOp objects and made sure nothing passes those in anymore.
Change-Id: Iee3878cadd69c3a594c701c0aff81aab5f473de5
Bartosz Dziewoński [Sat, 1 Feb 2014 02:41:49 +0000 (03:41 +0100)]
mediawiki.notification: Return the Notification object from .notify calls
The implementation is solid, stable and already includes sanity checks
that make it difficult to shoot oneself in the foot.
This essentially makes the class no longer private; adjusted
documentation accordingly.
Bug: 57400
Change-Id: Icecc75e05a1f9a46e8de984c401a0292817d0d4c
Timo Tijhof [Thu, 20 Feb 2014 07:06:05 +0000 (08:06 +0100)]
QUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config
As of
89a8fe4, mw.log#warn is available in non-debug mode so that
e.g. MWDeprecationWarning are emitted whenever such property is
accessed.
Due to the way QUnit.newMwEnvironment makes a copy of the live
config for the duration of a test run (using $.extend) this
causes all the accessors to be triggered.
As a result the qunit log is inflated to 100s of MWDeprecationWarning
entries before every single test:
http://integration.wikimedia.org/ci/job/mediawiki-core-qunit/16525/console
Using Object.create (with polyfill) doesn't work since mw.Map#get
only resolves own properties.
Change-Id: I7285c56bd1ae7ef2efae15ee0427eeb77bc240ac
Matthew Flaschen [Thu, 13 Feb 2014 20:03:25 +0000 (15:03 -0500)]
Don't print mediawiki.notification messages
These are for transient notifications, so printing them does not make
sense.
Change-Id: Ia5eadcfcd4b98685e3c60a3a68f58b985d366b76
Reedy [Thu, 20 Feb 2014 03:47:25 +0000 (03:47 +0000)]
Remove undefined $env and TODO comment for it too
Change-Id: Ie69a68c8ff429ac79796890d1843cf2a2b9c32e8
Mark Holmquist [Thu, 20 Feb 2014 00:42:52 +0000 (16:42 -0800)]
Add oojs-ui to the core documentation generator
Change-Id: I32dbfc69e96c8ab368aa480348f395ee1c0d8c0d
Brad Jorsch [Tue, 18 Feb 2014 20:28:06 +0000 (15:28 -0500)]
HTMLForm: Allow i18n of 'options'
One shortcoming in HTMLForm is that fields that use the 'options'
parameter (e.g. <select>) have no easy way for the individual labels to
be localized.
This change adds a new parameter type, 'options-messages', where the
keys are message keys rather than bare strings (similar to the
difference between 'label' and 'label-message'). It also abstracts out
the fetching of the various option parameters, and changes the necessary
field classes to use it.
Change-Id: If4175332405d26c7ff2e8fbe100bcad61762ce6f
Reedy [Tue, 18 Feb 2014 01:30:13 +0000 (01:30 +0000)]
Refactor out HTMLFormField class and type normalisation code
Also include fieldname when exceptioning over bad descriptor class
Change-Id: Ia612453625fdeb611875d5ffc724cef2abe4f776
Aaron Schulz [Wed, 29 Jan 2014 18:18:53 +0000 (10:18 -0800)]
UploadStash us_props fix for Postgres
* Follows up
c7f4586fe1e405e5ad8e4e504b024248a36eef57
Change-Id: I5a8568efaf0817ca743de722d5486457ff1a8d87
Translation updater bot [Wed, 19 Feb 2014 20:03:32 +0000 (20:03 +0000)]
Localisation updates from https://translatewiki.net.
Change-Id: Id88aa24093b40a87b6beee70d81124179f95f006
jenkins-bot [Wed, 19 Feb 2014 19:40:32 +0000 (19:40 +0000)]
Merge "Added some profiling calls to Swift backend"
jenkins-bot [Wed, 19 Feb 2014 19:20:50 +0000 (19:20 +0000)]
Merge "Unroll array_map in ResourceLoaderFileModule::readStyleFiles"
Timo Tijhof [Fri, 7 Feb 2014 02:36:53 +0000 (18:36 -0800)]
mediawiki.log: Move #warn and #deprecate to mediawiki.js and add tracking
* Moved #warn and #deprecate from mediawiki.log.js (only loaded
in debug mode) to main mediawiki.js.
This means warnings will now be available in the console at all
times instead of only when the user (re)loaded the page in
ResourceLoader's debug mode. Deprecation notices are generally
useful and should be discoverable from the console (just like
notices from the browser itself for JS and CSS).
It doesn't affect user experience as the notices invisible to
the page and sent to an appropiate view (e.g. developer console).
Our console emulator (the HTML-based one, like Firebug Lite)
remains exclusively loaded in debug mode.
* Start tracking usage via mw.track.
For example, calls to mw.user.wikiGetlink, will be tracked as:
{ topic: "mw.deprecate", data: "wikiGetlink" }
As all tracking, this isn't sent or stored anywhere by default.
Extensions, hooks and other scripts can subscribe and actually
log them (i.e. WikimediaEvents extension).
Also:
* Fixed odd tab between 'var' and 'args' in mediawiki.log.js
* Added minor optimisation by using a single local lookup for slice
instead of three properties deep from a global variable lookup.
* Moved down code for mw.log in mediawiki.js so that we don't
mix nested classes (mw.log#...) between other sibling methods
of mw itself. This also simplifies the documentation by using
jsduck's linear @class context.
* Simplify console && console.log check in mediawiki.log.js polyfil.
Change-Id: I67737de5abe0d655091fbe453a3b924f5068308c
C. Scott Ananian [Wed, 19 Feb 2014 17:14:08 +0000 (07:14 -1000)]
Support >2 and JSON-formatted options in parser tests.
The parserTests options handling had a regex capture bug which caused
it to discard all but the first and last option values. Fix this (by
separating value splitting from key/value capture).
Add support for JSON-valued options, which parsoid would like to begin
using. Add support for backslash escapes in quoted strings.
Change-Id: I69323bb44b7a481bad6f490d0773a984239c0b9c
jenkins-bot [Wed, 19 Feb 2014 17:14:08 +0000 (17:14 +0000)]
Merge "mediawiki.mixins.less: Add a link to source of the .background-image-svg technique"
Bartosz Dziewoński [Wed, 19 Feb 2014 17:09:26 +0000 (18:09 +0100)]
mediawiki.mixins.less: Add a link to source of the .background-image-svg technique
http://pauginer.tumblr.com/post/
36614680636/invisible-gradient-technique
Change-Id: I2418f7704fef31d3a3bee8eed5e8bfb628086df3
tonythomas01 [Thu, 5 Dec 2013 16:53:16 +0000 (22:23 +0530)]
Removed 'Enable simplified search bar (Vector skin only)' from MW user Preference
The vector-simplesearch preference is enabled by default since version 1.22.
The option is removed to decrease the clutter in the preference page
Bug: 52815
Change-Id: I6d8dd997a4c4a6b8fb06b4674dda5f306432c6af
jenkins-bot [Wed, 19 Feb 2014 16:17:27 +0000 (16:17 +0000)]
Merge "Better message wording. See also https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefs-help-watchlist-token2/en"
Bartosz Dziewoński [Sat, 15 Feb 2014 16:17:08 +0000 (17:17 +0100)]
Preload mediawiki.notification when we know we're going to need it soon
The mediawiki.notification module is normally lazy-loaded when
mw.notify() is called; however, this results in often-noticeable delay
between when the action we're notifying about is complete and when the
actual notification appears.
Let's explicitly mw.loader.load() the module in event handlers which
are going to later asynchronously fire a notification. I could only
find two such situations in core: in mediawiki.page.patrol.ajax and
mediawiki.page.watch.ajax.
Bug: 53990
Change-Id: I9d20af3a2f261cd93d5d5fd2b81cccae79697481
purodha [Wed, 19 Feb 2014 07:38:35 +0000 (07:38 +0000)]
Better message wording. See also https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefs-help-watchlist-token2/en
Change-Id: Ic2dec419fd1cf193af5e8067fdfb73e4c41401d4
Aaron Schulz [Tue, 18 Feb 2014 21:03:20 +0000 (13:03 -0800)]
Removed STRAIGHT_JOIN; the is slower when a namespace has a few pages
bug: 60618
Change-Id: I1b8e9f3c15dd99a4f438bb431bee231e5648f5a3
This, that and the other [Wed, 19 Feb 2014 00:11:56 +0000 (11:11 +1100)]
Amend release note for $wgPasswordSenderName
It's not just "deprecated" - it no longer works at all.
Follow-up to Ibfd28cd181365c8c0b5f3e8ffe8f5de8c89844a3
Change-Id: I578341430f53bef6d02b8ad78c1c1f2e6b96c064
jenkins-bot [Tue, 18 Feb 2014 23:53:05 +0000 (23:53 +0000)]
Merge "mediawiki.js: Clean up docs of 'async' parameter to some functions"