Skip to content

Commit 29b9f2d

Browse files
committed
Allowlist the inbox snooze table with its tenancy ruling
1 parent a301d62 commit 29b9f2d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎scripts/checks/no-product-tenancy.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,18 @@ const ALLOWLIST: readonly {
143143
maxOccurrences: 1,
144144
tables: ["pending_seed"],
145145
},
146+
{
147+
// `@corbits/mailbox`'s enrichment carries only priority,
148+
// classification and status — there is no column for a snooze's
149+
// `until` timestamp, so the reopen sweep has nothing to scan. This
150+
// table is that one column, keyed to the same
151+
// (tenantId, principalId, messageId) scope every mailbox mutation
152+
// already uses, in its own `inbox` schema. Tenancy, principals and
153+
// grants stay native (CL-7208).
154+
relPath: "packages/inbox/src/schema.ts",
155+
maxOccurrences: 1,
156+
tables: ["snooze"],
157+
},
146158
{
147159
relPath: "packages/slack-tag/src/schema.ts",
148160
maxOccurrences: 1,

0 commit comments

Comments
 (0)