Skip to content

Commit 9ee9bf2

Browse files
committed
test(runtime): take main's Default Organization golden fixture
The pre-18 relax a 7b-0 work-in-progress commit added rode into this branch through the earlier main merge; main's version (after #25016) supersedes it and this part does not change that file. Claude-Session: https://claude.ai/code/session_01NnXVu3vF2TKFLMi5Me4CUd Co-authored-by: Claude <noreply@anthropic.com>
1 parent 22df698 commit 9ee9bf2

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎packages/runtime/src/default-organization-statements.golden.test.ts‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,6 @@ describe('[#24523] statements per warm request: an organization-owned admin gran
196196

197197
describe('[#24523 / #21868] a sys_organization write retires the memoised Default Organization', () => {
198198
it('⭐ the Default Organization deleted and recreated: the next request reads the new id', async () => {
199-
// Deleting an organization runs the engine's referential cascade, whose
200-
// `set_null` on every `organization_id` lookup a fresh, NOT NULL tenant
201-
// column refuses (ADR-0131 D1). This test's subject is the memo, not the
202-
// cascade, so the store is a pre-18 one: every tenant table it holds is
203-
// relaxed through its driver's own drift apply door.
204-
for (const o of (engine as any).registry.getAllObjects() as Array<{ name: string; fields?: Record<string, unknown>; tenancy?: { enabled?: boolean } }>) {
205-
if (!o.fields?.organization_id || o.tenancy?.enabled === false) continue;
206-
const driver = (engine as any).getDriver(o.name);
207-
if (!(await driver?.knex?.schema.hasTable(o.name))) continue;
208-
await relaxTenantColumns(driver, [o.name]);
209-
}
210199
const [old] = await find('sys_organization', { slug: 'default' });
211200
await standing(); // the control above wrote the organization: read it once
212201
expect(await standing()).toEqual({ standing: true, organizationReads: 0 });

0 commit comments

Comments
 (0)