From f1bda31e44645bde8a44b3451e2e7ddac9db2cc0 Mon Sep 17 00:00:00 2001 From: madhava Date: Wed, 24 Jun 2026 16:16:06 +0530 Subject: [PATCH 1/3] test: add Qedix positive authority gate case --- .../authority-gate-positive-test.ts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 packages/core/src/qedix-tests/authority-gate-positive-test.ts diff --git a/packages/core/src/qedix-tests/authority-gate-positive-test.ts b/packages/core/src/qedix-tests/authority-gate-positive-test.ts new file mode 100644 index 00000000000..cc229b616a8 --- /dev/null +++ b/packages/core/src/qedix-tests/authority-gate-positive-test.ts @@ -0,0 +1,33 @@ +type DbClient = { + connection: { + findFirst(args: unknown): Promise<{ id: string; value: number } | null>; + update(args: unknown): Promise; + }; +}; + +export async function updateConnectionWithoutTenantScope( + db: DbClient, + connectionId: string, + nextValue: number +) { + const existing = await db.connection.findFirst({ + where: { + id: connectionId, + }, + }); + + if (!existing) { + return null; + } + + await db.connection.update({ + where: { + id: existing.id, + }, + data: { + value: existing.value + nextValue, + }, + }); + + return { success: true, data: { connectionId: existing.id } }; +} From 2934cb8e0f98e5a6c67c04c15c144f19d8856496 Mon Sep 17 00:00:00 2001 From: madhava Date: Wed, 24 Jun 2026 19:37:21 +0530 Subject: [PATCH 2/3] test: rerun Qedix after report quality fixes From af874aad0b50b554c199bc4a93cc28d09f20600c Mon Sep 17 00:00:00 2001 From: madhava Date: Wed, 24 Jun 2026 19:43:46 +0530 Subject: [PATCH 3/3] test: rerun Qedix after report page deploy