You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "123123213weqw (via GitHub)" <gi...@apache.org> on 2026/08/12 16:20:45 UTC
[PR] fix(web): prevent data source mutations before the initial list is ready [rocketmq-dashboard]
123123213weqw opened a new pull request, #2023:
URL: https://github.com/apache/rocketmq-dashboard/pull/2023
## What is the purpose of the change
Fix #2012.
The Metrics data source tab started listDataSources() on mount while the Add data source action remained enabled. A user could create a data source before the initial list resolved; the create response was appended to local state, but the late initial list response then called setDataSources(sources) unconditionally and removed the newly created row from the UI.
## Brief changelog
- settings DataSourceTab: disable the Add data source button while the initial list request is pending, so no mutation can race the initial list response
## How was this patch verified
- npx vitest run src/pages/settings/__tests__/DataSourceTab.test.tsx (7 passed)
- npx tsc -b clean
- npx eslint . clean
--
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: [PR] fix(web): prevent data source mutations before the initial list is ready [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #2023: fix(web): prevent data source mutations before the initial list is ready
URL: https://github.com/apache/rocketmq-dashboard/pull/2023
--
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: [PR] fix(web): prevent data source mutations before the initial list is ready [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #2023:
URL: https://github.com/apache/rocketmq-dashboard/pull/2023#issuecomment-5277788360
Consolidated into #1563 as part of the batch consolidation of @123123213weqw's open PRs (merged into the rocketmq-studio branch), so closing this one. The change is preserved in the merged commit; please direct any follow-ups there.
--
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