Repository navigation
Fix dashboard topology context leaking between sources - #35001
Conversation
Code Review ✅ Approved🟡 Medium risk · Giving each dashboard source its own topology context prevents stale chart IDs from leaking across services, which could otherwise trigger invalid API requests. Fixes dashboard topology context leaking between sources by creating a fresh context in each OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
🚦 Removed from the merge queue —
|
|
🚦 Removed from the merge queue —
|



Describe your changes:
Fixes
test_redash_native_tags_persist_through_workflow[fresh]in the Python integration pipeline.DashboardServiceSource.contextwas shared across source instances. The Superset test left chart37in that context, so the next Redash workflow referenced a chart that did not exist in its service and received HTTP 400. Create a context in each source constructor, add regression coverage for Redash-to-Redash and Superset-to-Redash isolation, and update the PowerBI test to patch the instance context.Type of change:
High-level design:
Not applicable — small fix to context ownership.
Tests:
python -m pytest ingestion/tests/unit/topology/dashboard -q: 925 passed.python -m pytest ingestion/tests/integration/tags/test_dashboard_stages.py -q: 6 passed against the local backend, including Redash fresh/existing/denied cases.ingestion/tests/unit/test_ometa_utils.pywith coverage: 964 passed. Dashboard base module line coverage is 83.33%; the changed constructor line is covered.test_context.py,test_context_manager.py,test_runner.py,test_topology_runner_progress.py,test_topology_progress_path.py).git diff --checkpassed.natsdependency, and broader topology runs attempt AWS metadata, Glue, and Confluent network calls blocked by the sandbox. The full integration suite was not rerun; validation uses the affected dashboard tag integration tests.Backend API, Playwright, UI screenshots, and manual UI testing: not applicable — Python-only change.
Checklist: