Commit graph

116865 commits

Author SHA1 Message Date
Alexander Vorwerk
27beeac288 Drop $wgCommentTempTableSchemaMigrationStage
This was a temporary flag to allow setting the migration stage for a
comment migration with a temp table.

Since the rev_comment_id migration is done, this is no longer needed.

Dropping the compatibility code for temp tables will be done in
follow-ups.

Bug: T299954
Change-Id: I290a74f27b05cd7e062dda78766911ffe3053d08
2023-06-09 11:32:16 +00:00
jenkins-bot
3aef756418 Merge "Drop revision_comment_temp" 2023-06-09 10:55:21 +00:00
jenkins-bot
9480021da5 Merge "Reenable "RedundantTargets" test" 2023-06-09 10:19:47 +00:00
jenkins-bot
be25d6cc32 Merge "Skip targets test to merge mutually blocking fixes" 2023-06-09 09:24:43 +00:00
Michael Große
be7b1537a6 Reenable "RedundantTargets" test
Depends-On: Ic8d1b6871efb45b34325c412de737f3a5f75c0e6
Depends-On: I0f53fbda59f6d2e3088aa3f59a0ba795194240a0
Change-Id: I0af85955adbb224827bf52e8d4c49d0aca0caba4
2023-06-09 10:40:28 +02:00
Michael Große
202afecee6 Skip targets test to merge mutually blocking fixes
Needed-By: I0f53fbda59f6d2e3088aa3f59a0ba795194240a0
Needed-By: Ic8d1b6871efb45b34325c412de737f3a5f75c0e6
Change-Id: I92c297f0d170db17dfce03ed0d26614ac2182c87
2023-06-09 10:38:46 +02:00
Taavi Väänänen
c5063e9c18
Database: support passing an IReadableDatabase to getCacheSetOptions
Change-Id: Ia93e52838c0ca68732969268f36a4ff5f193ff16
2023-06-09 10:46:03 +03:00
Translation updater bot
0d914452e1 Localisation updates from https://translatewiki.net.
Change-Id: I80d467a3a880011e95c1c64527862733adccadba
2023-06-09 08:28:34 +02:00
jenkins-bot
fec202365f Merge "Tests: Error for any new module that introduces bad targets" 2023-06-08 20:36:51 +00:00
Jon Robson
c1f8e81356 Tests: Error for any new module that introduces bad targets
Going forward we do not want to use the targets system in the way
we traditionally used it. While updating existing usages will take
time it seems like it might be a good idea to prevent additional usages
being added. This list would gradually be updated as we update those
components.

Bug: T127268
Depends-On: Ibd7270abc5f223bc4f4814c896e7ef4d02d21386
Change-Id: I2e226c174be88caeb505738645cfa0582e39a197
2023-06-08 20:05:30 +00:00
Jon Robson
17498f533a Remove and correct selector for cached HTML
Follow up to I60eb3c7d7f169be2f826d7dc3948de5203e5f303

Bug: T316830
Change-Id: I18342988e112b58bd36fb5e09aad47699cac02ef
2023-06-08 19:44:34 +00:00
jenkins-bot
e0f11d7d4e Merge "Externallinks: Make port part of the index" 2023-06-08 19:09:36 +00:00
Amir Sarabadani
88d7e39857 Externallinks: Make port part of the index
This is important in rebuilding the URL and causes bugs such as T337149#8910620

Bug: T337149
Change-Id: I9cd5a17da6da9fdd85574de06e6f5d0310dd48f3
2023-06-08 20:28:03 +02:00
jenkins-bot
04abe18bff Merge "Replace IDatabase with IReadableDatabase where possible" 2023-06-08 18:24:30 +00:00
jenkins-bot
dd18be2a5e Merge "api: Silence database write warnings from ApiLogout" 2023-06-08 17:30:47 +00:00
jenkins-bot
a7e1ce660e Merge "pagers: Make some pagers operate on IReadableDatabases" 2023-06-08 16:26:21 +00:00
Timo Tijhof
58ec5f03cf api: Silence database write warnings from ApiLogout
At WMF, we get about 36,000 pre-send warnings from TransactionProfiler
(Logstash: mediawiki-rdbms-performance), of which 9000 are from
ApiLogout.

For example:

> Expectation (writes <= 0) by ApiMain::setRequestExpectations not met
> (actual: 1):
> role-primary: INSERT INTO `cu_changes` (…) VALUES (N,...,N,'X',N,...,N)

These are actually fine as-is given that api?action=logout already
requires POST method and CSRF tokens. We just didn't indicate yet
that it was expected to perform writes (as opposed to using POST for
cache reasons or due to query size).

Change-Id: I89aa7bf672fbf71f153971ad9c0a5d6fbb7733f5
2023-06-08 17:22:42 +01:00
jenkins-bot
3814e7a1a5 Merge "Add return type to getIndicators() in ParserOutput & OutputPage" 2023-06-08 14:24:28 +00:00
jenkins-bot
62a95d4bf5 Merge "tests: Migrate Database::update usages to UpdateQueryBuilder" 2023-06-08 13:25:06 +00:00
jenkins-bot
13b16e1fb6 Merge "UserGroupManager: Make newQueryBuilder accept a IReadableDatabase" 2023-06-08 13:24:26 +00:00
Taavi Väänänen
13e6785388
pagers: Make some pagers operate on IReadableDatabases
Change-Id: I3714e05b64d73a5cd87b3b052d8cb036cdc8ca64
2023-06-08 15:17:48 +03:00
Taavi Väänänen
79495f1d2c
UserGroupManager: Make newQueryBuilder accept a IReadableDatabase
Change-Id: If74a0cddf3ac6a2d7817646401537b024e23f467
2023-06-08 15:17:48 +03:00
jenkins-bot
626ed8d16c Merge "Pingback: Inline the private markSent() function" 2023-06-08 12:00:20 +00:00
jenkins-bot
b88ae224e9 Merge "Replace usages of deprecated MWException" 2023-06-08 11:39:28 +00:00
Amir Sarabadani
f5c6aa0385 tests: Migrate Database::update usages to UpdateQueryBuilder
Bug: T330640
Change-Id: Iaaf36344b7ca265f12173d17e0a8c8efc3aeb763
2023-06-08 13:29:22 +02:00
Lucas Werkmeister
15f076efca Clean up UpdateQueryBuilder usage
This follows up change I608566700c, which was mainly generated by a
script. Most of the clean up here is fixing cases where it seems the
script for some reason collapsed multi-line arrays into single-line ones
and/or removed spaces after commas. A handful of other improvements are
included too (split merged conditions into ->where()->andWhere(), use
buildComparison()). In RevDelArchiveItem, a comment is restored that I
assume was removed accidentally (perhaps because the script didn’t
expect comments inside the conditions).

Bug: T330640
Change-Id: If27bafb12fdaa05d3dc1ae6da820e1630ae2742e
Follows-Up: I608566700c6d737ee986bf47dda87effc69614d6
2023-06-08 12:50:37 +02:00
Amir Sarabadani
b55c501fe0 Migrate Database::update() to UpdateQueryBuilder
I did this using a script written on top of antlr4 parser so it doesn't
have some clean ups a human would do but it's pretty nice already.

Bug: T330640
Change-Id: I608566700c6d737ee986bf47dda87effc69614d6
2023-06-08 12:34:20 +02:00
Translation updater bot
54704d1d93 Localisation updates from https://translatewiki.net.
Change-Id: Ie7dc2ab999e93fdf1379bd95a71eec95be9f26e0
2023-06-08 08:43:48 +00:00
jenkins-bot
a8620ac709 Merge "changetags: Move more functions from ChangeTags to ChangeTagsStore" 2023-06-08 08:05:24 +00:00
jenkins-bot
a6d3ea7553 Merge "WikiMap: Support wiki URLs with a port part" 2023-06-08 03:15:55 +00:00
jenkins-bot
23c6cbc457 Merge "user: Avoid exception about cross-wiki users in UserGroupManager" 2023-06-07 22:17:36 +00:00
jenkins-bot
c9af0a9ae9 Merge "user: Accept local wiki name on UserGroupManagerFactory" 2023-06-07 22:14:05 +00:00
jenkins-bot
c610b5abc8 Merge "Follow-up I6a02042f: Ensure reason is always a string" 2023-06-07 16:52:16 +00:00
Ed Sanders
6fd9b88f54 Follow-up I6a02042f: Ensure reason is always a string
Change-Id: Ia21af5599ac3867c077910c810a23c6b3544797b
2023-06-07 12:16:28 -04:00
James D. Forrester
7fd5a7eb55 Follow-up 1eb5860: Move update to corrected RELEASE-NOTES
Change-Id: I3996915584a07378f6e7efd9e97b30c7f566bd9b
2023-06-07 12:12:10 -04:00
Alexander Vorwerk
b3611755d7 Drop revision_comment_temp
Bug: T299954
Change-Id: I85d21b1eff70a7d70e8ce14f25d66f7e7c76e5fe
2023-06-07 15:34:57 +00:00
jenkins-bot
478be1caea Merge "Mark PageContent::getRedirectTarget for removal" 2023-06-07 14:53:03 +00:00
jenkins-bot
abb38c6620 Merge "Maintenance: Add --reason option to createAndPromote.php" 2023-06-07 13:59:48 +00:00
Owen
01a60e5268 Maintenance: Add --reason option to createAndPromote.php
Allows specifying a reason for promoting users through createAndPromote.

Bug: T168205
Change-Id: I6a02042f6972ec718bae3adb2b7afbb2782c5673
2023-06-07 13:16:44 +00:00
jenkins-bot
971e2cf1b6 Merge "Pingback: Avoid confusingly named non-test method in PingbackTest" 2023-06-07 09:40:00 +00:00
jenkins-bot
af954562cf Merge "foreign-resources: Correct Codex version number to 0.12.0" 2023-06-07 02:56:46 +00:00
jenkins-bot
42d954e6f9 Merge "rdbms: upgrade SQLPlatform::normalizeUpsertParams() warnings to errors" 2023-06-07 00:57:27 +00:00
Roan Kattouw
d8c996d627 foreign-resources: Correct Codex version number to 0.12.0
In e346a4e8ca Codex was updated from
v0.11.0 to v0.12.0, but the version numbers in foreign-resources.yaml
were not changed.

Change-Id: I7872f25a8a68dbdbb1c8bffed78aba7f92e3b648
2023-06-06 16:41:52 -07:00
jenkins-bot
e414d4308b Merge "Update Codex from v0.11.0 to v0.12.0" 2023-06-06 22:14:21 +00:00
Eric Gardner
e346a4e8ca Update Codex from v0.11.0 to v0.12.0
Bug: T284273
Bug: T325105
Bug: T326665
Bug: T330803
Bug: T331034
Bug: T331040
Bug: T331042
Bug: T332124
Bug: T333394
Bug: T333437
Bug: T335694
Bug: T337279
Bug: T337282
Bug: T337429
Bug: T337442
Bug: T338144
Bug: T338177
Change-Id: I1144275b7199f7388620f16886c9208d2f9d09de
2023-06-06 13:45:16 -07:00
jenkins-bot
9c31221bd8 Merge "site: Simplify SiteList by removing GenericArrayObject indirection" 2023-06-06 19:42:39 +00:00
Timo Tijhof
cc47b4ff95 Pingback: Inline the private markSent() function
Inspired by Lucas' comment at
<https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/923719>
for Wikibase's copy of this class.

Change-Id: Ie45672331da5ed1bd3f3d0c84ae35f49cf4e25c6
2023-06-06 19:42:07 +01:00
Timo Tijhof
a54104f3ef Pingback: Avoid confusingly named non-test method in PingbackTest
Rename from testRun(), which looked like a test case missing a
data provider, to makePingback(). Also restructure it such that
the callers call run() instead of the utility method doing this.

Change-Id: I5fdde8ea8dc777469300deb15c4089ad57c264b9
2023-06-06 19:40:58 +01:00
jenkins-bot
0a9c258262 Merge "rdbms: make affectedRows() count each updated row in replace() as one" 2023-06-06 18:25:29 +00:00
jenkins-bot
96acb13dc2 Merge "rcfilters: Avoid double-escaping on messages" 2023-06-06 18:17:03 +00:00