Files
superset2/tests/unit_tests/widgets
Enzo MartellucciandClaude Sonnet 5 06c2079a00 feat(dashboard-v2): add dependency graph + enricher runner for dynamic control fields
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>
2026-08-27 00:01:22 +02:00
..