Fas 1a punkt 3+4: worker-härdning (DLQ, larm, multi-instance), AAMOS training export
This commit is contained in:
@@ -67,6 +67,7 @@ export const aiCorrections = pgTable(
|
||||
/** Snapshot av samtyckesläget när korrigeringen skapades. */
|
||||
consentSnapshot: jsonb("consent_snapshot").notNull(),
|
||||
exportedToTraining: timestamp("exported_to_training", { withTimezone: true }),
|
||||
trainingBatchId: text("training_batch_id"),
|
||||
createdAt: createdAt(),
|
||||
},
|
||||
(t) => [index("ai_corrections_task_idx").on(t.taskType, t.createdAt)],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it, beforeEach, afterAll } from "vitest";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { eq, sql } from "drizzle-orm";
|
||||
import { createDatabase, closeDatabase } from "../src/client.js";
|
||||
import { schema, seedReleaseGates, evaluateReleaseGates, summarizeReleaseGates } from "../src/index.js";
|
||||
import { BUILT_IN_RELEASE_GATES } from "@app/shared-types";
|
||||
@@ -11,7 +11,7 @@ async function reset() {
|
||||
await db.delete(schema.releaseGates);
|
||||
await db
|
||||
.delete(schema.users)
|
||||
.where(eq(schema.users.email, "release-gates-test@example.invalid"));
|
||||
.where(sql`${schema.users.email} LIKE 'release-gates-test-%@example.invalid'`);
|
||||
}
|
||||
|
||||
async function createTestUser(id: string) {
|
||||
|
||||
Reference in New Issue
Block a user