Files
579c076909 fix(storage): backfill storage status and usage automatically on upgrade (#822)
* fix(storage): backfill storage status and usage automatically on upgrade

Instances upgraded from v2.7.x needed two operator-run scripts nobody was
told about: a storage the admin had switched off became writable again, and
existing workspaces showed zero in every storage category.

A new migration converts legacy storage statuses and fills the usage
breakdown for workspaces that have none. It is idempotent and a no-op on
fresh or already-backfilled databases, and runs on D1, Node SQLite and Turso.

Remove the now redundant storage backfill scripts, plus the API key and
OAuth scope scripts: legacy API keys are upgraded on first use and no
released version has stale OAuth rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(shared): cover API key permission normalization directly

The removed backfill script tests were the only coverage for the malformed-input branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: edith <edith@agents.realmroot.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 03:52:21 +00:00
..
2026-08-05 13:06:41 -04:00
2026-08-03 01:05:11 -04:00
2026-08-03 01:05:11 -04:00