Commit graph

2134 commits

Author SHA1 Message Date
Umherirrender 6f0e30e366 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: If095181a45ba845b230402fabfa338fa598f3833
2019-11-04 18:48:36 +01:00
Translation updater bot 7d3fc222dd Localisation updates from https://translatewiki.net.
Change-Id: Ic8187819cf1d56185756177f46cf9ace6ce8d50b
2019-11-04 10:17:27 +01:00
Translation updater bot df8b880131 Localisation updates from https://translatewiki.net.
Change-Id: I1417ab22f067d47892cc0e9e7307088514d6aedc
2019-10-31 09:29:26 +01:00
jenkins-bot 4b9f1443c0 Merge "Localisation updates from https://translatewiki.net." 2019-10-30 10:57:33 +00:00
jenkins-bot 506f53118c Merge "Use standard size and fix alignment of generic reference icon" 2019-10-30 08:41:42 +00:00
Translation updater bot 51f70f3372 Localisation updates from https://translatewiki.net.
Change-Id: I03a58298b6d05b2c3d466fb414b4ccebc78138e5
2019-10-30 09:33:41 +01:00
Translation updater bot b05e65cb80 Localisation updates from https://translatewiki.net.
Change-Id: I21d9d17bb214829cd7cb667abd75bc59508ed1ea
2019-10-29 09:39:10 +01:00
Translation updater bot ab09d35728 Localisation updates from https://translatewiki.net.
Change-Id: Ic7e6ab31399f1009ccaea22e22e664b0f2c2fbb6
2019-10-28 16:35:51 +01:00
Volker E 80368fc1bd Use standard size and fix alignment of generic reference icon
Using standard size of 20px for reference icon. This also brings
the icon into the right alignment to the text.

Bug: T221555
Change-Id: I5638a950b8e7fb0e1c1d116ed0755ddc8e25edc2
2019-10-27 22:22:28 -07:00
Umherirrender a2e5bd0364 build: Remove unneeded Squiz.WhiteSpace.FunctionSpacing
It is already part of the default ruleset.xml

Change-Id: I26ee0c4df83360577ef08b42d5f05084c6b29ea3
2019-10-25 20:32:36 +02:00
jenkins-bot adcbf91237 Merge "Record pageviews where Reference Previews is enabled" 2019-10-25 08:12:06 +00:00
jenkins-bot 9d8291879a Merge "Inline eventlogging call" 2019-10-25 07:58:01 +00:00
Translation updater bot d0cd4e7ab6 Localisation updates from https://translatewiki.net.
Change-Id: I8f1ec1249ed610c79c87d478c26a23b09ac84dd4
2019-10-25 09:19:18 +02:00
Adam Wight b7331a6e66 Record pageviews where Reference Previews is enabled
We want to know the side of this population in pageviews, in order to
produce proportional metrics later.

Bug: T214493
Change-Id: I940872870754e85d19688f3855d6857e65b982b1
2019-10-24 23:34:56 +02:00
Adam Wight fed99e7cb5 Inline eventlogging call
This isn't messy enough to justify encapsulation in a function.

Change-Id: Idfa6581d30709f1a58ff8c83ead08e1bfda81c1c
2019-10-24 22:52:48 +02:00
Translation updater bot cb5ee37457 Localisation updates from https://translatewiki.net.
Change-Id: Ifd0c6be2a50741ee2fedd4331d08ad8a2c4cabec
2019-10-24 10:47:50 +02:00
jenkins-bot f67337c475 Merge "Use 6.1.0 of @wikimedia/mw-node-qunit" 2019-10-23 09:39:05 +00:00
Translation updater bot 0ddbe4e3f7 Localisation updates from https://translatewiki.net.
Change-Id: I949b0bdce6a8273f4d37f9d52c2f6c1b823a2a46
2019-10-23 09:53:33 +02:00
jdlrobson 01fc2db19f Use 6.1.0 of @wikimedia/mw-node-qunit
Bug: T203137
Change-Id: I9fd701cc9575ad250c919d88bf1fe74898b690eb
2019-10-22 10:42:49 -07:00
Adam Wight 171e1b7dbf Sample ReferencePreviewsPopups 1:1
We're getting a few dozen records per day at 1:10, so let's stop sampling.
We need enough data to get significance on events happening at 0.1% or less.

Bug: T214493
Change-Id: I8a913fe1ee1e5b72d84914e183ac2386ddb20d84
2019-10-22 12:14:17 +02:00
jenkins-bot 27381dd854 Merge "Make use of User::getBoolOption() where appropriate" 2019-10-22 08:09:39 +00:00
Thiemo Kreuz e5b36f6270 Make use of User::getBoolOption() where appropriate
Bug: T233813
Change-Id: I804c34817e093fe7e507e5379647b52f187a686b
2019-10-22 09:58:47 +02:00
jenkins-bot 3240a87898 Merge "Remove obsolete mediaWiki and jQuery aliases" 2019-10-22 07:46:07 +00:00
Thiemo Kreuz 76e02fae98 Remove obsolete mediaWiki and jQuery aliases
Notice how this actually reduces the size of the final, compiled index.js.
It's not much, but still.

One issue I noticed is that the coverage reports for the JS code stopped
working. I have no idea why.

Bug: T208951
Change-Id: I2fe92579574b3b1ba4d2dd064899eee944045a96
2019-10-22 09:30:46 +02:00
Thiemo Kreuz 4d016984c3 Rename PHP constant for ReferencePreview preference
This user option is currently used in the BetaFeatures tab, but we
are going to change this with T233813. We are going to make this a
regular preference on the rendering tab, and would like to keep the
name "popupsreferencepreviews" along with all decisions the users
previously made.

Bug: T233813
Change-Id: I703d8a1a4eee2e7dccc9c597a846cf58a973ee13
2019-10-22 09:25:02 +02:00
jenkins-bot 2ad02c40d8 Merge "Localisation updates from https://translatewiki.net." 2019-10-22 07:18:24 +00:00
Translation updater bot c89d311645 Localisation updates from https://translatewiki.net.
Change-Id: I88f2e26552b078f04812b0470fca01bd7ead5758
2019-10-22 09:14:53 +02:00
Thiemo Kreuz 71ac670d9e Add visibility keywords to all constants in PHP code
Change-Id: I384cffed670c7e845465e3e18808e267327011ed
2019-10-22 07:10:31 +00:00
jenkins-bot eadbbb444c Merge "Change the extensions name on Special:Version" 2019-10-22 07:09:38 +00:00
Thiemo Kreuz c7595e54f6 Replace deprecated mw.RegExp.escape() with mw.util.escapeRegExp()
The signature mw.RegExp.escape() is deprecated since MediaWiki 1.34.

By the way, this is the 4th or even 5th time in my short career this
tiny, single line (!) helper function is moved around and I need to
update all my code. This felt already ridiculous when it happened the
2nd time.

Change-Id: I4d05a49120aff64ebc316d0af7736c62385d9307
2019-10-21 15:00:36 -07:00
jenkins-bot 4476eb7f75 Merge "Upgrade Popups mw-node-qunit version" 2019-10-21 11:07:57 +00:00
Translation updater bot 385beb32cb Localisation updates from https://translatewiki.net.
Change-Id: Id4a099066ccdd0be624409b3bf528aa8ce3ff8bf
2019-10-21 10:00:29 +02:00
jenkins-bot 1fa04d10da Merge "Replace all mock builders with createMock() calls" 2019-10-18 16:26:04 +00:00
Thiemo Kreuz fe32c48268 Replace all mock builders with createMock() calls
This was motivated by two things:

1. Notice the bad class name in UserPreferencesChangeHandlerTest. This
was possible because the default mock builder does not check if a class
exists, *and* there was no type hint in place. createMock() *does* check
if a class exists.

2. We are free to use createMock() from PHPUnit 5+ now. It's not only
shorter but more strict and reliable.

Change-Id: I301a171d587026eab0a62575ab2fdbfd7733c661
2019-10-18 14:31:10 +00:00
Translation updater bot f237c80c93 Localisation updates from https://translatewiki.net.
Change-Id: I308109c44e1ec64e43311c4c2868db74c1ac41f9
2019-10-18 09:29:29 +02:00
jenkins-bot 7952203c61 Merge "Split user preferences for Page and Reference previews" 2019-10-17 09:46:21 +00:00
jenkins-bot cccadd8d05 Merge "Refactor PopupsHooks for easier removal and/or expansion" 2019-10-17 09:46:18 +00:00
Thiemo Kreuz fb5809d61e Change the extensions name on Special:Version
The extension is not only about "Page Preview" any more. It already
renders Reference Previews, and might render math expressions as well.

Bug: T219153
Change-Id: I5aa616d9eff3e65e018a9d64955b8d32d4f7e690
2019-10-17 11:41:47 +02:00
Thiemo Kreuz a63a1cf91c Split user preferences for Page and Reference previews
Bug: T233813
Change-Id: I89205658c561961b90abaa133a004e54beebfab5
2019-10-17 11:21:21 +02:00
Translation updater bot 3cb86c0b28 Localisation updates from https://translatewiki.net.
Change-Id: I2f127c7ce0ae1980b6a70d4771129f43f286b1c9
2019-10-16 20:41:22 +02:00
Thiemo Kreuz 55505e786b Refactor PopupsHooks for easier removal and/or expansion
This is done in preparation for the main patch I8920565. This patch
here is not supposed to change anything. Tests should prove this.

Bug: T233813
Change-Id: I0bdc35dc8cb7bca643f45734b30e374f26b24ad2
2019-10-16 13:33:09 +00:00
Translation updater bot f6af4ca68e Localisation updates from https://translatewiki.net.
Change-Id: If0c55a7452b1211a43efa6dbf268b7438c6729bf
2019-10-16 10:40:42 +02:00
James D. Forrester e16143df16 build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Icd67aed448269f603dd4465f7e46eac9a64bd1a1
2019-10-15 16:13:01 -07:00
jdlrobson 7d6a903d69 Upgrade Popups mw-node-qunit version
Bug: T203137
Change-Id: I0cf856d04eacf5bf7764c58db55eeae04811e973
2019-10-15 15:36:54 -07:00
Adam Wight f6defd5fbc Tune referencePreviews sampling from 1:1000 to 1:10
We've logged zero events after 12hr of deployment, so it should be
safe to increase sampling by 100x.

Bug: T214493
Change-Id: Icd67aed448269f603dd4465f7e46eac9a64bd1ab
2019-10-11 10:52:43 +02:00
Thiemo Kreuz 95c80dcb3e Fix code detecting horizontal scrollbar in reference previews
Bug: T234602
Change-Id: I5994b6e8cb15374bb2c0a31dd4e4549005a619cf
2019-10-09 15:38:35 +02:00
Translation updater bot 2562ca2e9c Localisation updates from https://translatewiki.net.
Change-Id: I4a8aec4918f39a3b2494c6b2aa28ef9799487e74
2019-10-08 09:34:15 +02:00
Ed Sanders af07b4214e build: Update linters
Change-Id: I4170001345e511cc47ebe77977433488b6f1b523
2019-10-07 16:32:01 +01:00
Adam Wight 76a34618c3 Tracking for Reference Previews interactions
Logs events to the ReferencePreviewsPopups EventLogging schema, in
order to understand whether Reference Previews is helpful for
end-users.

This will be removed along with the older tracking, as soon as our analysis
phase is finished.

Incidentally disables a lint rule for the generated JS, it's about
readability so irrelevant to the minified code.

Bug: T214493
Change-Id: I2638611ba67b785338f7e98a1c4b08a5e829812d
2019-10-07 11:22:00 +02:00
Max Semenik b72a95b5c0 Fixes for PHPUnit 6
Bug: T192167
Change-Id: I354077e8e44cfea3e75219d6701a4f9e11d4c70a
2019-10-05 22:43:20 -07:00