Commit graph

7073 commits

Author SHA1 Message Date
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
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
Translation updater bot 3300bbfddb Localisation updates from https://translatewiki.net.
Change-Id: I5d4ea14a59d0e87916bf8eddd28ffe662e429409
2024-04-16 09:27:55 +02:00
jenkins-bot 71ec391deb Merge "Migrate to IDatabase::newInsertQueryBuilder/newUpdateQueryBuilder" 2024-04-14 18:00:20 +00:00
Umherirrender aa41e1e292 Migrate to IDatabase::newInsertQueryBuilder/newUpdateQueryBuilder
UpdateQueryBuilder does not return a value,
removed the return value from the functions as well,
deprecated since 1.33

Change-Id: I3b934a5e6d5a53c07ec5233da00d9f53ba7bae92
2024-04-13 22:51:32 +02:00
Umherirrender d2eb46e7b9 Migrate to IDatabase::newDeleteQueryBuilder
Change-Id: I516c179df464be68352809873dbff44dc3c642f1
2024-04-12 22:45:45 +02:00
Translation updater bot ae71de9eff Localisation updates from https://translatewiki.net.
Change-Id: Ifab77dcb572717b1da7c224ece4cf39b1882d555
2024-04-12 09:42:07 +02:00
Translation updater bot deca21c003 Localisation updates from https://translatewiki.net.
Change-Id: I95971bdd797e7e9105255a862a2b70ab1d78618a
2024-04-11 09:21:22 +02:00
Translation updater bot d960ff9759 Localisation updates from https://translatewiki.net.
Change-Id: I0de22702c9ba3ef4e756ccc76b452ae8b750bf13
2024-04-10 09:20:46 +02:00
Translation updater bot df2c91a6fe Localisation updates from https://translatewiki.net.
Change-Id: I945ad82e1fa19b3c2633090eb34b7bc53f6c517d
2024-04-09 09:26:31 +02:00
Translation updater bot 9f2cd9f7e5 Localisation updates from https://translatewiki.net.
Change-Id: I4dd44da7982944f150bbd016ddf8143a228e3300
2024-04-08 09:25:37 +02:00
Translation updater bot 72c20cb1ea Localisation updates from https://translatewiki.net.
Change-Id: I9df37971ecbb3c7d44d9f03925385e8b68ab7ae9
2024-04-05 09:38:04 +02:00
Fomafix 2d9ffb7301 Inject services into NotificationDeleteJob
Change-Id: I0988e2d486eaf43cb999d38c0d2a0c81a7930cfd
2024-04-04 14:56:38 +00:00
Translation updater bot ffac32cff9 Localisation updates from https://translatewiki.net.
Change-Id: Ibc1a791f2e021eb8b688842ae4a8782615ea609c
2024-04-04 09:37:57 +02:00
jenkins-bot f13b8f2ed1 Merge "Migrate to IDatabase::newInsertQueryBuilder for upsert" 2024-04-03 20:14:19 +00:00
Translation updater bot e4ed9f4679 Localisation updates from https://translatewiki.net.
Change-Id: Ia544217080827b519770dc7d8487135f011645a2
2024-04-03 09:23:36 +02:00
Umherirrender b8e54d8e2c Migrate to IDatabase::newInsertQueryBuilder for upsert
Change-Id: I532b206b6c1d652369d4f986d0f5b91958a1ef47
2024-04-02 16:38:05 +02:00
Translation updater bot 6bae4af694 Localisation updates from https://translatewiki.net.
Change-Id: Ie7af9f4532b3767e92778a3538d9b392e52baa1c
2024-04-02 09:21:22 +02:00
Umherirrender 297ed70cb2 Replace isset() with null check in DiscussionParser
Found usage of isset() on expression self::$diffParser that appears to
be always set. isset() should only be used to suppress errors. Check
whether the expression is null instead.
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#isset

Change-Id: Iaaad420ad05b8352f8a7f162c746591749c8b3e9
2024-04-01 13:37:27 +02:00
Translation updater bot ced572b369 Localisation updates from https://translatewiki.net.
Change-Id: If449ea973b55a75e6419745b0c861ab50ecb6466
2024-04-01 09:22:34 +02:00
Translation updater bot c342de286e Localisation updates from https://translatewiki.net.
Change-Id: Iad197b4d94d1e6267864a69afe2fef8a2b6566fc
2024-03-29 08:46:40 +01:00
Translation updater bot e5983ee1a3 Localisation updates from https://translatewiki.net.
Change-Id: I3b82c93d2a492dab1d6ac08bd4c72a20237051b1
2024-03-26 08:19:32 +01:00
Translation updater bot 80430a0096 Localisation updates from https://translatewiki.net.
Change-Id: I1e08c0040626341eb6559206aedd6d61ffc65b8d
2024-03-25 08:35:50 +01:00
Translation updater bot c46d9a8ac0 Localisation updates from https://translatewiki.net.
Change-Id: Ibecaaf870bf7a4a0c629102e0120af3695d03952
2024-03-22 08:44:14 +01:00
Translation updater bot 033aaa39a5 Localisation updates from https://translatewiki.net.
Change-Id: I43ec617fa284a449a7f4eaab27266eefa423c36d
2024-03-21 08:55:03 +01:00