aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | api: Remove deprecated ApiPageSet::get*TitlesUmherirrender2025-03-261-25/+2
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following functions were removed: - ApiPageSet::getTitles - ApiPageSet::getGoodTitles - ApiPageSet::getMissingTitles - ApiPageSet::getGoodAndMissingTitles - ApiPageSet::getRedirectTitles - ApiPageSet::getSpecialTitles Bug: T339384 Change-Id: Iba8499c2d1b4a10b918f563069534b90fed7f6f9
* | | | | | | | Merge "page: Remove deprecated PageArchive::undeleteAsUser"jenkins-bot2025-03-261-55/+0
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | |
| * | | | | | | page: Remove deprecated PageArchive::undeleteAsUserUmherirrender2025-03-261-55/+0
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: T339394 Change-Id: I4c7dd048913ee3d62982ec3bcbdb37548bd56280
* | | | | | | Merge "jest.config.js: limit to searching only in tests/jest"jenkins-bot2025-03-261-3/+4
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | jest.config.js: limit to searching only in tests/jestMusikAnimal2025-03-261-3/+4
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This speeds up the runtime significantly Bug: T390003 Change-Id: I25ecb126a28c807ebff469ca2167a635a6588125
* | | | | | Merge "Migrate MediaWiki.jobqueue to statslib"jenkins-bot2025-03-261-2/+2
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Migrate MediaWiki.jobqueue to statslibAtieno2025-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch migrates the `MediaWiki.jobqueue` metric to the new Prometheus format. Bug: T359472 Change-Id: Ie1d54721a1849619fe9a33b74ad1c231868b1c26
* | | | | | Merge "HookRunnerTestBase: Minor fixups"jenkins-bot2025-03-261-3/+5
|\ \ \ \ \ \
| * | | | | | HookRunnerTestBase: Minor fixupsReedy2025-03-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I215eb8cccd50472b4fcb0f41ce1710d8ff9ca8fc
* | | | | | | Merge "Catch uncaught errors and rejections."jenkins-bot2025-03-261-0/+16
|\ \ \ \ \ \ \
| * | | | | | | Catch uncaught errors and rejections.Peter Hedenskog2025-03-261-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the CI we have cases where the test just stops and the logs do not give us any information at all. Hopefully this can catch those cases and at least log what's happening. Also try to log active handles. Bug: T389562 Change-Id: I51f43f054e51b6f5ce7ed86cd369d50665f56849
* | | | | | | | Merge "Replace a number of uses of class aliases with the real things"jenkins-bot2025-03-261-0/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Replace a number of uses of class aliases with the real thingsJames D. Forrester2025-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via disabling phan's alias support for a run (and ignoring wgLang's hard-coded state of being a \Language, alas). Change-Id: I4753bcd84d72d6de111fc7ffc5841fa417bf7333
* | | | | | | | | Merge "wdio-mediawiki: do not attempt to record video if ffmpeg isn't available"jenkins-bot2025-03-261-1/+4
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
| * | | | | | | | wdio-mediawiki: do not attempt to record video if ffmpeg isn't availableDaimona Eaytoy2025-03-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Catch and swallow errors from the child process, instead of failing immediately. Also document `saveScreenshot` as returning a promies, since it's an async function. Bug: T381727 Change-Id: I9d6f054655b6fa29bb5ca37ba0e34fd542845370
* | | | | | | | | Merge "ResourceLoader: Improve error when including file in non-package module"jenkins-bot2025-03-261-0/+7
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | |
| * | | | | | | | ResourceLoader: Improve error when including file in non-package moduleHannah Okwelum2025-03-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The way ResourceLoaderModule is currently set up, when packagedFiles are used to declare files, only a "main" script is initially executed, and other files are executed with require("./file path"). This is not the same with using "scripts" to declare your module files. Such scripts are concatenated together into one large script, and require() can only load modules in this instant. When you use require() in such script (outside a package file), we directly use mw.loader.require(). What this fix does is, if require("./*") is encountered in mw.loader.require(), it throws a descriptive error early, instead of later in a more confusing way as `Module "." is not loaded`. Bug: T386833 Change-Id: I97a572c9fefa41e6b97db1d9fd86706490da5c4f
* | | | | | | | | Merge "DomainEvents: Model page state before/after"jenkins-bot2025-03-253-12/+16
|\ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / |/| | | | | | | |
| * | | | | | | | DomainEvents: Model page state before/afterdaniel2025-03-253-12/+16
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why: - PageStateEvent models a change in page state, so it should provide access to the state before and after What: - add getPageRecordBefore() and getPageRecordAfter() to PageStateEvent - Move getPage() from PageStateEvent down to PageRevisionUpdatedEvent. - Add getPageId() to PageStateEvent. - Add getDeletedPage to PageDeletedEvent Bug: T388588 Depends-On: I76b09f2275a74d02e5701de2082d6b256d6b3b78 Change-Id: I94c52c0314e5dbe9adf82aab732f2e54ca42f686
* | | | | | | | Merge "Namespace all remaining files in includes/skin"jenkins-bot2025-03-259-11/+11
|\ \ \ \ \ \ \ \
| * | | | | | | | Namespace all remaining files in includes/skinJames D. Forrester2025-03-259-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: T353458 Change-Id: I3e829e35c93bcaae75e401b1801bddf93c0b416c
* | | | | | | | | Merge "Namespace all remaining files in includes/changetags"jenkins-bot2025-03-255-8/+9
|\| | | | | | | |
| * | | | | | | | Namespace all remaining files in includes/changetagsJames D. Forrester2025-03-255-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: T353458 Change-Id: I3cf44dfe5425f2efb8409c83571c427447b053af
* | | | | | | | | Merge "Namespace all remaining files in includes/exception"jenkins-bot2025-03-2522-24/+31
|\| | | | | | | |
| * | | | | | | | Namespace all remaining files in includes/exceptionJames D. Forrester2025-03-2522-24/+31
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be changed later if people really care). Also, move the couple of exceptions in here that were already namespaced in the MW-top-level into the new space. Bug: T353458 Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
* | | | | | | | Merge ""(diff | hist)" are plain text and have no links for categorization ↵jenkins-bot2025-03-251-0/+34
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | entries in Recent Changes and Watchlist in non-grouping mode"
| * | | | | | | "(diff | hist)" are plain text and have no links for categorization entries ↵Kgraessle2025-03-201-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in Recent Changes and Watchlist in non-grouping mode Bug: T148533 Change-Id: I33d3f186c1b59c2fa1a0ed7c588ed14e63a49559
* | | | | | | | Merge "block: Normalize IP addresses and ranges for ApiQueryLogEvents"jenkins-bot2025-03-241-0/+79
|\ \ \ \ \ \ \ \
| * | | | | | | | block: Normalize IP addresses and ranges for ApiQueryLogEventsTim Starling2025-03-241-0/+79
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Write an equivalent for IPUtils::sanitizeRange() in JavaScript. Add the tests from IPUtils, and also add a few extras for branches that were otherwise uncovered. * Use the new function when fetching block log entries for IP addresses or ranges. The linked task only mentions range normalization, but IPv6 addresses also need to be correctly normalized, e.g. the target "cafe::1" needs to search for "User:CAFE:0:0:0:0:0:0:1". * In Resources.php, specify a base path. Manually tested the Special:Block log searches with single IPv6 addresses, IPv6 ranges and IPv4 ranges. Bug: T388097 Co-Authored-by: MusikAnimal <musikanimal@gmail.com> Change-Id: Icee67dff9d5f36e48dcdbd5a3c17ae56206cb675
* | | | | | | | Merge "Deprecate OutputPage::showNewSectionLink(), ::forceHideNewSectionLink()"jenkins-bot2025-03-241-0/+3
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Deprecate OutputPage::showNewSectionLink(), ::forceHideNewSectionLink()C. Scott Ananian2025-03-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OutputPage::getOutputFlag(...) method should be used instead. Bug: T301020 Change-Id: I3b5a76d30e88da1f29e50689cfab7d05ff83e43f
* | | | | | | | Merge "Split OutputPage::getModulesInternal()"jenkins-bot2025-03-241-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | Split OutputPage::getModulesInternal()C. Scott Ananian2025-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for moving the module lists to OutputPage::$metadata, deprecate the additional parameters to OutputPage::getModules() and OutputPage::getModuleStyles(); refactoring the actual implementation to a new private method OutputPage::getModulesInternal(). Bug: T301020 Change-Id: Iea1a40fed68d3b61b8decf9ab838391b1477ff95
* | | | | | | | Merge "Deprecate OutputPage::getNoGallery()"jenkins-bot2025-03-241-0/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Deprecate OutputPage::getNoGallery()C. Scott Ananian2025-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also switch to using OutputPage::$metadata to store $mNoGallery, although the expected replacement is OutputPage::getOutputFlag(). This is a slight semantic change, as it is the OR of the NO_GALLERY flag for all ParserOutputs used to compose the Output, instead of simply being the value of the last ParserOutput used. This isn't expected to be significant in practice. Improved the documentation of ParserOutputFlags::NO_GALLERY while we're touching this code. Bug: T301020 Change-Id: Ibaa31df331974e98254ecfcc4393ec1fda2ebe64
* | | | | | | | | Merge "SpecialBlock [Codex]: reset blockId when the target user changes"jenkins-bot2025-03-242-0/+32
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | SpecialBlock [Codex]: reset blockId when the target user changesMusikAnimal2025-03-222-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockId is both a form field (it gets used in the API request) and also a behavioural so-to-speak, since the presence of a blockId is what highlights the row in the 'Active blocks' table. As such, when we want to clear behaviourial refs, also clear the blockId. Bug: T389056 Change-Id: I6e76ae847c9bedd47962df6330c70b60cc5481a4
* | | | | | | | | | Merge "PermissionStatus: Hard-deprecate toLegacyErrorArray()"jenkins-bot2025-03-242-0/+2
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | PermissionStatus: Hard-deprecate toLegacyErrorArray()Bartosz Dziewoński2025-03-242-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer used except by other hard-deprecated methods. Depends-On: I392088786faa4d52b7702dcf3b4e4549865b9650 Depends-On: I4760a342e7906000485142b63c739fb802bb40ed Depends-On: I377e30f91ae41730b14731133c763fa100fb616f Depends-On: Ic2302366e3d63413d110657ce999952b3fa7a1f6 Depends-On: I23ce3b4d26bbe58257b449993a54c45093007a3e Change-Id: Ibf274036a1522001144c41ebff99f544860f6408
* | | | | | | | | | | Merge "[OutputPage] replace ParserOutput::getText() options with ↵jenkins-bot2025-03-242-19/+24
|\ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | ParserOptions, v2"
| * | | | | | | | | | [OutputPage] replace ParserOutput::getText() options with ParserOptions, v2C. Scott Ananian2025-03-212-19/+24
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppress TOC, section edit links, and set wrapper div class via ParserOptions, instead of by passing options to ParserOutput::getText(). In the process deprecate the public OutputPage::parserOptions(), which is no longer used internally, and add OutputPage::addTOCPlaceholder() to DRY out some oft-repeated code. Bug: T350626 Depends-On: I6c12db1e0c42fe5b50ef43a9b6ff6804f44081ea Depends-On: I0d557951b8e17de05e8ceadeb6c18d3811bbdaa8 Change-Id: Iec19f9f08a4d88ea534ffa7b24e6e01ffbba2723
* | | | | | | | | | Merge "Fully silence TRX profiler after autocreation"jenkins-bot2025-03-241-1/+4
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Fully silence TRX profiler after autocreationGergő Tisza2025-03-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids profiler warnings for autocreation-related writes. Follows up I66e54b00a7a0485d7d5e4d8d61d74e6fb6619ccb which only did it for deferreds, but at least CheckUser uses an idle transaction callback for recording autocreation PII, which was stil emitting warnings. Bug: T388165 Change-Id: Idb18fdebb76c17c88fa36d42f7317c4c6151baee
* | | | | | | | | | | Hard deprecate wfUrlProtocolsWithoutProtRel and wfMatchesDomainList, ↵Ebrahim Byagowi2025-03-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deprecated since 1.39 They have been deprecated since 1.39 in favor of UrlUtils::validAbsoluteProtocols and UrlUtils::matchesDomainList. Bug: T319340 Change-Id: Iff5fa7a3e517be15e4d60d96ab97f3f0575a1825
* | | | | | | | | | | Hard deprecate wfAssembleUrl, deprecated since 1.39Ebrahim Byagowi2025-03-241-0/+2
| |_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been deprecated in favor UrlUtils::assemble() since 1.39. Depends-On: If1a6251b7ea31f7eed217500fdac74637508d683 Change-Id: I4cc95e03dc0bdc0912b41f7598058ab8219cdca5
* | | | | | | | | | Merge "REST: Make OpenAPI spec info strings translatable"jenkins-bot2025-03-244-4/+152
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | REST: Make OpenAPI spec info strings translatablebpirkle2025-03-214-4/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenAPI specs include an "info" section that includes strings such as "title" and "description" that are intended to be human-readable. Make all such strings translatable. Bug: T385855 Change-Id: I15285be6d196c0e7fd7e922f23058d7c09b6b31a
* | | | | | | | | | | Merge "REST: add translation disclaimer to REST Sandbox"jenkins-bot2025-03-241-0/+44
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / |/| | | | | | | | | |
| * | | | | | | | | | REST: add translation disclaimer to REST Sandboxbpirkle2025-03-221-0/+44
| | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The REST Sandbox is currently implemented in Swagger UI, which does not support i18n for its own UI elements (it does happily display our internationalized OpenAPI spec). Add disclaimer text to the page if it is being viewed in a language other than English, so that users are aware this is a known issue (and is being worked on). Bug: T388399 Change-Id: I265aa1e7dce78715dd4977eeb460f1ca26dedbd9
* | | | | | | | | | Merge "rdbms: Fix disabled PostgreSQL test"jenkins-bot2025-03-241-94/+51
|\ \ \ \ \ \ \ \ \ \