F17:MarkArtifactFetched 与已验证内容复用都在同一事务内经过策略、来源启用、 过滤、superseded 和当前绑定的复核后,自动把 planned 转 pending 并入队唯一 test.upload;确认与作业幂等,失败整笔回滚。356 已卡记录可对同一文件再次保存 当前策略,经同一路径恢复,不做全库补扫或手工补队列。来源页提示改为自动接续。 F14:来源→监控定位清空未结束/动作/阶段/时间筛选;来源目录定位改为一次性请求 并由父消费,revision/sources 重载不再重放旧请求,手工换目录保持。 F13:抽出 readiness.Resolver 作为端点/绑定/凭据唯一来源;worker 上传/轮询/ 校验/移除改用动态客户端,每次调用重读有效配置,不再固化启动 env 客户端。 验证:隔离 PG 的 F17 正负例与恢复用例、前端挂载定位回归、全量 Go/前端测试 及 make verify 17 项通过。未部署、未做 8088 UI 验收。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useContext, useEffect, useState } from 'react'
|
||||
import { useContext, useEffect, useRef, useState } from 'react'
|
||||
import {
|
||||
fetchCatalogNodes,
|
||||
fetchCatalogRoutingCapabilities,
|
||||
@@ -529,9 +529,11 @@ export function SourceCatalogBrowserView({
|
||||
export function SourceCatalogBrowser({
|
||||
focus,
|
||||
onViewProcessing,
|
||||
onFocusApplied,
|
||||
}: {
|
||||
focus?: { connectionID: string; nodeID: string } | null
|
||||
onViewProcessing?: (source: CatalogSource, node: CatalogNode) => void
|
||||
onFocusApplied?: () => void
|
||||
} = {}) {
|
||||
const [sources, setSources] = useState<CatalogSource[]>([])
|
||||
const [selected, setSelected] = useState<CatalogSource | null>(null)
|
||||
@@ -656,16 +658,20 @@ export function SourceCatalogBrowser({
|
||||
return () => controller.abort()
|
||||
}, [selected, parentID, offset, revision])
|
||||
|
||||
// 从解析监控“在来源与目录定位”进入:选中该来源并直接打开文件所在目录。
|
||||
// 从解析监控“在来源与目录定位”进入:这是一次性导航请求。应用后由父消费;
|
||||
// 同时用 ref 防同一请求在 sources 刷新/revision 重载时重放,手工换目录不会被拽回。
|
||||
const appliedFocus = useRef<typeof focus>(null)
|
||||
useEffect(() => {
|
||||
if (!focus || !sources.length) return
|
||||
if (!focus || !sources.length || appliedFocus.current === focus) return
|
||||
const target = sources.find((source) => source.connection_id === focus.connectionID)
|
||||
if (!target) return
|
||||
appliedFocus.current = focus
|
||||
setSelected(target)
|
||||
setParentID(focus.nodeID || target.root_node_id)
|
||||
setOffset(0)
|
||||
setPage(null)
|
||||
closeHistory()
|
||||
onFocusApplied?.()
|
||||
}, [focus, sources])
|
||||
// 有来源正在首次扫描时自动刷新列表:百分比会自己往前走,扫完那一行自动变成正式来源。
|
||||
useEffect(() => {
|
||||
@@ -759,7 +765,7 @@ export function SourceCatalogBrowser({
|
||||
reason: `目录页策略:${scope(policy)}`,
|
||||
})
|
||||
setRoutingMessage(
|
||||
`策略已保存 ${result.selected_files} 份;已记入意图 ${result.intents_recorded} 份;排队从源头取件 ${result.fetch_queued} 份;列入待入库 ${result.planned_publications} 份;标记禁止 ${result.blocked_items} 份;目录外无文件可标注 ${result.unbound_files} 份。到“解析监控 → 待入库”点开始处理即可。`
|
||||
`策略已保存 ${result.selected_files} 份;已记入意图 ${result.intents_recorded} 份;排队从源头取件 ${result.fetch_queued} 份;列入处理 ${result.planned_publications} 份;标记禁止 ${result.blocked_items} 份;目录外无文件可标注 ${result.unbound_files} 份。取件校验完成后会自动上传解析,可在“解析监控”跟踪进度。`
|
||||
)
|
||||
setRevision((value) => value + 1)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user