Commit graph

2704 commits

Author SHA1 Message Date
Fomafix 197f7f557e Bump to requires MediaWiki >= 1.34.0
c7595e54f6 changed to
mw.util.escapeRegExp included in MediaWiki 1.34.

Change-Id: Ibef8f95b80d71d26dcd69572ce3b98f43f2cbfc0
2021-06-17 06:16:22 +00:00
Translation updater bot f66be5e9e5 Localisation updates from https://translatewiki.net.
Change-Id: I6388198106ca6b9842a5f71821d3a69005a17aff
2021-06-15 08:33:20 +02:00
jenkins-bot 5da52ba284 Merge "Avoid using User::getBoolOption()" 2021-06-14 16:31:45 +00:00
Translation updater bot 732a7ea0d6 Localisation updates from https://translatewiki.net.
Change-Id: I82fe57d488616f4d7df27cf6d74ba2da98fcdaa1
2021-06-14 08:38:08 +02:00
jenkins-bot 2a7a86db3a Merge "Set default VirtualPageView version to Event Platform schema URI" 2021-06-08 08:42:03 +00:00
Translation updater bot b5074ca86e Localisation updates from https://translatewiki.net.
Change-Id: I610ee044aa36c4d72ef14d6109e276edf322c437
2021-06-07 08:42:40 +02:00
Alexander Vorwerk 35462639c3 Avoid using User::getBoolOption()
User::getBoolOption() is deprecated and should be replaced with
UserOptionsLookup::getBoolOption()

Bug: T277600
Change-Id: I9a2118a6342bd5f145174428dcfb518cba4e439b
2021-06-06 16:44:20 +02:00
James D. Forrester e0e37b76cd .nvmrc: Update to Node 12.21.0 as CI has migrated
Bug: T284345
Change-Id: Ibecb7c972dacc47fcf737fd4e9471413fac24657
2021-06-04 13:50:04 -07:00
Translation updater bot 65d3f0b969 Localisation updates from https://translatewiki.net.
Change-Id: Ic23b8ad78e663bffdb112e229914e99690bb76fc
2021-06-04 08:37:08 +02:00
jenkins-bot 26ae1842c1 Merge "Avoid using User::setOption()" 2021-06-03 20:04:41 +00:00
anjali041 81bb920e2b Avoid using User::setOption()
User::setOption() is deprecated and should be replaced with UserOptionsManager::setOption()

Bug: T277818
Change-Id: I5698b4422755a921c9c9c01ce29084ebfe5f5385
2021-06-02 12:21:10 +00:00
jenkins-bot 8c40d0658c Merge "build: Add and use 'browserslist-config-wikimedia'" 2021-06-01 22:36:31 +00:00
Translation updater bot 47b2f5d4e0 Localisation updates from https://translatewiki.net.
Change-Id: I235719c7b28e82e8a566e88e5ccaf78d09a9ca1f
2021-06-01 08:36:14 +02:00
Translation updater bot a93378be2a Localisation updates from https://translatewiki.net.
Change-Id: I0cd1a397ccbc2e8aa21b2dfdde33856f09d4153c
2021-05-31 08:32:25 +02:00
Translation updater bot a07749fe07 Localisation updates from https://translatewiki.net.
Change-Id: Iaefbbc2b166f49986b22d2971459eaf9afdb3d32
2021-05-27 12:06:04 +02:00
Translation updater bot c0af3d2aa2 Localisation updates from https://translatewiki.net.
Change-Id: I8721cf600a1f99570891ed4312f71143eac4a844
2021-05-26 09:05:18 +02:00
jenkins-bot da60ea0a56 Merge "selenium: Update README.md file" 2021-05-25 14:04:42 +00:00
Translation updater bot 5f304782f3 Localisation updates from https://translatewiki.net.
Change-Id: I8391a88d48027a3a3f35b7125c511b3d61544992
2021-05-25 08:53:40 +02:00
Marcel Ruiz Forns cf1b674665 Set default VirtualPageView version to Event Platform schema URI
This schema has been fully migrated to Event Platform.  Setting
this as the default lets us remove the mediawiki-config override
of this that is currently being used.

Bug: T238138
Change-Id: I645a81a4a22130ed6a442c055d6bf4e78160705f
2021-05-24 20:33:45 +02:00
sahil 9a22c9a028 selenium: Update README.md file
Bug: T282237
Change-Id: I16d7f7744f01be15e32a2729e9f516dbb508e41e
2021-05-24 18:04:51 +00:00
Translation updater bot f677e6f211 Localisation updates from https://translatewiki.net.
Change-Id: I3d8aa47d3ab4d1d2c167a5310e76651fc4f4bd7e
2021-05-24 09:55:06 +02:00
jenkins-bot b84f12e76a Merge "Rearrange PopupContext code for readability" 2021-05-22 07:10:52 +00:00
Translation updater bot f516c9bda4 Localisation updates from https://translatewiki.net.
Change-Id: Id819b189551c291b93777afbe9bad13fadad4ae7
2021-05-21 12:10:31 +02:00
Translation updater bot 47cfa0d8c4 Localisation updates from https://translatewiki.net.
Change-Id: Ie77fb454e38e9a856ab80245cc1af952dd7b9f92
2021-05-21 08:34:28 +02:00
jenkins-bot bf5e84b3b5 Merge "Change "graphic" to "figure" in placeholder message" 2021-05-20 16:57:35 +00:00
Volker E 21d49d3de1 build: Add and use 'browserslist-config-wikimedia'
Use central, shareable `browserslist-config-wikimedia/modern` config.

Bug: T282937
Change-Id: I72b38cba2028eab0b67543d066c341b76b91b5bb
2021-05-19 11:19:34 -07:00
Umherirrender 0f087ce5e9 build: Updating composer dependencies
* php-parallel-lint/php-parallel-lint: 1.0.0 → 1.3.0
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

Libup is broken on the build steps due to different node versions

Change-Id: I28aefe77365b9812f9cc0f9e5177f45e9f5c2cc2
2021-05-19 19:38:42 +02:00
Thiemo Kreuz 792324359f Change "graphic" to "figure" in placeholder message
This message is not for stuff that's literally a "graphic", but
for tables and some other block elements. I believe "figure" is
a word typically used in science to refer to tables, diagrams,
and such.

Bug: T220208
Bug: T273967
Change-Id: Ie47a1369657608d97ad421507af25fbfa99aaed5
2021-05-19 10:22:21 +02:00
Translation updater bot 0853a4d316 Localisation updates from https://translatewiki.net.
Change-Id: I9622d366a97325a98785c283e94a99b9b46004e7
2021-05-17 08:43:15 +02:00
Translation updater bot 1c3a6fa458 Localisation updates from https://translatewiki.net.
Change-Id: Ib873ecc5d9109857e4b91fcfea3b46b5d5745fa5
2021-05-14 08:45:14 +02:00
Translation updater bot 2f06a49a6c Localisation updates from https://translatewiki.net.
Change-Id: Ia6a051c65082f503c80954d0940fa14cbe870406
2021-05-12 09:22:55 +02:00
Translation updater bot 4d7ea9bad1 Localisation updates from https://translatewiki.net.
Change-Id: I2747b5053f0d5328b4f434fd753a72cdfcbe3dbf
2021-05-11 09:07:46 +02:00
WMDE-Fisch cb7fd4e4f8 Update entrypoint- and bundle-size limits
These numbers haven't been updated for some time now due to the many
recent changes in the code. Since we're wrapping things up I guess
it makes sense to have them accurate again.

Change-Id: I73c202a65192e8011acefd664bea7b62b1b556da
2021-05-10 10:00:39 +02:00
Translation updater bot 1648eb35ee Localisation updates from https://translatewiki.net.
Change-Id: Id4949ba5f2684caf41e9499168a032b7760333c2
2021-05-10 08:53:15 +02:00
Thiemo Kreuz 5d2c5aeaa1 Remove a small piece of unused code from reference.js
Turns out this was only in place because the test was
(intentionally) incomplete. But it's dead code in
production. Let's get rid of it.

Change-Id: Ieeb145b6972dceb7eeda3a167d907b680d5c3ce4
2021-05-07 16:43:01 +02:00
Thiemo Kreuz 8a08a88f66 Remove/update some ESLint exclusions
Change-Id: Icd4c2d968e2b445a54709368de056373a7814919
2021-05-07 16:26:00 +02:00
jenkins-bot d09d5765e3 Merge "Update JSDoc types and comments to be more specific" 2021-05-07 13:01:06 +00:00
Thiemo Kreuz 6b728243d6 Add missing test cases for the settings reducer
As well as make some more test code more readable without
changing what the test does.

Bug: T281698
Change-Id: Ia153981d9196b47099ef3880ac334718895fb0fc
2021-05-07 11:21:37 +00:00
Thiemo Kreuz e4da147efa Update JSDoc types and comments to be more specific
For example: We know the HTML element we are dealing with is
always an <a> element.

I believe the small changes in this patch are all obvious and
non-controversial. Please let me know if you disagree.

Change-Id: I9fe15845affffdd0f5f0fd6ef7d6b607cb567ac7
2021-05-07 11:57:58 +02:00
jenkins-bot 5b641130f6 Merge "More unit test cases for isReferencePreviewsEnabled" 2021-05-07 09:19:44 +00:00
Translation updater bot e3cba6a7e9 Localisation updates from https://translatewiki.net.
Change-Id: I14ccfa2378bd28fb4dd574046095e1b982b76d6a
2021-05-07 08:43:01 +02:00
Thiemo Kreuz 7c3f369019 Rearrange PopupContext code for readability
For example:
* Anonymous users are a critical exception. They must always
  load the module.
* Otherwise check if one preview type is active.
* Prefer isRegistered() over isAnon(), because isRegistered()
  is part of the UserIdentity interface.

Change-Id: Iea7e3bb7ef01bd72ccbd1fc5e574437f6dc42aa2
2021-05-06 16:44:41 +02:00
Thiemo Kreuz 92864de4d0 Tune confusing log error down to a warning
This is not really an error. It does not really have
consequences for the user, except:
* It might waste bandwidth because the module is loaded, but
  unused.
* It might waste a tiny bit of CPU time.
However, this can only happen for registered users, and only
with very specific combinations of settings (notably: a
conflicting gadget must be activated).

The reason it's marked as an error is that previously we could
give more guarantees about this. This changed recently. We will
check if the log message is still helpful and either remove it,
or restore the previous guarantees.

Bug: T271206
Change-Id: I218726c9c4879a405acef68710e79c6ac8d070fe
2021-05-06 10:08:29 +02:00
Translation updater bot e337445751 Localisation updates from https://translatewiki.net.
Change-Id: Id77e555c41fcd79d17b467a81bd857be59d061ab
2021-05-06 08:54:50 +02:00
jenkins-bot e9fac7bcc5 Merge "Enable ReferencePreviews for old users by default" 2021-05-05 15:54:15 +00:00
Andrew Kostka 1fce62ca7b Enable reference previews for anonymous users when not in beta
Change-Id: I605bc79626999c2e65cdceaa47dd6c4479a3d249
2021-05-05 16:43:25 +02:00
Thiemo Kreuz 5b6ed0e580 Enable ReferencePreviews for old users by default
The behavior for PagePreviews – implemented years ago – was
different. For old users it was disabled by default. This
behavior is wrong for ReferencePreviews.

Bug: T271206
Change-Id: I28c43ab3348ffdc27b068fc1ac1d6a6a06ee90a6
2021-05-05 14:32:15 +02:00
Translation updater bot 5e22d4c317 Localisation updates from https://translatewiki.net.
Change-Id: I65bc12ab63e366fa95cd6c61eb4623d09df3e517
2021-05-05 08:38:59 +02:00
Thiemo Kreuz c5e9a68ab8 Set both Beta/non-Beta user option in Selenium tests
I was not able to reproduce the issue locally, but I believe
this might be the reason for the failure we see. It can't hurt
and needs to change anyway, with or without the failure.

Bug: T281324
Change-Id: I0002f952438d7afe2fb6c2100bf25760f7dda10d
2021-05-04 10:45:32 +02:00
Translation updater bot 3aa117bda7 Localisation updates from https://translatewiki.net.
Change-Id: Ib5b776ae46b7f74af950e9d8fdd943a58bd7ebc6
2021-05-04 08:52:49 +02:00