feat(ingest): 源与目录文件名过滤及钉钉文档导出
- filename_filter_rules table (000035) with source-root and per-directory rows - additive inheritance: source default + every ancestor directory contributes - filename_is_filtered() SQL predicate applied to catalog browsing, subtree counts, change-set diffing, routing fan-out and artifact fetch manifests - fetch_state 'filtered' (CHECK extended); reconcile cancels/restores fetch jobs, retires planned publications and blocks items when rules change - GET/PUT/DELETE /api/v1/filename-filters (Idempotency-Key, normalized extensions) + Settings and Catalog filter editors - failJobSQL no longer swallows the claimed row when the failure projection upserts (fixes spurious 'lease lost' retries) - DingTalk live fetch: adoc/axls now use the export-job pipeline (HTTP 403 from file/download fixed), header-signature downloads supported
This commit is contained in:
@@ -95,6 +95,9 @@ func (handler *Handler) Handle(ctx context.Context, job jobs.Job) error {
|
||||
}
|
||||
manifest, err := handler.store.LoadArtifactFetchManifest(ctx, request.ConnectionID, request.NodeID)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrManifestFiltered) {
|
||||
return nil
|
||||
}
|
||||
if errors.Is(err, ErrManifestGone) {
|
||||
return jobs.Permanent(jobs.ErrCodeStateConflict, err)
|
||||
}
|
||||
@@ -226,6 +229,7 @@ func (runner *CommandRunner) Run(ctx context.Context, manifest Manifest) (Result
|
||||
}
|
||||
|
||||
var ErrManifestGone = errors.New("artifact fetch manifest is gone")
|
||||
var ErrManifestFiltered = errors.New("artifact fetch excluded by filename filter")
|
||||
|
||||
// limitedWriter captures at most limit bytes of script stderr; full output is
|
||||
// never retained (it could echo source details we do not want in failures).
|
||||
|
||||
Reference in New Issue
Block a user