Dockerfile 运行阶段补齐 dws_dingtalk_scan(F12),并新增 runtime-scripts 门禁 做脚本依赖闭包正负例;就绪探测每次解析当前端点/绑定/凭据并区分 404、未配置、 不可达(F13);路由写入来源路径与父目录,历史空值仅按同连接同 item 的意图读时 补齐(F14);目标筛选显示短 ID 与当前绑定/历史并提供快捷筛选(F15);刷新终态 移除后台运行、展示失败时间/旧快照/脱敏原因/作业 ID 与重试(F16)。 验证:make verify 17 项全过(identity 本地按设计 skipped);一次性 schema 的 Monitor 目录/路由集成用例通过;8088 部署与真实 UI 验收仍由父会话执行。
This commit is contained in:
@@ -118,11 +118,11 @@ ORDER BY head.activated_at DESC NULLS LAST LIMIT 1 FOR UPDATE OF node`, request.
|
||||
if _, err := tx.Exec(ctx, `INSERT INTO source_items(
|
||||
id,source_connection_id,stable_external_id,canonical_uri_hash,title,item_type,revision,
|
||||
visibility,visibility_origin,source_change,absence_streak,identity_confidence,
|
||||
policy_state,created_at,updated_at)
|
||||
VALUES($1,$2,$3,$4,$5,'file','',$7,'configured_scope','unchanged',0,'object_id',$6,NOW(),NOW())`,
|
||||
policy_state,normalized_path,parent_external_id,created_at,updated_at)
|
||||
VALUES($1,$2,$3,$4,$5,'file','',$7,'configured_scope','unchanged',0,'object_id',$6,$8,$9,NOW(),NOW())`,
|
||||
newItemID, request.ConnectionID, "cat:"+file.NodeID,
|
||||
sha256Hex("policy:"+request.ConnectionID+"\x00"+file.NodeID),
|
||||
file.Name, policy, itemVisibilityFor(request.Visibility)); err != nil {
|
||||
file.Name, policy, itemVisibilityFor(request.Visibility), file.RelativePath, file.ParentNodeID); err != nil {
|
||||
return false, false, 0, false, fmt.Errorf("materialize policy source item: %w", err)
|
||||
}
|
||||
if _, err := tx.Exec(ctx, `UPDATE catalog_import_intents SET source_item_id=$3 WHERE source_connection_id=$1 AND node_id=$2`,
|
||||
@@ -131,6 +131,15 @@ VALUES($1,$2,$3,$4,$5,'file','',$7,'configured_scope','unchanged',0,'object_id',
|
||||
}
|
||||
itemID = newItemID
|
||||
}
|
||||
// 历史行(当时没写来源路径)只补空值:意图已把 item 绑定到本连接的这个 node,
|
||||
// 身份可证;已有路径绝不被覆盖,避免把下架连接重绑成当前来源。
|
||||
if _, err := tx.Exec(ctx, `UPDATE source_items SET
|
||||
normalized_path=CASE WHEN normalized_path='' THEN $2 ELSE normalized_path END,
|
||||
parent_external_id=CASE WHEN parent_external_id='' THEN $3 ELSE parent_external_id END,
|
||||
updated_at=CASE WHEN normalized_path='' OR parent_external_id='' THEN NOW() ELSE updated_at END
|
||||
WHERE id=$1`, itemID, file.RelativePath, file.ParentNodeID); err != nil {
|
||||
return false, false, 0, false, fmt.Errorf("persist policy source path: %w", err)
|
||||
}
|
||||
// Bind the snapshot nodes too (new or reused item): the browser's
|
||||
// 已导入/已解析 counters join source_catalog_nodes.source_item_id; without
|
||||
// this write every catalog-only source keeps showing "尚未导入" even after
|
||||
|
||||
Reference in New Issue
Block a user