RockteMQ-AI commented on issue #4188: URL: https://github.com/apache/rocketmq-dashboard/issues/4188#issuecomment-5598416614
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The reported issue has been verified against the component code. **Root Cause:** In `web/src/components/MetricsExplorer.tsx`, the profile-loading effect hardcodes `RANGE_OPTIONS[0]` (the 1h default) on every invocation, including the reload path triggered by `instanceId` changes. The currently selected range is not read from component state on reload — only on initial mount is `RANGE_OPTIONS[0]` correct. **Impact:** Every instance switch on the home dashboard silently narrows the explored time window to 1h for users working with 6h/24h ranges. The displayed range label and the actual data window disagree, making trend readings taken right after a switch quietly wrong. **Severity:** Medium — data display correctness issue, no data loss, but can mislead operators during incident investigation. The reproduction steps are clear and the root cause analysis is accurate. PR #4189 is noted as the fix. --- *Automated evaluation by @RockteMQ-AI* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
