Commit graph

6092 commits

Author SHA1 Message Date
jenkins-bot ec23570c91 Merge "Make talk page notification use link-class, id and don't set class" 2021-06-01 11:20:02 +00:00
Translation updater bot 6caa0a9fc6 Localisation updates from https://translatewiki.net.
Change-Id: I60f6a2e73abb7326b8948b6ea873100b46b07d45
2021-06-01 08:35:06 +02:00
Translation updater bot e11b402a8e Localisation updates from https://translatewiki.net.
Change-Id: Ic9857bbd7f84839d01bbfd6355ccd6e2b9440cc9
2021-05-31 08:30:56 +02:00
Translation updater bot 03cc3d0f6c Localisation updates from https://translatewiki.net.
Change-Id: I6fcc75bacbc0dae43016fba42ac68520cda8f779
2021-05-28 09:04:14 +02:00
Nicholas Ray 7880cc1895 Make talk page notification use link-class, id and don't set class
Before this commit, setting:

```
$wgVectorConsolidateUserLinks = [
  'logged_in' => true
];
```

would result in an orange talk notification that had missing or
incorrect attributes (`#ca-mytalk` instead of `#pt-mytalk` and missing
the `title` and `accesskey` attributes) when visiting modern Vector
with a talk notification visible. The notification's html looked like:

```
<li id="ca-mytalk" class="mw-echo-alert">
  <a href="/wiki/User_talk:Newuser5">You have a new Talk page message</a>
</li>
```

The `pt-mytalk` id is important for echo to remove the notification [1].
The title and accesskey are important for accessibility reasons.

This commit corrects that by setting a `link-class`, setting an explicit
`id`, and NOT setting a `class` key. This results in html that is
correct in both modern and legacy Vector:

```
<li id="pt-mytalk">
  <a href="/wiki/User_talk:Newuser5" class="mw-echo-alert" title="Your talk page [ctrl-option-n]" accesskey="n">You have a new Talk page message</a>
</li>
```

[1] 67bf58a489/modules/ext.echo.init.js (L172)

Bug: T274428
Change-Id: I5afc74992ad3153ac32df65ccf5fd03b469f05fb
2021-05-27 19:22:10 -06:00
Volker E 67bf58a489 build: Update SVGO to latest v2.3.0 and re-crush SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-crushing SVGs.

Bug: T278656
Change-Id: I5b150cce300e764afb0a40d402479db22cfcea99
2021-05-27 11:47:02 -07:00
Translation updater bot 33e67ed587 Localisation updates from https://translatewiki.net.
Change-Id: I37eee17a9c0028ada10d972fa7c023f66b5a11bf
2021-05-27 12:05:10 +02:00
jenkins-bot faac5178b9 Merge "Move talk page notification data from 'user-menu' to 'notifications'" 2021-05-26 16:46:08 +00:00
jenkins-bot 73c124c498 Merge "selenium: Update wdio-mediawiki" 2021-05-26 15:07:07 +00:00
Željko Filipin b6a9950642 selenium: Update wdio-mediawiki
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Bug: T283597
Bug: T276503
Change-Id: Ic80f90dbbd5604dc3c9afe3303862edbf46b1cd2
2021-05-26 13:36:53 +00:00
jenkins-bot c9839d897b Merge "selenium: Update README.md file" 2021-05-26 10:01:08 +00:00
Translation updater bot 64139ca567 Localisation updates from https://translatewiki.net.
Change-Id: I01015925c1e6c87bd065dbaa54bb331d16343ed6
2021-05-26 09:04:26 +02:00
Nicholas Ray 3a351cfb4f Move talk page notification data from 'user-menu' to 'notifications'
**Note**: This change will affect the order of the yellow talk page
message notification on legacy Vector/other skins by moving it from
after the `#pt-notifications-notice` element to before the
`#pt-notifications-alert` element. This was done because the
notification is related to the list of messages that appear when the
bell icon is clicked so having it in close proximity to that icon is
hopefully more intuitive than having it next to the unrelated inbox
icon. [1]

Per T274428, we need this notification to be inside the `notifications`
array instead of inside the `user-menu` array.

Additionally:

* Per T274428, update the notifications message copy to "You have a new
Talk page message"

* Remove the `onPersonalUrls` hook method inside EchoHooks,
unregister its use as a hook in extension.json, and update its
references in Echo.

[1] T274428#7113896

Bug: T274428
Change-Id: I5ae0ec089bcf0eec1ec7ac13f60e811f54e1d8e1
2021-05-25 18:24:29 -06:00
Bartosz Dziewoński 3762c3d4d8 Simplify code for detecting rollbacks
Thanks to the changes from T254074, the EditResult object passed to
the 'PageSaveComplete' hook now knows whether the edit being saved
is a rollback. We don't need to pass this information from the
'RollbackComplete' hook via globals.

Bug: T277649
Change-Id: Ieef7941e4665204b1a9b2356a58216626ed1f54b
2021-05-25 20:32:36 +02:00
anjali041 0001ee4dc3 selenium: Update README.md file
Bug: T282237
Change-Id: I87018d39e9a9d6fb101ad5e1f7c4f13f8200611e
2021-05-25 16:03:45 +00:00
libraryupgrader 12e3d5a2ef build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I2e7b55677dc047b1b755842f8e2691e20c3eac97
2021-05-25 11:18:52 +00:00
Translation updater bot 423ef4dc9a Localisation updates from https://translatewiki.net.
Change-Id: I7c3f32951ead09bf6e5d17ddf6615684c20da6ba
2021-05-25 08:52:08 +02:00
jenkins-bot 6ed6337aed Merge "Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity" 2021-05-24 15:27:56 +00:00
Vadim Kovalenko 3e65888791 Replace RecentChange::getPerformer with RecentChange::getPerformerIdentity
Refactor $actor as UserIdentity
Refactor Event::getAgent() to return UserIdentity

Bug: T276412
Change-Id: Ieb0dbacd2dcab7700b83fb090587b4957c8128c9
2021-05-24 18:01:04 +03:00
Translation updater bot 6c184f1790 Localisation updates from https://translatewiki.net.
Change-Id: I3a9ca5728fae3624608007ef212b4c45a839fd68
2021-05-21 08:33:55 +02:00
libraryupgrader 1307a28f6f build: Updating hosted-git-info to 2.8.9
Change-Id: I015a90535d78840e3468cd067d2e90ed25f53f4c
2021-05-21 04:29:06 +00:00
Translation updater bot ec93d61951 Localisation updates from https://translatewiki.net.
Change-Id: Ida8d7119c51446bdfe758d5c89afd8e735985ff8
2021-05-20 09:10:26 +02:00
Translation updater bot d11af1f29f Localisation updates from https://translatewiki.net.
Change-Id: I60bbb1143c74ba95b9744feff5e7c63a071a472c
2021-05-19 08:42:46 +02:00
jenkins-bot 331d6e9c18 Merge "Unify list-style CSS" 2021-05-18 17:03:47 +00:00
Translation updater bot 7752bb504f Localisation updates from https://translatewiki.net.
Change-Id: Icd88ea29e0c894dca7180930db832c218b6af214
2021-05-18 08:46:30 +02:00
Alexander Vorwerk bba113d92e Avoid using ContentHandler::getContentText()
ContentHandler::getContentText() is deprecated and should be
replaced with Content::getText() for TextContent instances.

Change-Id: Ia92c5a41954b1d21deb39dcafabbdff60a414f55
2021-05-17 23:44:00 +02:00
Translation updater bot 25161f7d90 Localisation updates from https://translatewiki.net.
Change-Id: Ia3733a9fd1e06a6abc92ae649afe1558f973beff
2021-05-17 08:41:57 +02:00
libraryupgrader 88e37cb08c build: Updating npm dependencies
* hosted-git-info: 2.8.9 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I98e305419a1f6bbc8a6aac91ee05869e3430f723
2021-05-15 13:53:19 +00:00
Umherirrender 9ccc7af208 Remove PHP 5.3 $this closure workaround
Change-Id: I84024efc7bb27292bcfb7dd5c586b094828c5d0a
2021-05-15 01:58:55 +02:00
Translation updater bot 193ac8cab4 Localisation updates from https://translatewiki.net.
Change-Id: I908368f8e6591981e55a6d405d314e77ff0320bb
2021-05-14 08:43:53 +02:00
Umherirrender 37c602c532 Replace uses of DB_MASTER with DB_PRIMARY
Change-Id: I20abc845a3c74173ec4a111874c20cdeb1abd1d9
2021-05-13 02:04:54 +02:00
Translation updater bot 1e5834644d Localisation updates from https://translatewiki.net.
Change-Id: Id09e3b29601b67a728055c09d629e4f3d27bb00a
2021-05-12 09:21:36 +02:00
Translation updater bot 0542023128 Localisation updates from https://translatewiki.net.
Change-Id: I360ce62ecf2eb3494d61037cf6747e7c61ce73e7
2021-05-11 09:06:19 +02:00
Translation updater bot 2409941c5f Localisation updates from https://translatewiki.net.
Change-Id: I03f13291f25c098de5979695d6c64cf7b5218644
2021-05-10 08:51:22 +02:00
libraryupgrader 0260a0bbdb build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.8 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* ua-parser-js: 0.7.21 → 0.7.28
  * https://npmjs.com/advisories/1679 (CVE-2021-27292)

Change-Id: Iabdb4f019f43e1babc061ffe0cf391f87239a7cd
2021-05-09 19:43:49 +00:00
Umherirrender e80884549c Use ::class for class name
Change-Id: I43364430206207b49d702c842cdc8a74ca0c4102
2021-05-08 00:03:13 +02:00
Translation updater bot b57d0232e2 Localisation updates from https://translatewiki.net.
Change-Id: I782c74e70da23a5c578e6ac796771ac8aba019ab
2021-05-07 08:41:16 +02:00
Translation updater bot eda3372723 Localisation updates from https://translatewiki.net.
Change-Id: Iaa23caffb9e87b0caa41b91d8cc53d6f1093bf67
2021-05-06 08:54:03 +02:00
James D. Forrester 4dd2a651e1 phpcs: Auto-fix MediaWiki.Usage.StaticClosure.StaticClosure
Change-Id: I6a02902ffaa8a9b497d60b573a0b8e3dbc207ee5
2021-05-04 09:06:42 -07:00
libraryupgrader b3f948c59c build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

Change-Id: I4b2fb7f46b6c0a5c33a6ad25f085de8ae13eb084
2021-05-04 09:05:15 -07:00
Volker E a9f495db13 Unify list-style CSS
`list-style: none none` was a workaround for an IE 6 & 7 rendering issue.
Same goes for `list-style-image: none; list-style-type: none;` combination.
Let's unify to shorthand `list-style: none` for any non-ancient browser.

Change-Id: Ibdfb9a3cbd868d439504b59fa029e8da9a13f70a
2021-05-03 01:41:54 -07:00
Translation updater bot d37c3c697b Localisation updates from https://translatewiki.net.
Change-Id: Ia82cad4e961c651ed3b3aa0e95fbdfe16378376f
2021-05-03 08:36:50 +02:00
jenkins-bot bd8ad42a30 Merge "Remove redundant check" 2021-04-30 08:10:10 +00:00
jenkins-bot 20420275fa Merge "EchoEventMapper: use DISTINCT instead of GROUP BY" 2021-04-30 08:09:22 +00:00
Tim Starling e1d2001040 EchoEventMapper: use DISTINCT instead of GROUP BY
I think the problem the GROUP BY was trying to solve was the potential
for there to be multiple rows with the same (etp_page,etp_event) pair.
There's no unique index to prevent that, and it would cause the event to
be duplicated in the result set. DISTINCT fixes that without generating
an error with sql_mode='ONLY_FULL_GROUP_BY'.

Per https://dev.mysql.com/doc/refman/8.0/en/distinct-optimization.html
DISTINCT is effectively shorthand for a GROUP BY with all the fields.

Bug: T281329
Change-Id: I6a0d578d729c33241a5c5fbd3f4e83f0e5fab83f
2021-04-30 09:40:25 +02:00
Željko Filipin 5d49c02f9f selenium: Add JUnit reporter
JUnit reporter is required to create the XML file that Jenkins uses to
create Test Result Trend chart for selenium-daily-beta-Echo
job.

Bug: T214686
Change-Id: I2dd3787ebfb20f6fee841d264de98bcd1da4b34e
2021-04-29 15:39:36 +02:00
jenkins-bot f43699503b Merge "Use ApiTestBase::doRequestWithToken" 2021-04-29 12:26:18 +00:00
Translation updater bot 573738a957 Localisation updates from https://translatewiki.net.
Change-Id: I2c591e11d0376b0cefebde3304a3f2c110f1699b
2021-04-29 08:54:04 +02:00
jenkins-bot 5dec26429b Merge "Replace usage of deprecated User watchlist methods" 2021-04-28 22:18:47 +00:00
Cindy Cicalese ccfb1dbbda Replace usage of deprecated User watchlist methods
Bug: T281187
Change-Id: Id380a5441e30041b6fb79f6ad1fc0506b6a770f9
2021-04-28 17:17:26 -04:00