RockteMQ-AI commented on issue #2153: URL: https://github.com/apache/rocketmq-dashboard/issues/2153#issuecomment-5283882091
**Issue Evaluation** Category: `bug` | Status: **Confirmed** The selector initializes `selectedInstanceId` with `Instance.id` but builds option values from `Instance.name`. This creates a domain mismatch — the initial value is never found in the option list, causing the selector to display a raw ID. Downstream APIs then receive inconsistent identifiers. **Root Cause:** Inconsistent use of `Instance.id` vs `Instance.name` as the selector value key. **Impact:** Incorrect drift analysis results when the selector defaults to an unmatched ID; confusing UI state. **Severity:** medium — affects NameServer drift analysis correctness. Suggested fix: use `Instance.id` consistently as the option value and display `Instance.name` as the label. Ensure all downstream drift API calls pass the ID. --- *Automated evaluation by github-manager-bot* -- 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]
