Commit graph

125592 commits

Author SHA1 Message Date
jenkins-bot
c81d18b97c Merge "Test showSiteStats.php" 2024-07-29 20:23:36 +00:00
jenkins-bot
1d21f94802 Merge "Test checkBadRedirects.php" 2024-07-29 20:22:48 +00:00
jenkins-bot
a95f3d37cf Merge "Test deleteBatch.php" 2024-07-29 20:22:39 +00:00
jenkins-bot
583d769bbf Merge "Bump wikimedia/parsoid to 0.20.0-a15" 2024-07-29 20:22:30 +00:00
jenkins-bot
799d34ab6f Merge "Test deleteDefaultMessages.php" 2024-07-29 20:22:05 +00:00
jenkins-bot
d79df664f9 Merge "Test updateArticleCount.php" 2024-07-29 20:18:11 +00:00
jenkins-bot
5b756c0607 Merge "Test sql.php" 2024-07-29 20:16:26 +00:00
jenkins-bot
41a4107f63 Merge "Return early in BlockManager::trackBlockWithCookie if cookie blocks are disabled" 2024-07-29 20:14:37 +00:00
jenkins-bot
674cd4ea18 Merge "Extract LintErrorChecker out of SignatureValidator" 2024-07-29 19:05:52 +00:00
Kunal Mehta
4d49a4a59e Extract LintErrorChecker out of SignatureValidator
This code was partially copied into MassMessage and will hopefully
enable more places that accept arbitrary wikitext to check lint errors.

It also hides the internal details of checking with the Linter
extension's configuration in one place until it can be refactored into
something more acceptable (T360809).

Bug: T368690
Change-Id: Iaeb3ccbd61a2a8cb0d8b3dc8b06a3a10bc8fa653
2024-07-29 14:35:40 -04:00
jenkins-bot
ed0971a1b0 Merge "EditPage, ApiEditPage: Use parantheses to be explicit about order of evaluation" 2024-07-29 17:37:51 +00:00
jenkins-bot
64c0cfe9cf Merge "Update Pingback.php documentation" 2024-07-29 17:08:11 +00:00
Arlo Breault
2796b7d44e Bump wikimedia/parsoid to 0.20.0-a15
Bug: T371126
Depends-On: I25efb5dfb586328c8959ba8528c8496b7084643d
Change-Id: Id049afd4653f6c19241bc4cd838cc18076329105
2024-07-29 12:50:45 -04:00
James D. Forrester
356f0b00d2 EditPage, ApiEditPage: Use parantheses to be explicit about order of evaluation
Follow-up for 48c8cee183, caught by the
forthcoming release of MediaWiki-CodeSniffer.

Change-Id: Ib75df401916e8a0d750844ec364c5ab8f92ff003
2024-07-29 11:42:24 -04:00
jenkins-bot
0ecd5b343c Merge "Make MockHttpTrait::setService() compatible with MediaWikiUnitTestCase" 2024-07-29 15:16:24 +00:00
Aaron Schulz
161ec6333a api: deprecate and deactivate $wgAPIRequestLog
Make update.php warn if this setting is still used in config.

Bug: T276975
Change-Id: I8909e5c92f002949c0d77cfd7aa3febaf707f57f
2024-07-29 14:42:00 +00:00
Máté Szabó
6dd5826402 Make MockHttpTrait::setService() compatible with MediaWikiUnitTestCase
MediaWikiUnitTestCase::setService is defined as (string $name,
$service), which is incompatible with the ($name, $service) signature
MockHttpTrait expects for this method. As a fix, add the type hint to
the trait and MediaWikiIntegrationTestCase as well, to allow using
MockHttpTrait in tests extending MediaWikiUnitTestCase.

Change-Id: Ic7df40469947eff4b2be07d53eb9e09f452a4886
2024-07-29 16:31:41 +02:00
jenkins-bot
8b60f5f13c Merge "selenium: Move code for Selenium/Getting Started/Create a simple test" 2024-07-29 14:18:52 +00:00
jenkins-bot
2134c3ef12 Merge "OutputPage: Inline getCdnCacheEpoch() into checkLastModified()" 2024-07-29 14:03:12 +00:00
Ottomata
647dddfa0d Update Pingback.php documentation
Bug: T323828
Change-Id: I922e534a4bc4b2059a939cdf9b27dc657102f663
2024-07-29 10:01:49 -04:00
jenkins-bot
704ca68ccd Merge "selenium: Example code for Selenium/How-to/Debug with Visual Studio Code" 2024-07-29 13:59:43 +00:00
Jayden Bailey
673171fe89
Return early in BlockManager::trackBlockWithCookie if cookie blocks are disabled
This prevents an unnecessary database lookup on every web request.

Bug: T371249
Change-Id: Idc3035996fccbfc661580ba459fec8f44a0b526c
2024-07-29 13:37:33 +01:00
STran
311774c033 Filter temporary accounts as anonymous in ApiQueryRecentChanges
Edits from temporary accounts are considered anonymous edits.
ApiQueryRecentChanges doesn't correctly reflect this and needs to be
updated to correctly return temporary account edits as anonymous (and
similarly, not to return them when requesting !anon)

- Update the anon|!anon query to accomodate temporary accounts

Bug: T370803
Change-Id: Ica5225422ea53d2aa3a84b86d9c2f14832a34ed4
2024-07-29 11:00:22 +01:00
jenkins-bot
07653be341 Merge "Update Special:NewPages for temporary accounts" 2024-07-29 09:18:55 +00:00
jenkins-bot
e2fe610284 Merge "Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php" 2024-07-29 09:16:52 +00:00
Dreamy Jazz
7420433040 Test sql.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add an integration test for sql.php which partly covers the
  file.

Bug: T371167
Change-Id: I5ba73fcc648652d39cc69a9eba78b3ee579b0db5
2024-07-29 08:34:03 +00:00
Dreamy Jazz
1c7fade24c Test showSiteStats.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for showSiteStats.php

Bug: T371167
Change-Id: Icc8dc32769d71ff7de7c42b48332bcb270b5c88e
2024-07-29 08:34:00 +00:00
Dreamy Jazz
a4e07d3c1e Test updateArticleCount.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for updateArticleCount.php

Bug: T371167
Change-Id: Ie9a665dd204bd2685d0140f193c85d3390c222f7
2024-07-29 08:33:57 +00:00
Dreamy Jazz
fd0a75e190 Test deleteDefaultMessages.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for deleteDefaultMessages.php

Bug: T371167
Change-Id: Iab9347d986ac341af7bfde2ed7d56b9403f98409
2024-07-29 08:33:53 +00:00
Dreamy Jazz
c5be56fe6a Test deleteBatch.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests to verify deleteBatch.php when adding
  groups to an existing user.

Bug: T371167
Change-Id: I847b0dab093abbfe7dede33d1f30b729bf5e9fbf
2024-07-29 08:33:49 +00:00
Dreamy Jazz
5fe5f22625 Test checkBadRedirects.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for checkBadRedirects.php

Bug: T371167
Change-Id: I1be21e36b9f1247a75b6d4469de711905ea07028
2024-07-29 08:33:46 +00:00
Translation updater bot
ee1cfa963f Localisation updates from https://translatewiki.net.
Change-Id: I75747bc905271f30e6ea08917345d3836b577fcf
2024-07-29 08:14:31 +00:00
Bartosz Dziewoński
c9f73efd5a Namespace MessageSpecifier under Wikimedia\Message\
In change I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83 I am planning to
make Wikimedia\Message\MessageValue use it, and we try to pretend that
it is a library separate from MediaWiki, so it makes sense to move
MessageSpecifier to the same namespace under Wikimedia\.

Bug: T353458
Change-Id: I9ff4ff7beb098b60c92f564591937c7d789c6684
2024-07-28 14:21:32 +02:00
jenkins-bot
ad2004b129 Merge "Test blockUsers.php" 2024-07-28 10:15:20 +00:00
Dreamy Jazz
524d76a927 Test blockUsers.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for blockUsers.php

Bug: T371167
Change-Id: I77fbb182518f6c3a0f11ebbabaa97fa464c8d420
2024-07-28 08:40:10 +00:00
jenkins-bot
28d3c41d79 Merge "Test checkUsernames.php" 2024-07-28 01:48:34 +00:00
Dreamy Jazz
55642b2ee8 Test checkUsernames.php
The checkUsernames.php script is completely untested. Adding tests
is useful to verify that the script works, especially that the
output remains consistent.

Bug: T371167
Change-Id: Ib1889908a69d1401463ae0ae93e7c9446903327b
2024-07-28 00:17:58 +01:00
jenkins-bot
575cca8db1 Merge "Test CheckSignatures.php" 2024-07-27 23:04:26 +00:00
jenkins-bot
b1818bf185 Merge "Test attachLatest.php" 2024-07-27 23:04:17 +00:00
jenkins-bot
32e8a16c86 Merge "Expand DeleteUserEmailTest" 2024-07-27 23:04:09 +00:00
Dreamy Jazz
db702d19d5 Expand DeleteUserEmailTest
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Expand the integration tests in ResetUserEmailTest to cover the
  case where a user ID is provided instead of a username in the
  script arguments.

Bug: T371167
Change-Id: I6887db8035210dc3a68d23c3aaa2bc0494f8b056
2024-07-27 21:54:50 +00:00
Dreamy Jazz
bfe4598d7f Test resetUserEmail.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for resetUserEmail.php that partly cover
  the script.

Bug: T371167
Change-Id: Ie5f0934654d8228cebb5953a5fefa3343631999c
2024-07-27 21:54:37 +00:00
Dreamy Jazz
7a3c4b0a87 Test CheckSignatures.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add CheckSignaturesTest.php

Bug: T371167
Change-Id: Ie9a8035716148cd91fd3c9886c8b23c3894b866a
2024-07-27 21:23:37 +00:00
Dreamy Jazz
42ebb62309 Test attachLatest.php
Why:
* The maintenance scripts in core are mostly untested and testing
  the less complex scripts will improve the test coverage in core.

What:
* Add integration tests for attachLatest.php

Bug: T371167
Change-Id: I116f09db4c45fecefe583be17b2325c90af03617
2024-07-27 22:12:44 +01:00
jenkins-bot
aeded8f65d Merge "Test protect.php" 2024-07-27 21:06:09 +00:00
jenkins-bot
80f59d58f3 Merge "WatchlistManager::setWatch: Exit if the user is a temp account" 2024-07-27 20:44:38 +00:00
jenkins-bot
12b8065947 Merge "Test createAndPromote.php for adding rights to existing user" 2024-07-27 20:44:25 +00:00
jenkins-bot
4a62302e28 Merge "Test undelete.php" 2024-07-27 20:44:11 +00:00
jenkins-bot
f1fd438627 Merge "Test pageExists.php" 2024-07-27 20:42:35 +00:00
jenkins-bot
e516c56c18 Merge "Test emptyUserGroup.php" 2024-07-27 20:41:31 +00:00