Commit graph

1557 commits

Author SHA1 Message Date
jenkins-bot 64c33d77ab Merge "Consider using more common image sizes for Page previews" 2017-10-02 21:05:08 +00:00
smarita 3ec185cb01 Consider using more common image sizes for Page previews
Modified necessary files to increase size of popup from 300px to 320px

Bug: T173434
Change-Id: I47bbe9defe961008163551d5be4fc7b1ca08d0d1
2017-10-01 22:02:29 +05:30
Translation updater bot b58650f1ae Localisation updates from https://translatewiki.net.
Change-Id: Id52899d48cd67fb1f13d66da52d4884ef0044b29
2017-09-30 22:52:54 +02:00
Translation updater bot 0af348261f Localisation updates from https://translatewiki.net.
Change-Id: I723593dcd7dd2b27e682db148d840baba6e7b73d
2017-09-27 22:35:42 +02:00
Translation updater bot 81aa2d2590 Localisation updates from https://translatewiki.net.
Change-Id: Ic7b81058d159109a79f9907f527b585f57d6695e
2017-09-26 22:46:13 +02:00
Translation updater bot 6a9d90b022 Localisation updates from https://translatewiki.net.
Change-Id: Id96cb4bfdf9a2a743f73d1e0f7354dd11504f7aa
2017-09-24 22:54:33 +02:00
libraryupgrader cc611bbc85 build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ibea048de7fc5f703d7ebf54d7844e35af8eac8d8
2017-09-24 12:31:23 +00:00
Translation updater bot b0483dae3c Localisation updates from https://translatewiki.net.
Change-Id: I4dbc7e503356f3ae33e0bea7b94c54b8e9c5d5ea
2017-09-23 22:48:06 +02:00
Volker E 0c64c25c29 Unify box-sizing to common LESS mixin
Change-Id: Ifd3e7dd9be68c09b362c0fb8071cd9f27f846505
2017-09-21 15:32:09 -07:00
Translation updater bot 7da6cff352 Localisation updates from https://translatewiki.net.
Change-Id: I20f7a09bb0e555ae01d874059b4df747725f87bd
2017-09-19 23:05:42 +02:00
Translation updater bot 8048e3d70f Localisation updates from https://translatewiki.net.
Change-Id: Ic105c2dbb91c4db9ff8a22fe818b1a480333d873
2017-09-17 22:37:08 +02:00
Translation updater bot cb37dc83d6 Localisation updates from https://translatewiki.net.
Change-Id: I4686d6b552c1fd8925dcef8396dac4d63a64ee3f
2017-09-12 22:46:48 +02:00
Bartosz Dziewoński 2b637e42ef Improve how we render help messages in preferences
* The 'help' parameter expects a string, not a Message object. It
  seemed to be working, but caused fatals when switching the
  preferences form to the OOUI implementation (T117781).
* Use 'help-message' instead, which also avoids using the global
  request context for Message objects.

Bug: T117781
Change-Id: I5b2e44df35a2696da0e7ba8394eccf41914f6dda
2017-09-12 17:07:37 +00:00
Translation updater bot dfad838fa7 Localisation updates from https://translatewiki.net.
Change-Id: I87ec41c46ba5338eadf95a89dca2a79fdafe3f6a
2017-09-09 00:12:05 +02:00
Translation updater bot 7c53b5e770 Localisation updates from https://translatewiki.net.
Change-Id: I4ba090be862ec0d5706bf18bae3bb766cbc1263c
2017-09-07 23:33:50 +02:00
jenkins-bot 9a87e417c6 Merge "Run eslint on compiled assets to ensure code is es5 compatible" 2017-09-07 10:38:22 +00:00
jdlrobson 90fbd093c8 Run eslint on compiled assets to ensure code is es5 compatible
It doesn't feel great but it does the trick.

Bug: T174570
Change-Id: I76d1b81625a77df0d926c2da714bcab606a28b8d
2017-09-07 12:30:33 +02:00
Translation updater bot 98ff107293 Localisation updates from https://translatewiki.net.
Change-Id: I21f78b3ffc8d4ade86ecc9d9f4077a864abd65d8
2017-09-06 22:52:39 +02:00
jenkins-bot eb6c893e1e Merge "Run settings browser tests and make sure jQuery 3 not enabled" 2017-09-05 10:50:53 +00:00
Translation updater bot 42b85331f3 Localisation updates from https://translatewiki.net.
Change-Id: Ibbc0f04d140d6e13d08ab1072b0f3bee8bbc48d9
2017-09-03 22:31:09 +02:00
jdlrobson f18c8e4eaf Run settings browser tests and make sure jQuery 3 not enabled
Change-Id: I599c8c002c570d4911b7c86294f714279833e80b
2017-09-01 10:16:17 -04:00
joakin 84e30f4613 Revert usage of Promise A+ in actions.js#fetch
.catch is only available with jQuery 3, which is only now starting to
roll out (see https://phabricator.wikimedia.org/T124742)

This patch rolls back the usage of .catch introduced in
https://gerrit.wikimedia.org/r/#/c/373327/ to use .fail, but only the
source part, given that patch introduced unit tests for this behavior

Bug: T174724
Change-Id: I6e1c342d812b35846061266bc59e493e87423fd8
2017-09-01 12:10:50 +02:00
libraryupgrader 4cf348c614 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
Change-Id: I99700010ab32a37f78ad0d9d7b32cc6bc4966b8a
2017-09-01 04:55:51 +00:00
jenkins-bot 950c8dca7c Merge "Store map files under .json extension" 2017-08-31 11:07:55 +00:00
joakin 4ed09011c2 Explicitly set ecmaVersion for eslint
Before, because of the use of sourceType: "module", ecmaVersion would be
assumed to be ES2015, but we write ES5 here at the moment.

This enables linting against ES2015 features like let and const.

See https://gerrit.wikimedia.org/r/#/c/374789/ for failing POC.

Change-Id: Id1d147866c37de3794213378a5e8a08af6f796a1
2017-08-30 13:47:49 +02:00
Translation updater bot 26ba349dc9 Localisation updates from https://translatewiki.net.
Change-Id: I1d7d4a45bd07cae820938c0571fe9acae8c053fb
2017-08-30 10:59:48 +02:00
Piotr Miazga f8498ce70c Store map files under .json extension
We cannot serve .map files from production servers. This makes
Popups extension difficult to debug. As a simplest solution we
decided to store map files as .json files so we can easily access
js maps files.

Changes:
 - changed webpack config to store map files under .json extension

Bug: T173491
Change-Id: Iaa55f75a8c5f3e8f1f169b3ac33241cc54f0413f
2017-08-29 21:18:35 +02:00
Piotr Miazga cb72bf4e82 Do not use keyword const as it's part of ES6 syntax
Changes:
  - instead of const use var

Bug: T174424
Change-Id: I3d786614b5acbfe9a05c332edd3a14c2e5afa417
2017-08-29 16:37:46 +02:00
Translation updater bot 4bcfba08ae Localisation updates from https://translatewiki.net.
Change-Id: I7de4f71b3e4e6702d833ec516a8e3f83046610bf
2017-08-29 09:04:02 +02:00
Bartosz Dziewoński b63d2262f8 Don't use ES6 Number.isNaN
Number.isNaN is a new function introduced in ECMAScript 6.
MediaWiki only requires ECMAScript 5 supports from browsers.
Notably, Opera 12 does not have Number.isNaN. Instead, use
the global isNaN function (which behaves the same except for
non-numeric inputs).

Change-Id: If436cd26b21ce0336dfbc37144f6226e7b948e5e
2017-08-28 21:22:07 +02:00
L10n-bot 325db5513c Merge "Localisation updates from https://translatewiki.net." 2017-08-28 11:24:42 +00:00
Translation updater bot 698beb882c Localisation updates from https://translatewiki.net.
Change-Id: Ic3f91db9d3242d7e26177de14b43e85237e3b019
2017-08-28 13:24:29 +02:00
Quiddity 311bf8f683 Use Special:MyLanguage in help link for betafeature info
Bug: T145904
Change-Id: I59c0b952cb44b31d0918c3d4659d47f2ddec7761
2017-08-26 20:28:59 +00:00
Timo Tijhof 78ed328d55 Docs: Fix typo in Grafana link label
Change-Id: I35d984b9fd5d8dc39cb17d2ff1e69e58a4e699c4
2017-08-26 00:08:03 +01:00
jenkins-bot 8850c1d0a3 Merge "Use canonical name for NS_SPECIAL titles when checking the blacklist" 2017-08-25 15:50:22 +00:00
Piotr Miazga 0de054cd79 Use canonical name for NS_SPECIAL titles when checking the blacklist
Changes
 - when verifying title use canonical names for pages in
 special namespace
 - improve unit tests to verify canonical names and translated titles

Bug: T170169
Change-Id: I49592133eb8286eacf04fd3034df091f7ef2aa50
2017-08-25 15:56:02 +02:00
Translation updater bot d21e52c056 Localisation updates from https://translatewiki.net.
Change-Id: Idc1c2eb96856e15bf51d8e062a1564f7b7df57f5
2017-08-25 09:48:07 +02:00
Umherirrender 40b4c053d8 Remove dot at end from extension description
Consistency tweak for extension active on translatewiki.net
Description on Special:Version does not end with a dot

Change-Id: I458dcdc62e609f1f002785e31d222d45514b55d4
2017-08-24 20:47:53 +02:00
Translation updater bot a6d2e4c69c Localisation updates from https://translatewiki.net.
Change-Id: Icefa6cd70eb81d9884e383d9cbd0d67599d769bf
2017-08-24 09:33:42 +02:00
joakin e865409593 Hygiene: Don't rely on .fail, use Promises/A+
Instead of using the non-standard old Promise implementation by relying
on .fail, migrate it to .catch.

In this specific case, where we were chaining promises with $.when, the
semantics from going from fail to catch actually change. .fail keeps the
promise in a rejected state, while .catch will change it to resolved
unless another error is thrown.

As such, when changing it to .catch, the catched error will be re-thrown
to keep the promise in a rejected state, so that $.when.then is not
executed.

Additional changes:
* Make actions.js#fetch return its promise for ease of testing.
* Test FETCH_FAILED, which was fully untested.

Bug: T173819
Change-Id: Ibd380b714586979c6e60b4c969d17f36a0796b52
2017-08-23 19:36:05 +02:00
jenkins-bot 8bb322b15d Merge "Hygiene: Use promises A/A+ everywhere" 2017-08-22 14:34:26 +00:00
joakin 4d8364a999 Hygiene: Use promises A/A+ everywhere
Remove usages of deprecated methods like .done which make jquery
promises fall back to non-standard behavior

Additional changes:
* Rename var promise to a more descriptive name in tests

Bug: T173819
Change-Id: I7b041d0a7a8c42a8eac947295d265e898085c60a
2017-08-22 13:36:00 +02:00
Translation updater bot bba762d931 Localisation updates from https://translatewiki.net.
Change-Id: Id02413dede0ee633ff2ed277728c26865464ad3e
2017-08-22 09:09:15 +02:00
jenkins-bot 8b2c4812d8 Merge "Use json extension for .stylelintrc" 2017-08-19 22:04:16 +00:00
Umherirrender 584c536860 Use json extension for .stylelintrc
Bug: T173516
Change-Id: I352840aa4c400f27bba2028ca39b5ae2e0f8dcf8
2017-08-19 10:19:38 +02:00
Translation updater bot 4712f4a728 Localisation updates from https://translatewiki.net.
Change-Id: I3624323bb18044807b09871ec64f44726d42db5d
2017-08-19 09:12:33 +02:00
Timo Tijhof 55f075bf11 Remove aborting of BeforePageDisplay hook
This caused random extensions to not be able to load any ResourceLoader
modules (or do other things) on a random subset of pages and wikis.

Follows-up 29770a3.

Bug: T173411
Change-Id: I8dfc1085cb7d902f9e9be8a71324dc4cd850a500
2017-08-18 16:38:42 -07:00
jdlrobson e4e9bb3bd6 Popups A/B test infrastructure
Introduce PopupsAnonsExperimentalGroupSize config variable. This defines
a population size who will be subject to experimentation. If the group
size is undefined or 0 (default) and PopupsBetaFeature is false
(default value) Popups will be enabled for everyone. If it is any other
value, half that group will see page previews.

Drop the config variable PopupsSchemaSamplingRate - we will now only
EventLog when an experiment is occuring. This means we can simplify the
MWEventLogger class as shouldLog will always be truthy. Given server
side eventlogging is only used for preference changes
traffic should be low and not need sampling.

Introduce getUserBucket which determines whether a user is in a bucket
on, off or control based on the value of
PopupsAnonsExperimentalGroupSize. Add tests showing how these
buckets are calculated.

Caution:
A kill switch wgPopupsEventLogging is provided for safety.
It defaults to false. Before merging, please check if any config changes
are necessary.

Bug: T171853
Change-Id: If2a0c5fceae78262c44cb522af38a925cc5919d3
2017-08-17 21:07:07 +00:00
Piotr Miazga 910dd0408f if preview count stored in localStorage is not a number override it
There are some cases when the preview count stored in local storage
evaluates to NaN. When this happens we should override the value
to zero, store it in localStorage, and return it.

Bug: T168371
Change-Id: Ic44b7c7b5b716f6a0859f33278d56d2d95bbfb3e
2017-08-17 18:29:56 +02:00
jdlrobson 08331ba199 Return promises from QUnit test
Simplify all our tests to return to promises
Use catch rather than fail when testing error cases.

Bug: T170812
Change-Id: I37c4e3f86343052c946d8586f8ff840a81f631f8
2017-08-17 14:34:39 +00:00