Commit graph

7236 commits

Author SHA1 Message Date
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
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