mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
fix(storage): make the reclaim state on the admin storage state nullable
The shared contract made reclaim a required field, so every client fixture typed StorageAdminState stopped compiling. It is nullable now, as planned, and the five base fixtures carry reclaim: null.
This commit is contained in:
@@ -357,8 +357,11 @@ export const storageAdminStateSchema = z.object({
|
||||
health: z.object({ replicaFailures: z.array(storageReplicaFailureSchema) }),
|
||||
seedFilePresent: z.boolean(),
|
||||
usage: storageUsageSchema.nullable(),
|
||||
/** The reclaim switch and the last pass's report (null before the first pass). */
|
||||
reclaim: storageReclaimStateSchema,
|
||||
/**
|
||||
* The reclaim switch and the last pass's report (`lastRun` null before the
|
||||
* first pass). Nullable so a client reading an older server copes with it.
|
||||
*/
|
||||
reclaim: storageReclaimStateSchema.nullable(),
|
||||
backfills: z.array(storageBackfillStatusSchema),
|
||||
migrations: z.array(storageMigrationStatusSchema),
|
||||
/** Optimistic-concurrency counter for the two settings rows (audit #7) — echo it back on the next PUT. */
|
||||
|
||||
Reference in New Issue
Block a user