Repository navigation
fix(mfe): bind toolbar refresh to its dashboard owner - #269
harjotgill wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
|
Acceptance update: follow-up browser testing showed click-target displacement (Username activated Repository Name; screenshot refresh coordinates activated Zoom out). The earlier absence of refresh requests is therefore not valid production reproduction evidence. The unit-tested ownership edge case remains, but do not treat this PR as a confirmed production no-op fix. No auto-merge requested; verifying keyboard-triggered refresh on the existing deployment before deciding whether to proceed. |
|
Closing this PR from the migration critical path: keyboard activation of the exact Refresh dashboard control succeeds on the existing deployment. At 22:51:39.893 UTC it refreshed the username variable and then the visible panels; six Handler query requests returned 200 in the bounded window. Earlier click-based no-op observations were caused by displaced browser automation targets, not a reproduced production refresh defect. The proposed owner-binding edge-case tests pass, but there is no demonstrated need to ship this extra patch for migration acceptance. Keeping the branch recoverable; no merge or deployment. |
Summary
Bind embedded dashboard toolbar refresh to the toolbar's own model and MFE store. Keep standalone Grafana refresh unchanged. Restore the previous store owner immediately after synchronous thunk dispatch, including failures, rather than holding global ownership across asynchronous work.
Evidence and scope
Internal Knowledge Base acceptance observed a refresh click without a loading transition or Handler query requests in the subsequent bounded window. Source inspection found the toolbar delegates to the global TimeSrv model, unlike the already owner-bound host refresh path. A regression test fails on the previous implementation because the toolbar owner is never called. This fixes that ownership defect; production causality and successful warm refresh still require post-deploy verification. No SQL, authorization, tenant scope, credentials, timeouts, or reader flags change.
Validation
Rollout / handoff
Normal review and CI required; no admin merge. Grafana deployment is authorized by the user. After deployment verify exact US/EU revisions, refresh each mounted dashboard, confirm new requests and updated panels, then record separate warm-refresh and full-page timings. Keep existing writers and tenant isolation unchanged. This PR does not claim overall migration acceptance.
Agent continuation: existing Grafana checkout, branch codex/mfe-toolbar-refresh; primary mono worktree e548 is preserved. Existing acceptance evidence is in /tmp/metrics-production-acceptance-20260926-2041.md on the task host.
Summary by CodeRabbit