Commit graph

7042 commits

Author SHA1 Message Date
Umherirrender b34e2c0697 Fall back to local notification count when no global user is found
When MWEchoNotifUser::getGlobalMemcKey does not find a global user,
MWEchoNotifUser::getCountsAndTimestamps can return null for 'global' key

Just fall back to the local count/timestamp

Bug: T317330
Change-Id: Ie11b0c93c0a45fb1f873bd26788beaa3d0c6a9d7
2022-10-26 10:33:02 +00:00
Thiemo Kreuz db79d76d83 Use PHPUnit's shortcuts where it makes sense
Notably: any() is the default anyway. It doesn't really make the
tests more specific or better readable when we repeat it all the
time.

Change-Id: I56d201bfce454587b00015b7208f313dd8ed9624
2022-10-26 11:53:57 +02:00
Translation updater bot 6f441ccc0d Localisation updates from https://translatewiki.net.
Change-Id: I12b4b597882ab41a5aef6e5e3d460a642abb2316
2022-10-26 08:19:06 +02:00
libraryupgrader 155c64bf04 build: Updating npm dependencies
* mocha: 9.2.1 → 9.2.2
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3
* recursive-readdir: 2.2.2 → 2.2.3
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I8d401a8fa90a0698223e527b9c42ffd6658ae3ba
2022-10-26 01:45:34 +00:00
Translation updater bot f218e1a4d2 Localisation updates from https://translatewiki.net.
Change-Id: I0157977c816b99850e274ad96262befb7de65850
2022-10-24 08:22:38 +02:00
jenkins-bot f88c75c2e9 Merge "Add PreferencesGetIconHook" 2022-10-20 16:53:18 +00:00
Translation updater bot ea0b478e04 Localisation updates from https://translatewiki.net.
Change-Id: Ia67deacfd7eadf1afc976d664ecd35c477991135
2022-10-19 08:19:45 +02:00
Translation updater bot 43bb609aed Localisation updates from https://translatewiki.net.
Change-Id: I1217433ae7bbdc79dd55722da68b5fcab1777feb
2022-10-18 08:22:25 +02:00
Translation updater bot cd01f9b20b Localisation updates from https://translatewiki.net.
Change-Id: I5df55decc3ccbccd2f004cb8a7d96950e12d1b31
2022-10-17 08:21:09 +02:00
jenkins-bot 391ebd4b8b Merge "Api: Minor code updates" 2022-10-15 18:04:22 +00:00
jenkins-bot 7b68f3328b Merge "Namespace Api classes" 2022-10-15 18:04:20 +00:00
suecarmol 97209c3330 Add PreferencesGetIconHook
Added PreferencesGetIconHook to add an icon on the Special:Preferences section.

Bug: T317419
Depends-On: I6d5730d47e7595b1705787995fe5db2fe734d7f5
Change-Id: Ia5eefad09f533f4654bbda123b4588f246bc1ace
2022-10-13 20:00:13 -05:00
jenkins-bot 7c63b00b4c Merge "build: Updating mediawiki/mediawiki-phan-config to 0.12.0" 2022-10-13 13:21:06 +00:00
Translation updater bot 9f86ed337b Localisation updates from https://translatewiki.net.
Change-Id: If7bc4171242163e0e70e90d575e65c4e1adc1b73
2022-10-13 08:08:35 +02:00
Translation updater bot c49830592b Localisation updates from https://translatewiki.net.
Change-Id: I2e1d43997defb9dacc97f93414d8599404704ff0
2022-10-12 08:07:41 +02:00
Translation updater bot e80220ce67 Localisation updates from https://translatewiki.net.
Change-Id: I209875d148cf5e44b2522fe3a6d56211ec05ce03
2022-10-11 09:16:29 +02:00
libraryupgrader 4835b6b1cb build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Id35b9a47ce7ad7c96e70f43b2f4fe0933e12a9d4
2022-10-10 21:03:50 +00:00
Translation updater bot 052f0ae9d1 Localisation updates from https://translatewiki.net.
Change-Id: I971ec573a165898b5a82e7dca1da7eef3e2a58b7
2022-10-10 10:20:01 +02:00
libraryupgrader ea4c3f22b0 build: Updating grunt-banana-checker to 0.10.0
Change-Id: Ifec81b0ee28a8cba1c21ca1f1f02daae01f2eecc
2022-10-06 22:05:11 +00:00
Translation updater bot 58db88def4 Localisation updates from https://translatewiki.net.
Change-Id: Id4d04aef4cffac6f89bda0a49de13052a38e4fac
2022-10-06 08:15:32 +02:00
Translation updater bot 5606cc7332 Localisation updates from https://translatewiki.net.
Change-Id: Ie2c4de04cabc47d2f23bd74f1ff201b98fe3b219
2022-10-05 08:24:32 +02:00
Translation updater bot 6c93a01a58 Localisation updates from https://translatewiki.net.
Change-Id: I4594b418c6f74b04f05e017ae1f4051ec9c1d8c2
2022-10-04 08:29:37 +02:00
jenkins-bot 9ae0b218c0 Merge "Tests: More complete mock to prevent php 8.1 warning" 2022-10-03 21:21:21 +00:00
jenkins-bot 88b30b31a6 Merge "Add a description for Special:Preferences layout" 2022-10-03 20:51:39 +00:00
suecarmol 5f7cbee325 Add a description for Special:Preferences layout
Added a description that will be displayed in the Special:Preferences mobile layout

Bug: T311717
Change-Id: I7cc9061b1b9bc209a035fa16801a778d7631ae3f
2022-10-03 20:32:18 +00:00
Brian Wolff dbe112dfa8 Tests: More complete mock to prevent php 8.1 warning
fixes:
ContainmentSetTest::testCachedListInnerListIsOnlyCalledOnce
strtr(): Passing null to parameter #1 ($string) of type string is deprecated

Change-Id: I9bb916383eda1176a2d56c06770a60c28431dfda
2022-10-03 11:50:04 -07:00
Translation updater bot 6d053d3389 Localisation updates from https://translatewiki.net.
Change-Id: I5550a49c2932ef79e08493061ac3635016ffac07
2022-10-03 09:45:37 +02:00
Reedy a83e588549 Api: Minor code updates
Change-Id: Iea3c38d6c9ddcb9b03886f4fdab3db9fb03bc462
2022-10-03 00:05:53 +01:00
Reedy 38a9330753 Namespace Api classes
Change-Id: I414234f10c16b8ccaa7ddbaf8e9033e70dfceab8
2022-10-03 00:05:21 +01:00
Translation updater bot dc2834cccd Localisation updates from https://translatewiki.net.
Change-Id: Ifbae6f76f262750fb66c8a8b78fa1ea56398cd5a
2022-09-30 08:53:38 +02:00
Translation updater bot 1fbbbe2cbb Localisation updates from https://translatewiki.net.
Change-Id: If3c242a33ad87249eef1e9181239a780f803b27d
2022-09-29 08:27:17 +02:00
Translation updater bot 69c0766697 Localisation updates from https://translatewiki.net.
Change-Id: Icaacdaae87c6d5686fc30bf51436d9e26db02bfe
2022-09-28 08:21:14 +02:00
Translation updater bot cfa4a04fb0 Localisation updates from https://translatewiki.net.
Change-Id: I324085952ae8b516be6df292569760637494ac0e
2022-09-27 08:32:07 +02:00
Translation updater bot 26f5384f43 Localisation updates from https://translatewiki.net.
Change-Id: I876effedcc44f9d802ba498c3c033a5b3e3bbc3e
2022-09-26 08:15:05 +02:00
Jon Robson ddc11bfe8e Drop badge styles for Vector
These have been moved to the Vector skin

Bug: T257143
Depends-On: If52986fe56b65479adabe8233b0fc6df164b5376
Change-Id: Ibf11821e863d3089d60cf5c0959c4c5ddc5ce4f2
2022-09-23 10:55:00 -07:00
Jon Robson e9d656e1cd Add icon definitions to Echo badges
This should result in no visual change to Echo, but allows
us to change the Vector implementation here.

Removes all styling when vectorvisualenhancementnext=1
is enabled.

Bug: T257143
Change-Id: Ice602ba246b51252ff0527a531aa4d5d3baee64e
2022-09-23 17:34:13 +00:00
Sam Smith 844a64ff9a MWEchoEventLogging: Use $revId of -1 for Echo* schemas
EventLogging::logEvent() overwrides the $revId parameter when the schema
has been migrated to the Event Platform. Add a note and use a $revId of
-1 to make this consistent with other calls to EventLogging::logEvent()
for schemas that have been migrated to the Event Platform [0].

[0] https://codesearch.wmcloud.org/search/?q=%3A%3AlogEvent%5C(%20%27%5Cw%2B%27%2C%20-1

Bug: T318263
Change-Id: I5fa515d853326307619b044d25c2f672bcb6de63
2022-09-23 12:15:12 +01:00
Translation updater bot 65bf8cda52 Localisation updates from https://translatewiki.net.
Change-Id: Id38c241390be46286ec5e22360871394709ca484
2022-09-23 08:29:02 +02:00
Jon Robson 2e58065ddf Echo should fire onInitialize event after rendering of badge
This allows skins to make modifications to the final output.
This will be used in Vector to make the Echo icon consistent with
other icons.

Bug: T257143
Change-Id: I9fe8c921956ede164d93cb1f42647cf4b80ca976
2022-09-22 08:49:44 -07:00
Translation updater bot 6bbba65667 Localisation updates from https://translatewiki.net.
Change-Id: Iaeb6373869050c6ff09ec596278b0b877b07d2fa
2022-09-22 08:45:58 +02:00
Volker E 2abf220e58 styles: Remove IE 8-9 special way
`background-color: transparent` is the way to go.

Change-Id: I34598d0e543cda3dd711fca88986a663a3a7519b
2022-09-15 19:20:33 -07:00
Translation updater bot 4311937dde Localisation updates from https://translatewiki.net.
Change-Id: I1872b254d0652f5c3cafd24158af0de57b953294
2022-09-15 09:54:54 +02:00
Translation updater bot 1be18dba19 Localisation updates from https://translatewiki.net.
Change-Id: I50dd8c8bfd002b26ca19ba3a64921a34a647ba90
2022-09-12 09:36:23 +02:00
Translation updater bot cc8055db00 Localisation updates from https://translatewiki.net.
Change-Id: Ic7ba87f981cb116c99cccfa21b19e22ccc6735aa
2022-09-09 10:10:09 +02:00
Translation updater bot 693c9c0e8b Localisation updates from https://translatewiki.net.
Change-Id: I8deb7870be699f40e3f041dce02c3e292b8a134d
2022-09-08 09:59:12 +02:00
Translation updater bot 6608d292dd Localisation updates from https://translatewiki.net.
Change-Id: Ifc0142ab5151b45c41f9563850a489b8e3cb1521
2022-09-07 09:54:39 +02:00
Translation updater bot b681c7b1df Localisation updates from https://translatewiki.net.
Change-Id: I9378035b50434b8139b9ecb6168f163c24214814
2022-09-05 10:10:37 +02:00
jenkins-bot 14cd497069 Merge "extension.json: Make mention-success a message notification" 2022-09-02 10:03:46 +00:00
Translation updater bot 96c83dc8c5 Localisation updates from https://translatewiki.net.
Change-Id: I3e98d6e2aba2282402e07d55dd0a2d2c27bf2544
2022-09-01 09:33:39 +02:00
Translation updater bot d67fcefdf0 Localisation updates from https://translatewiki.net.
Change-Id: I261b102b1aa5fa80676fc54d21551143f54a612e
2022-08-30 09:29:47 +02:00