From 8ec69489185304b2bb680cbd57a83ebe6da4e041 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 5 Jul 2026 11:26:16 +0000 Subject: [PATCH] =?UTF-8?q?fix(graph):=20backfill=20=E8=AE=80=20entity=20?= =?UTF-8?q?=E4=B8=8D=E5=B8=B6=20owner=20=E9=81=8E=E6=BF=BE(=E5=AD=98?= =?UTF-8?q?=E9=87=8F=20owner=3DNone,=E6=BF=BE=E4=BA=86=E8=AE=800);owner=20?= =?UTF-8?q?=E5=8F=AA=E5=A5=97=E5=BB=BA=E7=AB=8B=E7=9A=84=20gloss=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/backfill-gloss-entries.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/backfill-gloss-entries.ts b/src/actions/backfill-gloss-entries.ts index 1356071..4b12ad8 100644 --- a/src/actions/backfill-gloss-entries.ts +++ b/src/actions/backfill-gloss-entries.ts @@ -24,7 +24,9 @@ export async function backfillGlossEntries( owner_id: string, // 必經:存量 entity record 本身 owner=None,owner 由 caller 明確指定(配合 owner-mandatory D28) ): Promise { await ensurePluginTemplates(client); - const records = await client.listRecordsByTemplate(TPL_ENTITY, owner_id); + // 讀「全部」存量 entity record(不帶 owner 過濾)——存量 entity 本身 owner=None,拿 owner 去濾來源會讀到 0。 + // owner 只套在下面建立的 gloss entry(caller 明確指定),不套來源讀取。 + const records = await client.listRecordsByTemplate(TPL_ENTITY); const res: BackfillGlossResult = { scanned: records.length, created: 0, updated: 0, unchanged: 0, skipped: 0 }; for (const r of records) {