Skip to content

Fix ExplainerHub add_dashboard_route after first request#335

Merged
oegedijk merged 1 commit intomasterfrom
fix/hub-add-dashboard-route-269
Feb 6, 2026
Merged

Fix ExplainerHub add_dashboard_route after first request#335
oegedijk merged 1 commit intomasterfrom
fix/hub-add-dashboard-route-269

Conversation

@oegedijk
Copy link
Copy Markdown
Owner

@oegedijk oegedijk commented Feb 6, 2026

Summary

  • fix ExplainerHub.add_dashboard to support dynamic dashboard registration after the Flask app has already served requests when add_dashboard_route=True
  • add a regression test that reproduces the /add_dashboard/<name> flow after an initial request and verifies the dashboard is actually added
  • update TODO.md and RELEASE_NOTES.md for this fix

Root Cause

/add_dashboard/... runs inside before_request and calls code paths that register Dash/Flask setup (blueprints/routes). Flask blocks setup mutations after first request, causing add to fail.

Validation

  • uv run pytest -q tests/hub/test_hub.py

Fixes #269

@oegedijk oegedijk merged commit e3566aa into master Feb 6, 2026
12 checks passed
@oegedijk oegedijk deleted the fix/hub-add-dashboard-route-269 branch February 6, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExplainerHub fails to add dashboard via add_dashboard endpoint

1 participant