Commit graph

1256 commits

Author SHA1 Message Date
Dreamy Jazz 6f021e90da Make SpamBlacklistTest::testSpamEdit pass when temp accounts enabled
Why:
* SpamBlacklistTest::testSpamEdit fails to run when temporary
  accounts are enabled, because the EditPage object does not have
  the user set as the same as the RequestContext user (which is
  a named test user).
* Making the test pass is necessary for running tests when
  temporary accounts are enabled in CI.

What:
* Set the EditPage context user as the same as the test user used
  for the article context above.

Bug: T355879
Change-Id: I34e0299a9d9e3078f9067390e30dca7ce9665de4
2024-05-04 17:24:45 +03:00
Translation updater bot a59c5598a1 Localisation updates from https://translatewiki.net.
Change-Id: I2547c8948a6a74cebcf1f66e812f1489c8c703b5
2024-04-30 09:21:16 +02:00
Translation updater bot 46a90ec41f Localisation updates from https://translatewiki.net.
Change-Id: I76d6156fc17e66a6d032eca8bb316015aab55b21
2024-04-22 09:29:46 +02:00
Umherirrender f0e11c2d1e Migrate to IReadableDatabase::newSelectQueryBuilder
Bug: T312469
Change-Id: I5774b8d0dc59df3404f26026b1aeeceeda413e13
2024-04-20 21:20:29 +02:00
libraryupgrader 96189d343b build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I26da3fd098f33b0350bf391fafe72eae0c65ab59
2024-04-19 06:17:33 +00:00
Translation updater bot 79ee052bd9 Localisation updates from https://translatewiki.net.
Change-Id: I53a50273786cb5d70347f68b7ca56782660c4bc5
2024-04-15 09:28:48 +02:00
Translation updater bot 0038d85b11 Localisation updates from https://translatewiki.net.
Change-Id: If56ce670597685f963c197bf67d2acf7ee1c2035
2024-04-11 09:22:07 +02:00
Translation updater bot 42ace273a3 Localisation updates from https://translatewiki.net.
Change-Id: I115be7e51374bd4b110ec34d171a3918e96f6892
2024-04-04 09:39:25 +02:00
Kosta Harlan 3e0747d103
tests: Pass FauxRequest to TempUserCreator
Needed-by: I99d5973498a89ac227847de5837c0a8e895c28fb

Bug: T343101
Change-Id: If660aad1d0f04f366414084aff3f88484a19d416
2024-03-28 13:44:32 +01:00
Translation updater bot 58dc9db5d5 Localisation updates from https://translatewiki.net.
Change-Id: Iba31939263e0fb7d6f6504503fe6bd1633585c98
2024-03-26 08:20:58 +01:00
Translation updater bot e27bc2a992 Localisation updates from https://translatewiki.net.
Change-Id: I8f09283d8e92c65d495bb3fd7b43f326d69241a9
2024-03-25 08:36:44 +01:00
Translation updater bot 8665ad0082 Localisation updates from https://translatewiki.net.
Change-Id: Ia44f4baebf1988947fb0ab41e5abfa6f817a08b9
2024-03-22 08:45:31 +01:00
Translation updater bot 22bda08a02 Localisation updates from https://translatewiki.net.
Change-Id: Ib1835bd4a62d8f9333a7522bd3ea05bb5e2e292f
2024-03-21 08:56:33 +01:00
Amir Sarabadani 055daa65ef Switch away from wfGetDB()
Bug: T357657
Change-Id: I54f95397958c99b87083894cdf867d5ef6612fe7
2024-03-18 21:34:56 +01:00
libraryupgrader e986e0f83b build: Updating mediawiki/mediawiki-codesniffer to 43.0.0
Change-Id: Id221d37397de19e027fddc84fac6e9d7986e1d3f
2024-03-18 01:26:27 +00:00
Kosta Harlan 0016a9a6f1
tests: Support temp accounts in testSpam()
Why:

- Temp accounts require special handling in the test case, since we call
  SpamBlacklist->filter() directly.
- We want to continue to test both IP editing and temp account editing
  paradigms

What:

- Duplicate the testSpam() method to have one invocation run with temp
  users, and a second one with the anonymous IP editing paradigm
- Have the testSpamAnonEditing use a anonymous user object returned from
  user factory, to avoid ActorStore deprecation warnings where the
  mocked wiki ID is null while the wiki's wiki ID is false
- Rename setUp to a "prepareGlobals" method, and invoke this after the
  enable/disable temp account method. That's needed because
  disableAutoCreateTempUser ends up invoking resetServices()

Bug: T355879
Change-Id: I604c521f00d5cc64b8102c93f9a013bcac557001
2024-03-07 10:53:17 +01:00
Translation updater bot b9989b369d Localisation updates from https://translatewiki.net.
Change-Id: Ia75157237bb6efee8164be6048055153f61daff1
2024-02-26 08:37:04 +01:00
Translation updater bot 16641661ac Localisation updates from https://translatewiki.net.
Change-Id: I83d48f15073e1a48186d15448d63a15a5c02d595
2024-02-23 08:45:17 +01:00
Translation updater bot e0eb2c35c2 Localisation updates from https://translatewiki.net.
Change-Id: I8e527b1d9b320845ba86f4ffc88193fb956fc194
2024-02-19 08:41:03 +01:00
libraryupgrader fb751efbc5 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1

Change-Id: I7ad279ce54fd99dcdef439718b32baad112de9e9
2024-02-12 19:01:28 +00:00
libraryupgrader af8a304473 build: Updating npm dependencies
* eslint-config-wikimedia: 0.25.0 → 0.26.0
* grunt-eslint: 24.0.1 → 24.3.0

Change-Id: I4f0e600160e7e16a722ad7d852cb558b417418f6
2024-02-09 17:25:00 +00:00
libraryupgrader 84b8a2aa3e build: Updating npm dependencies
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* semver: 7.3.5 → 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I7657babf43891ff485745aff1b1c3aad583d2acf
2024-02-04 12:01:41 +00:00
Translation updater bot dd513577b9 Localisation updates from https://translatewiki.net.
Change-Id: Ic6d381ef730e0b41661a32e2ac761fabb90b13c6
2024-01-31 08:29:41 +01:00
Translation updater bot c57745d68c Localisation updates from https://translatewiki.net.
Change-Id: I491b30ea7f124967ccfbcefb619cc8d033467ebc
2024-01-28 16:08:03 +01:00
James D. Forrester 5f1d2eb5f5 extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: Ibf39a95210ea227909a0081c76829d60eaa5c8a3
2024-01-12 08:52:23 -05:00
Umherirrender fc369e9457 Use namespaced classes
This requires 1.42 for some new names

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I9a7df2df9407ef10d855bc19db247983682a5fc8
2024-01-05 19:28:12 +01:00
Translation updater bot 645f4b3c6a Localisation updates from https://translatewiki.net.
Change-Id: I696e0569455724d2bae565c3ce2b9b74c2430ff6
2024-01-02 10:17:26 +01:00
Translation updater bot 9c3fe8ecdf Localisation updates from https://translatewiki.net.
Change-Id: I3a69dfcd10e854692260a1a466f8b86c897e0228
2023-12-22 17:46:52 +01:00
Translation updater bot b437e636ba Localisation updates from https://translatewiki.net.
Change-Id: Iad9a07e9d248c6093925e4dc1efa9db74220f3a8
2023-11-27 08:33:25 +01:00
Translation updater bot a208dece8f Localisation updates from https://translatewiki.net.
Change-Id: I402c7b34fa5844ead35e6ffb607462d61a356c06
2023-11-06 08:57:49 +01:00
Umherirrender 54bb17f0a0 tests: Use assertStatusOK for better failure messages
Change-Id: I1bd4665024a311c4264b9bb680c6d6b4c31be333
2023-10-27 16:20:53 +02:00
Translation updater bot ce0cafb4ba Localisation updates from https://translatewiki.net.
Change-Id: Iba1643d854c4546a3b3af804d2fc99be82268c8d
2023-10-16 09:16:37 +02:00
Translation updater bot a53cdd09a8 Localisation updates from https://translatewiki.net.
Change-Id: Ib05a58730470e0a54ded5e09664ae773d9432f97
2023-09-07 11:13:49 +02:00
jenkins-bot 7461aed80e Merge "build: Update MediaWiki requirement to 1.41" 2023-09-05 21:38:12 +00:00
Translation updater bot e4a69297e6 Localisation updates from https://translatewiki.net.
Change-Id: Ic1d2a04a12c949e283b09b7e1268ddac72dc3e41
2023-08-23 08:40:33 +02:00
Translation updater bot 218f7405f2 Localisation updates from https://translatewiki.net.
Change-Id: Ia454a773daf1682e6c5f4b183b031d0c9f82d160
2023-08-22 09:02:02 +02:00
jenkins-bot dc63bb3141 Merge "Replace some moved Title class uses, now MediaWiki\Title\Title" 2023-08-19 13:18:04 +00:00
James D. Forrester 4eb23258e2 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I5fa16305724eb8dcbbcc489cbe88c04775e65907
2023-08-19 14:07:29 +08:00
James D. Forrester a8cb9d0aa0 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I12ae00ecf3e2647f3613b173c6f8b04803c76e41
2023-08-19 14:07:20 +08:00
gerritbot effea0bde6 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I36f07ad64f90049b412969654cff0d3da31777e6
2023-08-19 04:19:23 +00:00
Translation updater bot 675b6ac7bd Localisation updates from https://translatewiki.net.
Change-Id: Ic942c29d4355df033287a3e956080652c07f9ee1
2023-08-17 12:10:48 +02:00
Translation updater bot d27d028e52 Localisation updates from https://translatewiki.net.
Change-Id: I780dd089e2d56c1b9f9b2b64edcc57d9089cd43e
2023-08-07 08:39:46 +02:00
Translation updater bot daa70f9235 Localisation updates from https://translatewiki.net.
Change-Id: I97c9fc3feacf64619fda4b7dae741e10d44c5831
2023-07-31 09:01:09 +02:00
Translation updater bot a011ca6b2c Localisation updates from https://translatewiki.net.
Change-Id: I440954954bbf732a887f9b4b185c1fcc3b2c074f
2023-07-21 08:42:38 +02:00
jenkins-bot 0c5c35bf59 Merge "Disable remote loading during PHPUnit tests" 2023-07-04 08:42:59 +00:00
Tim Starling 51941a42ec Disable remote loading during PHPUnit tests
Bug: T65015
Change-Id: I205c5e247f314f734178f6c745eaa507f736083a
2023-07-04 09:37:12 +10:00
Translation updater bot cfb064f276 Localisation updates from https://translatewiki.net.
Change-Id: If9a4a4f3c3033c398f6d621156902b3a8f53e282
2023-07-03 10:16:30 +02:00
Translation updater bot c3c92b748f Localisation updates from https://translatewiki.net.
Change-Id: I9d504ad1e89badfcf18f10d925bffbaece81be3d
2023-06-26 12:40:59 +02:00
Umherirrender 713263f5ce api: Remove old apihelp i18n description messages
No longer used since 1.33

Automatically removed message keys with "doc-apihelp-description" in qqq

Bug: T340253
Change-Id: Id93315f30badbe0b52511afcb99bad693e935392
2023-06-24 00:21:43 +02:00
Translation updater bot 754fa4ba22 Localisation updates from https://translatewiki.net.
Change-Id: Ia3e74cb71f9e49d1cffed6e31b97942754fdbbb2
2023-06-19 11:08:06 +02:00