Commit graph

3177 commits

Author SHA1 Message Date
Daimona Eaytoy 364b71f3ec Replace deprecated MWException
Also avoid throwing Exception directly and use RuntimeException instead,
not documenting it with @throws as it's unchecked, as per
https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Exception_handling.

Bug: T328220
Change-Id: I19df0e7e66d1e421d038109b9d2db9c0b63c709c
2023-06-07 17:44:23 +02:00
Aaron Schulz 61d8028d69 Use WRITE_BACKGROUND in CaptchaCacheStore and rename "cache" to "store"
This lays some groundwork for migrating from the main stash to a future
stash that resides in the primary datacenter.

Bug: T336004
Change-Id: I70ee88e9371af19890cb9e3da612d2bb7dc335e8
2023-06-06 12:59:42 -07:00
Translation updater bot 5bf8c7218c Localisation updates from https://translatewiki.net.
Change-Id: I659c48df854617b23bb62a933de8b66b7e56ccda
2023-06-02 09:23:37 +02:00
Translation updater bot 0c75405880 Localisation updates from https://translatewiki.net.
Change-Id: I8322e92d1fdd64bfc2e599ed90d798234933ff82
2023-06-01 08:43:02 +02:00
libraryupgrader 2afac57410 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: I7aba627c9f3030888ea3453a70a98d291be72f87
2023-06-01 03:19:05 +00:00
Umherirrender 725f9ee4b5 tests: Add basic test for HookRunner
Add a basic unit test for HookRunner to improve coverage and
validate arguments between hook runner and hook interfaces.

Change-Id: Ib0c1f79fe724c1567081cec62894e2d35d00b812
2023-05-31 23:14:29 +02:00
Translation updater bot 2dafc97848 Localisation updates from https://translatewiki.net.
Change-Id: I8f8090470fcc82f782103d603ba2dd36276d4792
2023-05-31 08:20:01 +02:00
Translation updater bot 2e8be5c70f Localisation updates from https://translatewiki.net.
Change-Id: I4acf8179f89834d5f037df4f7d5ebf244f98b623
2023-05-30 08:56:33 +02:00
Translation updater bot 207c445388 Localisation updates from https://translatewiki.net.
Change-Id: I7c111fe400d5297374742645a0786eebb79e306b
2023-05-29 09:58:54 +02:00
Amir Sarabadani 209db3647a Improve support for read-new wikis with externallinks
Depends-On: I921728974cde0a095fb3034fc80f7f4bb046f380
Bug: T337149
Change-Id: I996f99acb2a0f26b177fff097406b1d935467f80
2023-05-25 11:50:34 +02:00
Translation updater bot d40ae3413a Localisation updates from https://translatewiki.net.
Change-Id: I19e32b7b41c81cc52f085412d16fb65e61e18e51
2023-05-23 08:22:28 +02:00
Translation updater bot 090d9530c0 Localisation updates from https://translatewiki.net.
Change-Id: Ie93c05d9bca5060faddf0a8530823eb25ce1186f
2023-05-22 08:45:11 +02:00
Umherirrender 1a440848fa tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: I74e62a477cb8657da93180cd71432a95e70fff4b
2023-05-20 11:59:50 +02:00
Umherirrender 65470a1c77 tests: Use static provider in AuthenticationRequestTest
Shows up a deprecation message

Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d
Change-Id: If9787b27c4598711a0e5127385dbee57dab55d66
2023-05-19 22:26:53 +02:00
jenkins-bot 40d826243e Merge "Update moved class FauxRequest" 2023-05-19 14:40:00 +00:00
jenkins-bot c42ab7447c Merge "Update moved class RawMessage" 2023-05-19 12:38:48 +00:00
gerritbot f6bd4eb1aa Update moved class FauxRequest
See T321882. Moved in I832b133aaf61ee

Bug: T321681
Change-Id: Ic7accc3410547a0d1ff9d7a04836a7f6e64872f9
2023-05-19 14:15:24 +03:00
James D. Forrester b2629c909b Hooks: Fix EmailUserHook call documentation to match new signature
Change-Id: I917534c6b1b613793893e514a9116ba0468e272a
2023-05-19 14:14:54 +03:00
gerritbot 90270478b9 Update moved class RawMessage
See T321882. Moved in I195cf4c67bd514

Bug: T321681
Change-Id: I917534c6b1b613793893e514a9116ba0468e272e
2023-05-19 10:30:37 +00:00
Umherirrender c9511bb825 Replace $wgOut with RequestContext::getMain()
Bug: T252978
Change-Id: I5e677fde89accfa6363824ef4cbd8808097e00f3
2023-05-15 22:32:44 +02:00
jenkins-bot 52af58f4b8 Merge "Update moved class EditPage" 2023-05-11 06:37:54 +00:00
Translation updater bot 809bfac94c Localisation updates from https://translatewiki.net.
Change-Id: I1ed48990b690fb77cf7b8e4ac3a9a8700852dc96
2023-05-10 08:40:20 +02:00
gerritbot b8c790cd14 Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: Ifa1c20cd4e6ef6856194d4228dd542a9e2fda43f
2023-05-07 01:08:19 +02:00
gerritbot b3faf4d28b Update moved class ContentSecurityPolicy
See T321882. Moved in Ic809656a31

Bug: T321681
Change-Id: Ifee5e52ff0f67269fda4d90cd3dec1b6f89b7e8a
2023-05-06 21:18:56 +00:00
Translation updater bot f3f5fba84f Localisation updates from https://translatewiki.net.
Change-Id: I99853967bb0b6811e76134fd3634e5c4ed2097cf
2023-05-05 10:38:25 +02:00
libraryupgrader bf55c79938 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I4802dd63d3d8d131e24ab901754bd30222e24ff5
2023-05-05 03:05:24 +00:00
libraryupgrader d8bf746f73 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: I6b9b7c44a6038272f8b959ff424e2bcc7bd0acde
2023-04-29 01:50:55 +00:00
gerritbot 1166c1e2e9 Update moved class WikiMap
See T321882. Moved in I60cf4b9ef02b9d5

Bug: T321681
Change-Id: I28b86e3c2b5b4852400c001c1a0594d77629c965
2023-04-25 09:53:06 +00:00
Translation updater bot 57a0eacfa7 Localisation updates from https://translatewiki.net.
Change-Id: Ic63caeb9bed3fa22582e8b0968b978b884e76970
2023-04-25 08:47:44 +02:00
Amir Sarabadani 70a398c036 Use core's externallinks lookup
Depends-On: I8ae9ef388957b0c04efa281f3bc3b5796bec17fe
Bug: T326251
Change-Id: Ibb0f01bdb7a7286389732d45ed0177ca4dfbf2a5
2023-04-24 19:55:10 +02:00
Translation updater bot fe523cce95 Localisation updates from https://translatewiki.net.
Change-Id: I830477d6bf82c2a5ec1ddc4d751c1a13875e0f00
2023-04-21 08:59:21 +02:00
Translation updater bot f1265a799d Localisation updates from https://translatewiki.net.
Change-Id: I20950e78134520d281fdfacb4a0a6379616b9bac
2023-04-19 08:26:31 +02:00
Translation updater bot 825a892858 Localisation updates from https://translatewiki.net.
Change-Id: I97ae651fb22b22ef3c459e2cbca33cc0f849eae8
2023-04-18 09:00:25 +02:00
Translation updater bot 25fc7b06a5 Localisation updates from https://translatewiki.net.
Change-Id: If3c0d9eb52f8b7d6b9a22d88a7743e3fb0ba9b43
2023-04-17 09:12:59 +02:00
Translation updater bot 4136a837fe Localisation updates from https://translatewiki.net.
Change-Id: Ie13ea5439f29beeaea3cc5bd53d5b2a18f98c5a5
2023-04-11 09:13:36 +02:00
Translation updater bot c248792347 Localisation updates from https://translatewiki.net.
Change-Id: I8d272ba54bcbad7da771ce9ff3376fa38493cd2f
2023-04-10 09:20:38 +02:00
Translation updater bot 54aac3ab94 Localisation updates from https://translatewiki.net.
Change-Id: Ia196963a98861d4290df0fb1139eedf96a4fc28d
2023-04-03 09:17:29 +02:00
Translation updater bot b048f3c194 Localisation updates from https://translatewiki.net.
Change-Id: Ib179a661a6876c75b9566dd34f2684d68f072ed5
2023-03-31 09:57:28 +02:00
Translation updater bot 3ba28a68d9 Localisation updates from https://translatewiki.net.
Change-Id: Ie7de773641ee01b206e6c0de840e5f1d77d9ec4a
2023-03-24 09:26:25 +01:00
Translation updater bot 125d3701f0 Localisation updates from https://translatewiki.net.
Change-Id: I00a62b8b126f96be7b0b98af5616bcbc2fd453ad
2023-03-22 09:15:10 +01:00
Translation updater bot 7b7b8c7c17 Localisation updates from https://translatewiki.net.
Change-Id: I54af0cbf6e7d2b19067597cbff33472478112cbb
2023-03-20 09:00:55 +01:00
Translation updater bot 96b89cc932 Localisation updates from https://translatewiki.net.
Change-Id: I712bb48f49245e87fc1d82c98e94868dd0ff5d0f
2023-03-17 09:21:47 +01:00
libraryupgrader d52c98ddfb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 39.0.0 → 41.0.0

npm:
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1
* grunt-stylelint: 0.17.0 → 0.18.0
* stylelint-config-wikimedia: 0.13.0 → 0.14.0
* minimatch: 3.0.4 → 3.0.8
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: Id7989047d64891ee0c12180e414410b1258fc710
2023-03-15 03:54:16 +00:00
Translation updater bot aa567dbd75 Localisation updates from https://translatewiki.net.
Change-Id: I8200c6b3ca12cc29985f716f62f52f9fe098c543
2023-03-13 08:38:40 +01:00
Translation updater bot d39cd5d9e6 Localisation updates from https://translatewiki.net.
Change-Id: Ia0caea6ee149e69346b59be3dbdf8e67266212e7
2023-03-10 08:48:13 +01:00
Translation updater bot 7fc02752b4 Localisation updates from https://translatewiki.net.
Change-Id: I452370942dd437996a053934d276eb8a6e418dd9
2023-03-09 09:04:25 +01:00
Translation updater bot ab275a3a76 Localisation updates from https://translatewiki.net.
Change-Id: Icd89c73d765e0af9d81e994a4d774638bedddd92
2023-03-06 08:33:03 +01:00
Translation updater bot 4a237ed5b4 Localisation updates from https://translatewiki.net.
Change-Id: If85ce08c8e3633d2d7ae4c727444c50a6a7c3fbf
2023-03-03 08:47:25 +01:00
Translation updater bot 287186e7c1 Localisation updates from https://translatewiki.net.
Change-Id: I545d7621b36a44673f8ad99bf53da7e93e6d7f69
2023-02-22 09:00:18 +01:00
Translation updater bot 676cb353e2 Localisation updates from https://translatewiki.net.
Change-Id: I4904efb232a236301dafa050c9ec2cf2f68c505f
2023-02-17 08:55:43 +01:00