You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "iloveeyjafjalla (via GitHub)" <gi...@apache.org> on 2026/10/11 08:48:01 UTC
[I] [Bug] Numeric instance names display as another instance in data sources and CSV [rocketmq-dashboard]
iloveeyjafjalla opened a new issue, #6268:
URL: https://github.com/apache/rocketmq-dashboard/issues/6268
### Before Creating the Bug Report
- [x] Searched open/closed issues and PRs and inspected related current head diffs.
- [x] This is a RocketMQ Studio frontend defect in this repository.
- [x] Reproduced on the exact `rocketmq-studio` revision below.
### Studio Version
`rocketmq-studio@5e4c39b053c35a5598cc79ff331b8a54e649d7b1`.
### Runtime Environment / Build Toolchain
Windows 11, Node 24.15.0, npm 11.12.1. Reproduced in the real DataSourceTab component tests with controlled API/service responses, not a live deployment.
### Connected RocketMQ Cluster
No cluster or cloud service was contacted. This concerns rendering saved instance bindings, before any broker operation.
### Describe the Bug
Data-source selection stores instance names, but `formatInstanceIds` scans for either a name match or a numeric-ID match at the same time. A numeric-ID match earlier in the array can hide an exact name match later in the array. Both the table and CSV use this formatter, whereas the edit dropdown correctly uses instance names.
### Steps to Reproduce
1. The instance list contains an Apache instance `{ id: 1, name: 'apache-main' }` before a cloud instance `{ id: 2, name: '1' }`. The normal cloud-instance name form accepts `1`; the production list orders Apache instances before cloud instances.
2. In Settings → Data sources, select the instance named `1` and save. The binding is `instanceIds: ['1']` because the dropdown's values are instance names.
3. Inspect the table's Applicable Instances column and export the data sources as CSV. Reopen Edit and compare its selected instance.
The deterministic component regression supplies those ordinary response shapes at the existing service boundaries, opens Edit to establish that the instance list is loaded, and asserts the table label. The export regression invokes the real export action and CSV builder, intercepting only the download boundary.
### What Did You Expect to See?
The table, CSV and edit selection all show `1`. A numeric ID is only a fallback when no exact instance name matches.
### What Did You See Instead?
The table and CSV show `apache-main`; Edit shows `1`. Against unchanged production code both label assertions fail, while the legacy-ID/unknown-name/global-source compatibility control passes.
### Additional Context
The proposed fix changes only display/export lookup priority. It does not change saved bindings or API payloads. The two related test files pass 19/19 after the fix; lint and production build pass. The complete frontend suite result is documented in the implementation PR.
AI assistance: OpenAI Codex was used for investigation, implementation and automated verification, including a separate automated review. No live deployment, human review or maintainer approval is claimed.
### Are You Willing to Submit a Pull Request?
- [x] Yes.
### Implementation PR
https://github.com/apache/rocketmq-dashboard/pull/6267
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Numeric instance names display as another instance in data sources and CSV [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #6268: [Bug] Numeric instance names display as another instance in data sources and CSV
URL: https://github.com/apache/rocketmq-dashboard/issues/6268
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Numeric instance names display as another instance in data sources and CSV [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #6268:
URL: https://github.com/apache/rocketmq-dashboard/issues/6268#issuecomment-6441505060
Resolved by #6851 (merged into `rocketmq-studio` as `da2513c9f`). The fix was originally submitted in #6267 and consolidated into that commit.
(Reopening first to correct the state: this had been closed by the stale bot as `not planned`, but the defect is real and is fixed by the commit above.)
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Numeric instance names display as another instance in data sources and CSV [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6268:
URL: https://github.com/apache/rocketmq-dashboard/issues/6268#issuecomment-6280288928
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Numeric instance names display as another instance in data sources and CSV [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6268: [Bug] Numeric instance names display as another instance in data sources and CSV
URL: https://github.com/apache/rocketmq-dashboard/issues/6268
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org