Parametrisierung der wesentliche Einstellwerte in der types.yaml
This commit is contained in:
1 parent
8b8baa27b3
commit
cd5383432e
4 files changed
+84
-18
No files matched your search
@@ -4,8 +4,8 @@ DESCRIPTION: Der zentrale IngestionService (Orchestrator).
|
||||
WP-14: Vollständig modularisiert.
|
||||
WP-15b: Two-Pass Workflow mit globalem Kontext-Cache.
|
||||
WP-20/22: Cloud-Resilienz und Content-Lifecycle integriert.
|
||||
AUDIT v2.13.4: 100% Logik-Erhalt (Parameters, Registry-Context, DB-Points).
|
||||
VERSION: 2.13.4
|
||||
AUDIT v2.13.7: Synchronisierung des Context-Scanners mit der Registry (WP-14).
|
||||
VERSION: 2.13.7
|
||||
STATUS: Active
|
||||
"""
|
||||
import logging
|
||||
@@ -75,7 +75,9 @@ class IngestionService:
|
||||
logger.info(f"🔍 [Pass 1] Pre-Scanning {len(file_paths)} files for Context Cache...")
|
||||
for path in file_paths:
|
||||
try:
|
||||
ctx = pre_scan_markdown(path)
|
||||
# ANPASSUNG: Übergabe der Registry für dynamische Scan-Parameter (WP-14)
|
||||
# Ermöglicht die Nutzung von summary_settings aus types.yaml
|
||||
ctx = pre_scan_markdown(path, registry=self.registry)
|
||||
if ctx:
|
||||
# Mehrfache Indizierung für robusten Look-up (ID, Titel, Dateiname)
|
||||
self.batch_cache[ctx.note_id] = ctx
|
||||
@@ -108,7 +110,12 @@ class IngestionService:
|
||||
except Exception as e:
|
||||
return {**result, "error": f"Validation failed: {str(e)}"}
|
||||
|
||||
if fm.get("status", "draft").lower().strip() in ["system", "template", "archive", "hidden"]:
|
||||
# Dynamischer Lifecycle-Filter aus der Registry
|
||||
ingest_cfg = self.registry.get("ingestion_settings", {})
|
||||
ignore_list = ingest_cfg.get("ignore_statuses", ["system", "template", "archive", "hidden"])
|
||||
|
||||
current_status = fm.get("status", "draft").lower().strip()
|
||||
if current_status in ignore_list:
|
||||
return {**result, "status": "skipped", "reason": "lifecycle_filter"}
|
||||
|
||||
# 2. Payload & Change Detection (Multi-Hash)
|
||||
|
||||
Reference in new issue
Block a user