summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-05Update git submoduleswmf/1.38.0-wmf.13jdlrobson
* Update skins/Vector from branch 'wmf/1.38.0-wmf.13' to f6424f32611bce8d9e95c369c28e2f787e2cdf75 - Don't use ts-ignore. It is hiding real errors We are passing the wrong arguments to addVisualEditorHooks Bug: T297119 Change-Id: I2f8ced4513a1e5fcca2a2a2393cbb8fd7a3db388 (cherry picked from commit d79dbf37c9013a4e40f12cfa607f144908d10248)
2022-01-05Update git submodulesMartin Urbanec
* Update extensions/TrustedXFF from branch 'wmf/1.38.0-wmf.13' to d35e36f4deb7a8e2a454769f4b2d72e45318fcc9 - Add more Zscaler ranges I missed https://config.zscaler.com/zscaler.net/cenr has multiple "Copy IPs" buttons to use. Bug: T298241 Change-Id: I6a1259cdcf50ac9b298dd50f8d20c14f749cf1ed (cherry picked from commit a43eb222caf6323abc79887c7bb686f8b1390d37)
2022-01-05Update git submodulesMartin Urbanec
* Update extensions/GrowthExperiments from branch 'wmf/1.38.0-wmf.13' to 24e15e1fd5c7feb2377974ee666c61aef8f82da5 - MentorFilterHooks: Include only primary mentors Bug: T298031 Change-Id: I3fa149aa93bdae44be316584898998026afd7fe4 (cherry picked from commit 0e5e47b0e1e547b17ed066380d4626e2d348045b)
2022-01-05Update git submodulesMartin Urbanec
* Update extensions/TrustedXFF from branch 'wmf/1.38.0-wmf.13' to 010d96b9297825079b3ac84f247c0f80353d42a8 - Add Zscaler to list of trusted hosts for XFF Bug: T298241 Change-Id: I4efca76470b9c4cf186dd0ef5264b55485d7fd81 (cherry picked from commit de604938d2548534f0fe39bb6fac64c38ad9cb09)
2022-01-05maintenance: Add support for oldimage table metadata refreshAmir Sarabadani
This doesn't handle deleted files yet but that can be done in later patches. I have been struggling to find a solution for it. Bug: T298417 Change-Id: I4f33afa92be8b55d6b8f9797cb4d3aa03a37ad79 (cherry picked from commit 28ad6f27fbbfb0e267a707d190b8b5c1c9af5afb)
2022-01-04Update git submodulesTaavi Väänänen
* Update extensions/LdapAuthentication from branch 'wmf/1.38.0-wmf.13' to 1844cd6c7d398a1b467b242f73f5bdf8ef57abee - Include ldap errno on account creation debug logs Bug: T298508 Change-Id: Ia60bbcb49ab5c1fe9613aca03bd9369c524cbac4 (cherry picked from commit 0f5aff1ab4a7ae6d31a005099e56cdf3d66c8792)
2021-12-23Disable querying the 'wikieditor' change tag temporarilyBartosz Dziewoński
Bug: T298225 Change-Id: I637cf0c5bd664267622251234708b0e02197b85d
2021-12-17Update git submodulesEric Gardner
* Update extensions/MediaSearch from branch 'wmf/1.38.0-wmf.13' to af3dcaf7cdd1a71a8cedfbf1f4558f168cbaafde - Don't boot users with title="Special:MediaSearch" back to old search page The PHP UI supports the same search filters that the JS UI does (file type, file size, etc). If a no-JS user lands on the MediaSearch page with a url like ?type=image&filemime=png, the server-rendered results page will give the user only PNG results, etc. Most of these filters are specific to a given media type. It's not valid to ask for video results and then filter by PNG files for instance. We show an "invalid search" message to users who arrive on the page with invalid type & filter combinations in their URL params. Previously the PHP search results page would strip out all query params except for search term and "sort" (the only option supported across all tabs) when generating HTML form code that allows the user to click on tabs and change the search media type in an otherwise static UI. Now that users are arriving on MediaSearch from the Commons main page with "title=Special:MediaSearch" in their URL params, we need to make sure we preserve "title" params across tabs as well. Bug: T297877 Change-Id: Id998f27613da24dabf19f84f29f37d78ddbe78b5
2021-12-16Update git submodulesMartin Urbanec
* Update extensions/GrowthExperiments from branch 'wmf/1.38.0-wmf.13' to b8e64fe189a6a447e68e342ce23cedad6f542df0 - MentorManager: Only invalidate cache when mentor list exists Bug: T297827 Change-Id: I58368af8b2217bea8a774ef70042cd5cef2b8a27 (cherry picked from commit ea239a669d65937ec5f8026e06a5a892008bc38a)
2021-12-16Update git submodulesMichael Große
* Update extensions/Wikibase from branch 'wmf/1.38.0-wmf.13' to 779938386e32cda075a5790ec90e0fedef0ade9d - bridge: Reenable scrolling by mounting into parent Vue 3 no longer replaces the element given to mount, but appends to it. Therefore we need to give it a reference to the future parent element instead of one of its children. Change-Id: Ia00d84f332f284fb377d026f047168690d90c6a9 (cherry picked from commit 4f5d70de7b406217251dc3877ce1fd02704437e2)
2021-12-16Revision: Bypass checking the cache if it's not foundAmir Sarabadani
It must call the db function, not the one that goes through cache. Follow up to I630603eaffcae3 Change-Id: I1e8c94df6cb008091dee674b8101f0b59bf2263c
2021-12-16Merge "Revision: Add two caching layers to loadSlotRecords for template ↵jenkins-bot
pages" into wmf/1.38.0-wmf.13
2021-12-16Update git submodulesAmir Sarabadani
* Update extensions/intersection from branch 'wmf/1.38.0-wmf.13' to 28a29afdd1208841204f7aa629d814901537f1a9 - Set a maximum allowed time for db queries Bug: T297708 Change-Id: Ie6740622747299b272239e0aae31c3486a926354
2021-12-16Update git submodulesEric Gardner
* Update extensions/MediaSearch from branch 'wmf/1.38.0-wmf.13' to 651a84bf25a683fde679449e284c889936f22b0f - Filter out non-string keys/values from query string before using SpecialMediaSearch.php has to extract and handle the URL query parameters from the user's web request. However, bad param keys/values were causing errors. This change discards all non-string keys and values from the query string before other code access it. Also changes "queryString" var names to "queryParams" since we're passing around an array instead of a string anyway. Bug: T297828 Change-Id: Icb4bd0a5d9c156db54945e7f345143abe51b74eb (cherry picked from commit 5beebb52f18d34899d4f282308b4b34df5afc5cf)
2021-12-16Update git submodulesMichael Große
* Update extensions/Wikibase from branch 'wmf/1.38.0-wmf.13' to dcc6bfffb2fe146445000de6c80902e72123c74b - bridge: fix terms of service and copyright missing Change-Id: I4bcabd543f24baa22d9889153876519989253499 (cherry picked from commit 0d3e4b1c239aa47c867b0d1f6f83c69b641087ff)
2021-12-16Merge "Allow setting max execution time to several special pages" into ↵jenkins-bot
wmf/1.38.0-wmf.13
2021-12-16Update git submodulesAmir Sarabadani
* Update extensions/Wikibase from branch 'wmf/1.38.0-wmf.13' to 96fa72086c0c5323891ddf6fbf2da4f4ce5c3bd9 - Add a config to pass the test Bug: T297708 Change-Id: I126e7181422d8da1a63afc3717faa4f72a687dd9 (cherry picked from commit 231adfcbf9f3af4c00e260349c90138adf448fa8)
2021-12-16Revision: Add two caching layers to loadSlotRecords for template pagesAmir Sarabadani
This is currently making a lot of (serial) DB queries during every page parse. At least one for every transcluded page. Using Memcached should significantly reduce DB load, and apcu should notably reduce latency when parsing large articles. This is currently limited to NS_TEMPLATE to avoid overwhelming caches with a long tail of unlikely re-used metadata about non-transcluded pages (every parsed article) and rare non-template transclusions. Bug: T297147 Change-Id: I630603eaffcae3700b2843fb97c5bedf8d29da9e
2021-12-16Allow setting max execution time to several special pagesAmir Sarabadani
These special pages and their counter-part APIs are: - Special:RecentChanges - Special:Watchlist - Special:Log - Special:Contributions This also changes the way MAX_EXECUTION_TIME works from taking the value as milliseconds, it takes seconds which is more intuitive for users. Bug: T297708 Depends-On: I126e7181422d8da1a63afc3717faa4f72a687dd9 Change-Id: I3ff78751c3df3b6342f1865d35c2075f4415185d (cherry picked from commit 627c1c2c308fe5d07692b3430fd847f5b470663d)
2021-12-16Update git submodulesMartin Urbanec
* Update extensions/GrowthExperiments from branch 'wmf/1.38.0-wmf.13' to 35c055cead3d240625b76d21aa4e685525ca0d4b - MentorPageMentorManager: Do not fail hard with no mentor list configured Bug: T297827 Change-Id: Ia62fdc4cb14a133e3740c1c0442c1b269b7021c5 (cherry picked from commit 685032297e382216c5cae5774ce988d10d8fe1bb)
2021-12-15Remove migration scriptjdlrobson
Instead of updating the database on GET requests on the fly, we can use the migration script in I340930010a8b7dda0078a30f5e4c07b0d00aed5a Bug: T297484 Change-Id: Iea8975ee2a5063bc9be0a0f5fc33cff034ec1230
2021-12-15Merge "Revert "Replace deprecated methods IContextSource::getWikiPage && ↵jenkins-bot
IContextSource::canUseWikiPage"" into wmf/1.38.0-wmf.13
2021-12-15Update git submodulesjenkins-bot
* Update extensions/MediaSearch from branch 'wmf/1.38.0-wmf.13' to 04fdff972f96a567a075f10791f2f7fe451d5e49 - Merge "Don't attempt to scroll to a non-existing result" into wmf/1.38.0-wmf.13 - Don't attempt to scroll to a non-existing result Adds a guard clause to the SearchResults component's scrollIntoViewIfNeeded method. When the filters change while the quickview is open, it is possible for the original result which triggered the quickview to no longer be present on the page. This change simply adds a guard clause to check for this scenario before attempting to scroll back to a result on the page. If the original result ref is not found, nothing else needs to be done. Change-Id: Icea7dc12dd579dfb4ad98b0e00ddae3155c36c40 (cherry picked from commit 6a1201b4f02007157239d6877896fd04be0696b4)
2021-12-15Update git submodulesSimone This Dot
* Update extensions/MediaSearch from branch 'wmf/1.38.0-wmf.13' to 90c67df52b3df5c5cba16128c47f7f7a0b72cc3c - Remove multiple instance of VUEX initialization Bug: T297690 Change-Id: Iab7e6ce135a600037d4deb7f4b9d23c8ec928600
2021-12-14Revert "Replace deprecated methods IContextSource::getWikiPage && ↵Legoktm
IContextSource::canUseWikiPage" This reverts commit ef458e894888d5d984f6b8dcf75cfae008d544d0. Reason for revert: Causes page tabs to disappear on Special:WhatLinksHere. Bug: T297744 Change-Id: I0ee282a9f7a5a9b2cfdc3261d800d9e27eaf977e (cherry picked from commit 93f79a9122e21bac30d7aaa4961ddf76706710db)
2021-12-14cache: Add four fields to LinkCache::getSelectFieldsAmir Sarabadani
These are needed PageStoreRecord::REQUIRED_FIELDS and that's why putting PageStore on top of LinkCache caused a lot of increase in db reads. Bug: T297669 Change-Id: If77c2f9879d7bae71eb59944efd8b3798d16aa46
2021-12-14Reuse the query result in addCategoryLinks instead of relying on cacheAmir Sarabadani
This is an implicit logic that it first loads everything as a batch and then adds them to the LinkCache and then just hopes it works. During passing arround of Title object, it reaches Title::getArticleID() (in Title::exists()) and that now reads it from PageStore (by using ::getFieldFromPageStore) and since the Page object doesn't exist yet (we only populated the LinkCache), it loads the page again. Bug: T297669 Change-Id: Icca81c97a15d90f593090711cdccdee3ea404ae2 (cherry picked from commit 70acd1dcd40d8fe573ac9074c133e003142eac81)
2021-12-14Update git submodulesKosta Harlan
* Update extensions/GrowthExperiments from branch 'wmf/1.38.0-wmf.13' to b87567a8424767990aeb8d7d59b27b7799687834 - WelcomeSurvey: Instrument interactions with form Define a list of actions and record associated interactions with the Special:WelcomeSurvey form. Depends-On: I909a199429a172dc21f8d3ffa3a213745c8e4c60 Depends-On: I3e02814b5ee4c268f4ce0aac7d5aac4753f9f2fc Depends-On: Ic02a3a6136d1b5f46aa8bf1cf8e39973962f4ee2 Bug: T267273 Change-Id: I1765c5a97dfff13a468c3cf473abcffdbcce3c76 (cherry picked from commit e87c40af925b27d5858ffac7b2fef57685977fbc)
2021-12-14Update git submodulesTimo Tijhof
* Update extensions/WikimediaMaintenance from branch 'wmf/1.38.0-wmf.13' to a02f7f5b60cb3328a1a69e22defa9afaed617e9c - blameStartupRegistry: Fix clash in $startupBytes variable name Follows-up Ia2816b6af73, which renamed $totalBytes to $startupBytes (to differentiate it from $contentBytes in I14d212011d41f1144e), but I accidentally renamed $bytes also to $startupBytes. The result was that all wikis had their total size reported as only the size of the last extension that we check + the size of startup.js, thus throwing away the running total. Bug: T295413 Change-Id: Ib63ec06ccfb969219289d3d72820259b36a3cffd (cherry picked from commit 7fca908690a0324736de3002db607a1fabb2f21f)
2021-12-14Branch commit for wmf/1.38.0-wmf.13trainbranchbot
Change-Id: I9f440d8c395fc448d522d1f3ad8721cbfe81ca9c
2021-12-14Merge "tests: Make it easier to debug MediaWikiTitleCodecTest failures"jenkins-bot
2021-12-13Merge "Remove unreachable parts of getTitleInvalidRegex() in PHP and JS"jenkins-bot
2021-12-13Merge "Use native method to disable new users checkbox in Special:Preferences"jenkins-bot
2021-12-13Merge "Revert "Add new watchlist hook to better support syncing between ↵jenkins-bot
multiple watchstars""
2021-12-13Use native method to disable new users checkbox in Special:PreferencesFunc
Bug: T272302 Change-Id: I51cf864f27e624c68a0756f09873b115b5608c04
2021-12-13Merge "Add support for conditional disable fields in HTMLForm"jenkins-bot
2021-12-13RemoteIcuCollationTim Starling
Add a collation that gets its data from a remote Shellbox instance. This is meant as a migration helper to use during an ICU upgrade. Add a batch method to Collation so that this can be somewhat efficient when adding multiple categories. Bug: T263437 Change-Id: I76610d251fb55df90c78acb9f59fd81421f876dd
2021-12-13Merge "UserSelectQueryBuilder: Make it possible to filter via user's hidden ↵jenkins-bot
status"
2021-12-13Merge "rdbms: add query timeout support to Database::select()"jenkins-bot
2021-12-13Merge "resourceloader: Remove support for $algo param in FileContentsHasher"jenkins-bot
2021-12-13Merge "rdbms: Remove five deprecated methods from IDatabase"jenkins-bot
2021-12-13Merge "Remove some more comments that literally repeat the code"jenkins-bot
2021-12-13rdbms: add query timeout support to Database::select()Aaron Schulz
This will modify the SQL to add a timeout specifier, depending on whether the server is running MySQL or MariaDB, and whether such features are supported for the version number. Bug: T129093 Bug: T195792 Change-Id: I12e095fe82622064e555a42f1812eb99d201f10c
2021-12-13Merge "rdbms: Explicitly set Sqlite PDO ATTR_ERRMODE to ERRMODE_SILENT"jenkins-bot
2021-12-13Merge "Add SpecialPage::newSearchPage to replace Skin::setSearchPageTitle"jenkins-bot
2021-12-13rdbms: Explicitly set Sqlite PDO ATTR_ERRMODE to ERRMODE_SILENTAaron Schulz
This to maintain forward-compat and consistency for the newer PDO version in PHP 8, which changes the default from ERRMODE_SILENT to ERRMODE_EXCEPTION. https://www.php.net/manual/en/pdo.error-handling.php Change-Id: Ieb6bbcbe884fcb8861e38c10b745d8a7502db7db
2021-12-13Merge "DeprecationHelper: avoid closures"jenkins-bot
2021-12-13Merge "JsonCodec: Fix test"jenkins-bot
2021-12-13UserSelectQueryBuilder: Make it possible to filter via user's hidden statusMartin Urbanec
This will be useful at least in GrowthExperiments, where we rely on UserSelectQueryBuilder to see usernames of all mentees assigned to a particular mentor. Bug: T291966 Change-Id: I6f465f4ebffebe122f4924c6bb6ee24fceea566b
2021-12-13Merge "mediawiki.jqueryMsg: Handle SERVERNAME"jenkins-bot