Merge branch 'deai2'
Co-Authored-By: Claude Fable 5.1 <[email protected]> # Conflicts: # apps/server/src/modules/acquisition-organize/services/organize.ts # apps/web/app/routes/console/sites.$siteId.tsx
This commit is contained in:
commit
12bc4664b6
247 files changed
+2658
-2148
No files matched your search
@@ -179,7 +179,7 @@ describe.skipIf(!pg)("DEC-1 惰性识别 + 待识别池", () => {
|
||||
expect(ds).toHaveLength(1);
|
||||
const d = ds[0]!;
|
||||
expect(d.severity).toBe("warning");
|
||||
expect(d.title).toMatch(/^来源「.+」的 3 条资源待确认身份:Twins$/);
|
||||
expect(d.title).toMatch(/^来源「.+」的 3 条资源没识别出作品:Twins$/);
|
||||
const ev = d.evidence as { count: number; releases: { sourceReleaseId: string }[] };
|
||||
expect(ev.count).toBe(3);
|
||||
expect(ev.releases.map((x) => x.sourceReleaseId).sort()).toEqual([...ids].sort());
|
||||
@@ -228,7 +228,7 @@ describe.skipIf(!pg)("DEC-1 惰性识别 + 待识别池", () => {
|
||||
expect(after.status).toBe("open");
|
||||
expect((after.evidence as { count: number }).count).toBe(1);
|
||||
expect(after.subject_id).toBe(pool[1]!.source_release_id);
|
||||
expect(after.title).toMatch(/^待确认身份:Nightfall\.1995\./);
|
||||
expect(after.title).toMatch(/^没识别出作品:Nightfall\.1995\./);
|
||||
// 最后一条忽略 → 事项关闭
|
||||
const last = await h.db
|
||||
.selectFrom("identity_candidate")
|
||||
@@ -336,7 +336,7 @@ describe.skipIf(!pg)("迁移 0047:存量 identity_unresolved 清理", () => {
|
||||
.values({
|
||||
kind: "identity_unresolved",
|
||||
severity: "info",
|
||||
title: `待识别:${title}`,
|
||||
title: `未识别:${title}`,
|
||||
subject_type: "source_release",
|
||||
subject_id: r.id,
|
||||
dedupe_key: `identity:${r.id}`,
|
||||
|
||||
Reference in new issue
Block a user