Page MenuHomePhabricator

Add maintenance script to check auto-close for all existing SI cases
Closed, ResolvedPublic

Description

Summary

The ticket T414979 introduced automatic closing of SI cases when all associated accounts are blocked, but only for new blocks.

User story

As steward/user with SI permissions I don't want to have to manually go through all open existing cases. There probably are already existing open cases created before the T414979 ticket that could also be auto-closed.

Acceptance criteria

  • Create a maintenance script that queues SuggestedInvestigationsAutoCloseForCaseJob for every currently open SI case. The job already re-checks status and block state before acting, so it is safe to queue broadly.
  • Optionally add a --dry-run param.
  • The script should run during wiki update.

Event Timeline

MPostoronca-WMF renamed this task from Add maintenance script to check auto-close for all open SI cases to Add maintenance script to check auto-close for all existing SI cases.Feb 24 2026, 10:24 AM
MPostoronca-WMF updated the task description. (Show Details)

Change #1243074 had a related patch set uploaded (by Mpostoronca; author: Mpostoronca):

[mediawiki/extensions/CheckUser@master] Add QueueAutoCloseSuggestedInvestigationCases maintenance script

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

Change #1243074 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Add QueueAutoCloseSuggestedInvestigationCases maintenance script

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

dom_walden subscribed.

I have run this job locally and it closed all the cases that it should have and none that it shouldn't have.