Page MenuHomePhabricator

Prepare maintenance script removeOrphanedActors.php in Translate extension to support $wgMultiShardSiteStats
Closed, ResolvedPublic

Description

Since T306589 the site_stats table can have more rows (behind feature flag $wgMultiShardSiteStats).

removeOrphanedActors.php does a direct update. Should use the SiteStatsUpdate::class instead (to report the different) or re-init the stats

Details

Event Timeline

Nikerabbit triaged this task as Low priority.
Nikerabbit moved this task from Backlog to Stash/Sandbox on the MediaWiki-extensions-Translate board.
Nikerabbit subscribed.

We will check if this script is still needed or whether it can be removed.

Ran this script on twn server today and found 2 orphaned actors form Aug 2021, and July 2020. These were removed.

Since there have been no recent occurrences of this, we're planning to remove this script.

Change 809643 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] Remove script removeOrphanedActors

https://gerrit.wikimedia.org/r/809643

Change 809643 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Remove script removeOrphanedActors

https://gerrit.wikimedia.org/r/809643