mirror of
https://github.com/apache/superset.git
synced 2026-09-07 15:54:55 +00:00
New superset_core.widgets.enrichment: walks a built control schema to find every x-dynamic field (including inside $defs, mirroring Customization.series's actual shape), derives a dependency graph from each field's existing x-dependsOn (an entry naming another dynamic field's path is an ordering edge; anything else stays a truthiness gate), topologically sorts it via Kahn's algorithm (raising on a cycle, naming every field on it), and runs each field's registered enricher in that order, threading prior results forward as upstream_results. Not yet wired into Widget.get_control_schema -- that's the next commit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>