From f59e5ba00e280038dba6da2de20a2aa692f46a03 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 15:29:55 +0800 Subject: [PATCH] test(db): the export-code fixture report is a generating row (BUG-2359 follow-up) personal_reports ties status 'ready' to a document, hashes and completed_at; the export rule only reads ownership, so the fixture inserts a 'generating' report as the reading-log fixture does. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq --- frontend/tests/database-report-exports-2359.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/tests/database-report-exports-2359.test.ts b/frontend/tests/database-report-exports-2359.test.ts index c7faabef4..51671df2a 100644 --- a/frontend/tests/database-report-exports-2359.test.ts +++ b/frontend/tests/database-report-exports-2359.test.ts @@ -56,7 +56,9 @@ test("report export codes: own reports only, admin lookup by permission, admin_r schema_version, presentation_mode, requested_themes, depth, skill_name, skill_version, skill_source_commit, skill_snapshot_sha256 ) values ( - '${reportId}', '${ownerId}', '${reportId}', '${HASH}', 'personal_full', 'ready', + -- BUG-2359 follow-up: 'generating' needs no document / hashes / completed_at (personal_reports checks + -- tie status = 'ready' to all four); the export rule only reads ownership. + '${reportId}', '${ownerId}', '${reportId}', '${HASH}', 'personal_full', 'generating', 'report_document.v2', 'default', array['career']::text[], 'standard', 'jyotish-personal-report', '1.0.0', '${"b".repeat(40)}', '${HASH}' );