Aias00 opened a new issue, #2012: URL: https://github.com/apache/rocketmq-dashboard/issues/2012
## Problem The Metrics data source tab starts `listDataSources()` on mount, but the **Add data source** action remains enabled while that request is pending. A user can create a data source before the initial list resolves. The create response is first appended to local state, but the late initial list response then unconditionally calls `setDataSources(sources)` and removes the newly created row from the UI. ## Reproduction 1. Open Settings > Data sources and keep `listDataSources()` pending. 2. Open the create modal and create a new data source successfully. 3. Resolve the original list request with the pre-create snapshot. The success notification is shown, then the newly created row disappears. ## Expected behavior - Data source mutations must not start until the initial list snapshot is ready, or list responses must be reconciled with completed mutations. - The smallest fix should disable the create entry while the initial list is loading. - Add a deferred-promise regression test proving that a stale initial snapshot cannot overwrite a completed creation. ## Scope Metrics data source settings UI and focused frontend tests only. ## Track Track 1 / AI-Native unified control plane. -- 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]
