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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
This commit is contained in:
@@ -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}'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user