I raised this in the CR of https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/591971/6
repo/maintenance/pruneItemsPerSite.php is a repo script, and now we have repos without all entity types enabled.
This means a simple check that repo is enabled is no longer enough, and if a maintenance script interacts with "items" it should only be allowed to run on a repo with "items" on the local entity source.
We should audit all of our maintenance scripts and add this check where we deem necessary.
Acceptance Criteria🏕️🌟 :
- All repo maintenance scripts that interact with a specific entity type should ensure it exists on the local entity source