Commit graph

6024 commits

Author SHA1 Message Date
mbsantos 2f21c2649e push: document description of topic parameter
Bug: T285573
Change-Id: I875681ca3bdfe006d68b15f3cffc0089c9677ef1
2021-07-01 16:10:00 +02:00
Translation updater bot 3ec28cda42 Localisation updates from https://translatewiki.net.
Change-Id: I4d9790170a4947f6e59a1a782a7f6a418a427730
2021-06-30 08:26:03 +02:00
jenkins-bot 31d115e9f3 Merge "Remove probably outdated error suppression" 2021-06-29 17:49:35 +00:00
Matěj Suchánek 4b4954ac40 Remove probably outdated error suppression
https://bugs.php.net/bug.php?id=50688 was closed as fixed
in 2017 when PHP 7.0 was only supported upstream.
We already require PHP 7.2.

Change-Id: Ie9801e38915da634e31c91ebdcb61226e0ae5712
2021-06-29 17:29:23 +02:00
DannyS712 0099c45e54 AttributeManager: accept UserIdentity objects
Inject a UserOptionsLookup to replace deprecated
User::getOption()

Change-Id: I177f6d3486f987073e5d745077f0abfe9ae85aca
2021-06-29 06:41:47 +00:00
DannyS712 66a290500c EventLogging: accept UserIdentity objects
Replace User::getEditCount with UserEditTracker service

Change-Id: Idcf98dc6b1e88f9301b731b1d8296f613464a364
2021-06-29 06:12:59 +00:00
DannyS712 2e1757eaaf NotificationMapper: accept UserIdentity objects
No need for a full User, only the user's id is retrieved

Change-Id: Ibf4005c83d66d846b7e1ab711cd135c9ae08964a
2021-06-29 05:53:41 +00:00
jenkins-bot 39afffb297 Merge "Use WikiPage::doUserEditContent() instead of ::doEditContent()" 2021-06-28 14:06:34 +00:00
Translation updater bot eca40e5386 Localisation updates from https://translatewiki.net.
Change-Id: I470e0c5b9d68fa18fd9e0b22062f829c64521d51
2021-06-28 09:23:00 +02:00
Reedy 532faf27f5 Reorganise MySQL/SQLite patches
SQL files that are MySQL/SQLite specific have been moved to subfolders

Change-Id: Ib677815f2fb6a4e3aa0236a31160efaf761ad4ef
2021-06-26 16:24:14 +00:00
jenkins-bot 7b0abf6d84 Merge "Echo notification oo-ui-popupWidget-anchor should point to icon" 2021-06-24 17:58:14 +00:00
Translation updater bot 932764747b Localisation updates from https://translatewiki.net.
Change-Id: I76a629365f03f4563af2065a025c7a7eb927b68e
2021-06-24 08:26:57 +02:00
DannyS712 68f7a9a985 Use WikiPage::doUserEditContent() instead of ::doEditContent()
::doUserEditContent() is available since 1.36 as a replacement
for ::doEditContent(), which has been deprecated. Extension
already requires MediaWiki 1.37+, so the method is always
available.

Bug: T255507
Change-Id: Iee5de356dbccd453a3083e0a58859b4cd83a946b
2021-06-24 05:30:07 +00:00
jdlrobson 088697a73d Echo notification oo-ui-popupWidget-anchor should point to icon
In Vector, these rules result in the anchor pointing to the wrong
place. They seem to be improve things in Minerva, so these are restricted
to that skin.

Bug: T276566
Change-Id: If871ab59fea519b48568781ffd9ddf6640006385
2021-06-23 08:47:09 -07:00
Translation updater bot 7d39fca924 Localisation updates from https://translatewiki.net.
Change-Id: I84f2d2c40464352cfae7dd4eae7c88052a3ff674
2021-06-22 08:09:24 +02:00
jenkins-bot 19f34998ab Merge "Localisation updates from https://translatewiki.net." 2021-06-21 13:19:18 +00:00
Translation updater bot 22b37883a1 Localisation updates from https://translatewiki.net.
Change-Id: I0c8c4d2dfae8712d4729826854f8e5e400d00faa
2021-06-21 14:11:38 +02:00
Amir Sarabadani 6a1a86223c Replace class_exists with ExtensionRegistry
Bug: T274275
Change-Id: Id84c112ee94161b9be9c9d8565af235b5a33d7ef
2021-06-21 14:04:13 +02:00
Translation updater bot f6aa3d4498 Localisation updates from https://translatewiki.net.
Change-Id: Iad2233b9a8ac1909beed9a6b9ef88bd83ba1542f
2021-06-18 08:20:46 +02:00
Translation updater bot ea5a353805 Localisation updates from https://translatewiki.net.
Change-Id: Ia069e2b4d1871199c7bd19c0898927bc993a4125
2021-06-17 08:20:35 +02:00
Translation updater bot d1cc45fc0a Localisation updates from https://translatewiki.net.
Change-Id: If8a491d7cbec60a1b54d51100072b134871f737c
2021-06-15 08:32:32 +02:00
Translation updater bot 20bbc41e56 Localisation updates from https://translatewiki.net.
Change-Id: Icb1ebb103c23ae3ecfe70002dd154bde78d0954f
2021-06-14 08:36:48 +02:00
Translation updater bot aaf14546b5 Localisation updates from https://translatewiki.net.
Change-Id: I9dc88ba342663b1b5b474d69faca4cc285aa582f
2021-06-11 08:33:25 +02:00
Bartosz Dziewoński f2da1ff813 Fix MonoBook orange banner hover styles
Follow-up to 2583f803c3.

Bug: T284496
Change-Id: Ib476d28fc2a89a7722b6218a5fe557157c863d7d
2021-06-08 17:54:09 +00:00
Jan Drewniak 6ccbea0d5a Set .mw-echo-alert class on link instead of list-item
Update to 7880cc18, restores ".mw-echo-alert" class on "class" property
instead of on "link-class" property.

Bug: T284496
Change-Id: I11a04fa5a7e9d0b34e62733ee537a43549d13477
2021-06-08 13:29:59 +02:00
jenkins-bot ca18c1d5fb Merge "Add talk notification instead of transforming the talk link" 2021-06-07 19:37:48 +00:00
Translation updater bot 3d6bac42ac Localisation updates from https://translatewiki.net.
Change-Id: Ida79c6aaef7a4bb4b8d989f483b14f1c747e31d3
2021-06-07 08:41:54 +02:00
Nicholas Ray 2583f803c3 Add talk notification instead of transforming the talk link
Note: This change would potentially affect all skins including modern
and legacy Vector and others.

The status quo when a talk notification is present is to transform the
talk link into an orange notification message. One option is to leave
the talk link and **add** a notification instead of transforming it.

This will result in two elements #pt-mytalk and #pt-talk-alert
This will interfere with styles targeting #pt-mytalk .mw-echo-alert
This impacts user styles but not anything in production.

Bug: T283811
Change-Id: I3e4be1381f9a2e9986b94b3b13df5ed64d09a59d
2021-06-04 09:33:50 -07:00
Translation updater bot cb09143082 Localisation updates from https://translatewiki.net.
Change-Id: Ie172d0b870974e4f189e52419b6dd420c5cc9caf
2021-06-04 08:36:21 +02:00
jenkins-bot 76f525b69f Merge "SpecialNotifications: Load mark-as-read icon in no-JS mode" 2021-06-03 17:10:37 +00:00
jenkins-bot 36bf74256c Merge "Echo hook needs to consider other hook modifications" 2021-06-02 22:15:51 +00:00
jdlrobson 4c58a85bb1 Echo hook needs to consider other hook modifications
Follow up to 7880cc1

Bug: T274428
Change-Id: Ia4520a3df28027d43ecdeb217b108669e7cb6795
2021-06-02 17:25:00 +00:00
Translation updater bot fa3b771270 Localisation updates from https://translatewiki.net.
Change-Id: I1aa409af889869e5130afda91cf3f636f601f07c
2021-06-02 14:35:07 +02:00
Bartosz Dziewoński ab6a37f4e1 SpecialNotifications: Load mark-as-read icon in no-JS mode
Follow-up to 34e3d5feba.

Change-Id: I780baad06e16b29a8a1b033af60f14c33368119b
2021-06-01 23:02:59 +02:00
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
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