fix(graph): backfill 讀 entity 不帶 owner 過濾(存量 owner=None,濾了讀0);owner 只套建立的 gloss entry
This commit is contained in:
@@ -24,7 +24,9 @@ export async function backfillGlossEntries(
|
||||
owner_id: string, // 必經:存量 entity record 本身 owner=None,owner 由 caller 明確指定(配合 owner-mandatory D28)
|
||||
): Promise<BackfillGlossResult> {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user