Commit graph

7295 commits

Author SHA1 Message Date
Translation updater bot cbe9ba6495 Localisation updates from https://translatewiki.net.
Change-Id: Ib99f8105144d5ac0e988c5dfe01319fc0204eb45
2024-05-21 09:27:58 +02:00
Translation updater bot dedf4a4789 Localisation updates from https://translatewiki.net.
Change-Id: Id61e62729d40c0fb17f0e2dd2ab032a1a7cb235a
2024-05-20 09:25:09 +02:00
libraryupgrader 158a6dfde1 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I43e13791ee164bb3c2b31fae2f7a4e8655fef61e
2024-05-18 06:35:39 +00:00
Translation updater bot a5076946a7 Localisation updates from https://translatewiki.net.
Change-Id: I8d6a32fd272bc81992e12f4a23023927979d19a0
2024-05-17 09:48:38 +02:00
jenkins-bot fa61b08243 Merge "Remove unused FooterNoticeWidget" 2024-05-16 20:52:15 +00:00
thiemowmde 7e3d73c11b More specific type hints and type declarations
Most notably:
* Use the much more narrow UserIdentity interface where possible.
* Make array type hints in PHPDocs as specific as possible.

Change-Id: Id189da4028b7874909277881dcf6539169dd13b6
2024-05-16 10:32:19 +02:00
Translation updater bot 40d6588415 Localisation updates from https://translatewiki.net.
Change-Id: I6807a9189ab0993620b225b4dfea4c73de307401
2024-05-16 09:26:05 +02:00
Bartosz Dziewoński b6b19e1a2f Simplify Special:Notifications layout using flexbox
Compared to the previous approach using table layouts, it is much
easier to control which elements are allowed to extend to maximum
available width, and to provide alternative layouts for mobile.
There should be no visual changes.

It doesn't require using `white-space: nowrap` to prevent elements
from being squished, which will help with T237244.

(These styles are only loaded on Special:Notifications, they don't
apply to the flyout.)

Bug: T237244
Change-Id: I09e692e427f61fabd53b3824a1ed7e4f8e76fad4
2024-05-15 23:41:59 +02:00
Umherirrender 73c6062703 i18n: Replace mw: interwiki with url to mediawiki.org
The interwiki table must not contains an interwiki link with prefix mw:

Change-Id: Ic94758aa2a3949edf325e840a27060c5ad0324da
2024-05-15 23:36:34 +02:00
Bartosz Dziewoński 9699c06f1a Remove unused FooterNoticeWidget
Unused since 1eef6eeee3. After 6 years
we can probably say we're not going to need them again ;)

Change-Id: I9bab88cf56a5ecbcf8e1557f1635dd42e29deefb
2024-05-15 22:10:22 +02:00
jenkins-bot 9187f261c1 Merge "eslint: remove redundant ruleset wikimedia/jsdoc" 2024-05-15 19:59:28 +00:00
Novem Linguae 08f8890055 eslint: remove redundant ruleset wikimedia/jsdoc
According to my testing, rulesets wikimedia/client-es6
and wikimedia/server already contain the ruleset
wikimedia/jsdoc. So I don't think it needs to be declared
twice.

Bug: T365047
Change-Id: I5d7fef0c9594cc4c8765877aa6f783543e8a00ed
2024-05-15 17:31:36 +00:00
Cole White b29a6ae0e5 hooks: remove use of IBufferingStatsdDataFactory
Bug: T363590
Change-Id: Ib35ec605bf1ce3c0c026513f1f4636f991d36ea3
2024-05-15 02:31:08 +00:00
Wandji69 37cac555b8 Use ObjectCacheFactory instead of deprecated ObjectCache method
Bug: T363770
Change-Id: Ib1aaa8fc3e6099bfaf33ec45645f6774addec711
2024-05-14 19:30:17 +00:00
Umherirrender 1c257ea377 Revert "Suppress phan errors caused by UserMerge undeploy"
This reverts commit e8cbb4d662.

Reason for revert: phan dependencies are restored

Depends-On: I0d07c9412bbb63c947255587a88020637e70b80a
Change-Id: Ib6c1709483e4d8518510c4477bf15699cafc1313
2024-05-14 08:40:50 +00:00
Translation updater bot 8c01d91669 Localisation updates from https://translatewiki.net.
Change-Id: Ie33747b32ed1cba261e0c0cda2239183d48e8f88
2024-05-14 09:26:00 +02:00
libraryupgrader d9d40d2a9c build: Updating grunt-banana-checker to 0.12.0
Change-Id: I51198ba993ef6b8d40b2d1a0d2496cbf1753a20f
2024-05-13 21:20:55 +00:00
Translation updater bot 13db5fa7ba Localisation updates from https://translatewiki.net.
Change-Id: Ic0c424e36f8eed5f2d3abcdbb9b00490459a5e5d
2024-05-13 09:27:03 +02:00
thiemowmde 95fddc9228 Make all @covers tags in tests absolute
This is much less confusing for certain IDEs. Without the leading
backslash it looks like a relative patch, but isn't actually one.

Change-Id: I9c9f41869ea0ed063a67f8e65807833d1b3dba2b
2024-05-11 15:18:46 +00:00
Amir Sarabadani e8cbb4d662 Suppress phan errors caused by UserMerge undeploy
Bug: T364610
Change-Id: If52dfcb083995b08bb34b59d2c9e78bf04ca0199
2024-05-10 15:57:25 +00:00
jenkins-bot 9df34c2c7f Merge "Add notheme class to Echo" 2024-05-09 09:28:19 +00:00
Translation updater bot 2e89281bd9 Localisation updates from https://translatewiki.net.
Change-Id: I7f2d7ab31861db0b1f82c25d0b403fbf5aec6545
2024-05-09 09:38:28 +02:00
libraryupgrader c2689ea934 build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* jsdoc-wmf-theme: 1.0.0 → 1.0.1

Change-Id: I14087a944da7e03180965c37e384b8734b044da1
2024-05-08 07:56:09 +00:00
Translation updater bot 53c701f9dd Localisation updates from https://translatewiki.net.
Change-Id: I5020be8531b30e0be64f5e80fcd82d54b48b6f62
2024-05-08 09:23:39 +02:00
bwang b5d2cb2b22 Add notheme class to Echo
Bug: T363779
Change-Id: I80f7005b189a51cbc1d526efc64efa76c706cc5b
2024-05-07 13:34:14 -05:00
Translation updater bot 941cc2cb55 Localisation updates from https://translatewiki.net.
Change-Id: I270c69600f8cf80e123d404a5755e766d7fe35c9
2024-05-07 09:22:34 +02:00
Translation updater bot 8c88843fd7 Localisation updates from https://translatewiki.net.
Change-Id: I56e2b6c37800860330b07f36e8a99c41bf102e02
2024-05-06 09:25:35 +02:00
Siddharth VP e27f4937ff Add API module for sending notifications
Allows users to send notifications to themselves (T306211). For sending
notifications to others, a new permission is created (echo-create),
assigned only to bots by default. For now, only one user can be notified
in one API request.

If the email flag is set in the API params, the notification is also
sent as an email, provided the user hasn't disabled email notifications
for the "api-triggered" category.

This feature is behind a feature flag. Set $wgEchoEnableApiEvents = true
to use.

Adapted from If0267a38be7d454e3d284d30f93c93a828288dd7.
Co-authored-by: TheresNoTime <starling-ctr@wikimedia.org>

Bug: T58362
Bug: T306211
Change-Id: I94642bff5dcb075cb9db862206d59c19edad9fd1
2024-05-04 17:43:39 +03:00
Cole White e4fd529dd6 configure main hook handler to pass StatsFactory service
Bug: T363590
Change-Id: Iadf0deeb8577a44554e66989ed432e119e6cbbe3
2024-05-04 08:10:41 +00:00
Cole White 706422006d hooks: add StatsFactory support
Bug: T363590
Change-Id: I88579655b72fb982f50f4304997bbba197f89f47
2024-05-04 07:41:54 +00:00
Translation updater bot 33d24a2240 Localisation updates from https://translatewiki.net.
Change-Id: I4c7cfcd7fac5c890c856583656a43715d75300a7
2024-05-03 09:28:32 +02:00
libraryupgrader ced65ef4e9 build: Updating dependencies
composer:
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

npm:
* ejs: 3.1.8 → 3.1.10
  * https://github.com/advisories/GHSA-ghr5-ch3p-vcr6

Change-Id: I510d6fbda21f1470e794a4fc4ac437bb425ee7c5
2024-05-02 04:15:59 +00:00
Ed Sanders df8fbfed38 Replace jsduck with jsdoc
Change-Id: I2a1bfedeba66c9ec1b3ee2640a77d5ef8782530c
2024-04-30 15:29:06 +01:00
Umherirrender 96ef4cfd2d Migrate to IReadableDatabase::newSelectQueryBuilder
Also use expression builder to avoid raw sql

Bug: T312333
Change-Id: I6ce22de6637fccca8cf86a405bc023f268ff693b
2024-04-28 01:05:10 +02:00
Translation updater bot cc92fe758a Localisation updates from https://translatewiki.net.
Change-Id: I9daa7c5b1779b33e6bd5f940a460de1070ee7846
2024-04-24 09:18:43 +02:00
Translation updater bot 33fc98db01 Localisation updates from https://translatewiki.net.
Change-Id: I4b50050725756cb83c2c5d13d3dbd1770757366b
2024-04-23 09:28:23 +02:00
Translation updater bot db8e8f66b9 Localisation updates from https://translatewiki.net.
Change-Id: Ifc22ae3f18db928d283163807fcdfabf741281cd
2024-04-22 09:28:10 +02:00
jenkins-bot e8541912d5 Merge "Make use of native str_starts_with() where possible" 2024-04-20 22:11:37 +00:00
jenkins-bot 03309bd42d Merge "tests: Return FakeResultWrapper from mocked IReadableDatabase::select" 2024-04-19 20:42:26 +00:00
Umherirrender 760cfad682 tests: Return FakeResultWrapper from mocked IReadableDatabase::select
To match the return type documentation of IReadableDatabase::select

Also fix a default value for IReadableDatabase::selectRowCount

Change-Id: I510bd261b64b5c2cef227c081a2fe34801f54121
2024-04-19 21:52:50 +02:00
thiemowmde fa23779a17 Stop using the Xml class in this codebase
Many of the Xml::… methods are deprecated. This code here is not
generating XML anyway, but HTML.

Bug: T341775
Change-Id: I69edf4606bc5cb429d48c8188c691b44575e2d93
2024-04-19 20:41:40 +02:00
thiemowmde d498e09e49 Make use of native str_starts_with() where possible
Change-Id: If95d0c801e397ca00b0c0d792c28f972c642b377
2024-04-19 20:36:31 +02:00
Translation updater bot dab82a9c12 Localisation updates from https://translatewiki.net.
Change-Id: I981da1b6951a24c7be201396efb58e8794b2773d
2024-04-19 09:46:26 +02:00
Umherirrender 2feece8bad IReadableDatabase::select cannot return false
Remove check for false from IDatabase::select as this is not possible
A DBQueryError is thrown (documented since efda8cd3 / I056b7148)

Change-Id: I465a9158aa6430e7ff8a5a83fe55c5944315aa40
2024-04-18 22:53:15 +02:00
Translation updater bot a180cf3623 Localisation updates from https://translatewiki.net.
Change-Id: Ia93b288dad9c14c264fe35bdadfc243f1944c2c1
2024-04-18 09:20:22 +02:00
jenkins-bot 5840fb4daa Merge "build: Updating eslint-config-wikimedia to 0.27.0" 2024-04-17 15:22:31 +00:00
Translation updater bot 1580be02df Localisation updates from https://translatewiki.net.
Change-Id: Ic0119c9629a35ba75c3fb3bcdeb0d676d19a55b9
2024-04-17 09:27:59 +02:00
libraryupgrader 049709a167 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I682039a6f58a820ab46ab5d596922264f36509c9
2024-04-17 04:55:13 +00:00
Pavel Astakhov 4c35cecea0 Fix for Watchlist Notifications for deleted pages created in 1.35
Bug: T286192
Change-Id: I9d4ab915ca33a3d52018470f1147eb77f5590c86
2024-04-16 17:02:26 +00:00
Translation updater bot 3300bbfddb Localisation updates from https://translatewiki.net.
Change-Id: I5d4ea14a59d0e87916bf8eddd28ffe662e429409
2024-04-16 09:27:55 +02:00