Introduce a unified Seed→Lineage→Event pipeline replacing per-page Python BFS with Oracle CONNECT BY NOCYCLE queries, add staged /api/trace/* endpoints with rate limiting and L2 Redis caching, and wire progressive frontend loading via useTraceProgress composable. Key changes: - Add LineageEngine (split ancestors / merge sources / full genealogy) with QueryBuilder bind-param safety and batched IN clauses - Add EventFetcher with 6-domain support and L2 Redis cache - Add trace_routes Blueprint (seed-resolve, lineage, events) with profile dispatch, rate limiting, and Redis TTL=300s caching - Refactor query_tool_service to use LineageEngine and QueryBuilder, removing raw string interpolation (SQL injection fix) - Add rate limits and resolve cache to query_tool_routes - Integrate useTraceProgress into mid-section-defect with skeleton placeholders and fade-in transitions - Add lineageCache and on-demand lot lineage to query-tool - Add TraceProgressBar shared component - Remove legacy query-tool.js static script (3k lines) - Fix MatrixTable package column truncation (.slice(0,15) removed) - Archive unified-lineage-engine change, add trace-progressive-ui specs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
431 B
SQL
14 lines
431 B
SQL
-- Unified LineageEngine - Merge Sources
|
|
-- Find source lots merged into finished lots from DW_MES_PJ_COMBINEDASSYLOTS.
|
|
--
|
|
-- Parameters:
|
|
-- FINISHED_NAME_FILTER - QueryBuilder-generated condition on ca.FINISHEDNAME
|
|
--
|
|
SELECT
|
|
ca.CONTAINERID AS SOURCE_CID,
|
|
ca.CONTAINERNAME AS SOURCE_NAME,
|
|
ca.FINISHEDNAME,
|
|
ca.LOTID AS FINISHED_CID
|
|
FROM DWH.DW_MES_PJ_COMBINEDASSYLOTS ca
|
|
WHERE {{ FINISHED_NAME_FILTER }}
|