- SearchIdentity 增加 NoTenantField,按目标 profile 决定是否注入 tenant_id (写入、归属预检、恢复搬运三条路径) - 归属冲突与写集合不匹配写明具体字段,排查不用再猜 - 网关侧 acquire 冲突打印 plan/claim/owner 三项
This commit is contained in:
@@ -246,7 +246,9 @@ func (target *DocumentTarget) restoreBundle(ctx context.Context, item releasewor
|
||||
// bundle. The bundle's own contract keeps the SOURCE base it was exported from.
|
||||
func targetIdentities(item releaseworkflow.PlanItem, manifest releasebundle.Manifest) (PostgresIdentity, SearchIdentity) {
|
||||
postgresIdentity := PostgresIdentity{TenantID: manifest.Contract.TenantID, KnowledgeBaseID: item.TargetBase(), KnowledgeID: manifest.Contract.KnowledgeID}
|
||||
return postgresIdentity, SearchIdentity(postgresIdentity)
|
||||
// 单文档发布路径沿用 0.7.1 契约(索引带 tenant_id)。
|
||||
return postgresIdentity, SearchIdentity{TenantID: postgresIdentity.TenantID,
|
||||
KnowledgeBaseID: postgresIdentity.KnowledgeBaseID, KnowledgeID: postgresIdentity.KnowledgeID}
|
||||
}
|
||||
|
||||
var _ releaseworkflow.SidecarTarget = (*DocumentTarget)(nil)
|
||||
|
||||
Reference in New Issue
Block a user