module-storage: the key-list cap is untested — dropping KEY_LIST_LIMIT keeps the suite green #52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up (a) from the approving review on #46.
Nothing pins the cap on
GET /system/module-storage/:module. Replacing the route'shost.moduleStorage.list(module, KEY_LIST_LIMIT)(packages/server/src/app.ts:354) with an unboundedlist(module)— the exact round-3 shape — still passes 131/131.storage_test.tshas nolimitcase either, so both the SQL bound and thetotalthat reports what it cut are the one part of the change with no test.Closing it:
kv.list("m", 2)over five rows instorage_test.ts, plus a route assertion wheretotal > keys.length(todaytotalis only asserted in the uncapped case).Source: #46 (comment)