zmuxuny opened a new pull request, #7389: URL: https://github.com/apache/rocketmq-dashboard/pull/7389
## Summary Fixes #7156. Replaces stale-closed #7157 with a fresh, current-base submission. An ACL user's admin toggle already owns a per-user in-flight guard, but the same row's Edit button could still copy the old admin flag into its form. If a revocation completed while that editor was open, subsequently saving only a cluster change sent the obsolete admin: true back to the server. The inverse sequence could also undo a completed grant. - Reuse the existing synchronous per-user guard before opening the editor. - Disable only the affected row's Edit button until its admin update settles. - Keep unrelated users editable and release the editor after success or failure. This prevents capture of the obsolete form snapshot. A submit-only guard would be too late because the first update has already finished by the time the stale editor is saved. There is no new state, request, dependency, API, translation or persisted-data change. Two existing principal-directory expressions are normalized to the existing formatter; their behavior is unchanged. ## Regression coverage The five-case regression suite renders the real ACL page, Ant Design controls, router and instance-filter hook. Only local service calls are mocked; no broker or real permission is changed. The grant/revocation cases delay the admin response after the mock server accepts the change, attempt to edit the same row, then save a cluster-only edit after the initial request completes. They assert the exact second outgoing payload and final stored admin flag. Controls cover another user's editor during the update, failure recovery and ordinary editing. ## Fresh validation Base: rocketmq-studio@7abf8adaf660d75f2d686bbe8741be76c3a5ddd3. Public head c42dd8162685e593ccf58449385e13db5b1a2699 has the exact tested tree. Fresh open-PR search found no replacement for this editor-entry fix. Official Node.js 20.20.2, npm 10.8.2, one Vitest worker, unchanged lockfile, default test timeouts and assertions: - Candidate regression: 5/5 passed. - Identical test file with unchanged current-base production: 2 failed / 3 passed. Both failures assert the obsolete admin flag in the second request, not a timeout or interaction failure. - Restored candidate regression: 5/5 passed. - Complete relevant ACL page, ownership regression, service, API, risk-diagnostic and instance-filter suites: 6 files / 83 tests passed, no skips (123.76 seconds). - Full frontend ESLint: 0 errors, 11 warnings in unchanged files. - Changed-file Prettier and git diff --check: passed. - tsc -b --force: passed. - npm run build: passed, including production bundle and license verification (134 actual components / 141 license files). One initial restored-source run timed out in the failed-update and ordinary-edit controls at the unchanged 20-second test limit. The unchanged file then passed on one diagnostic rerun and in the complete six-file run. The first timeout is retained in the audit record; its cause has not been established. No timeout increase, removed assertion or test-source change was used. ## Related work and limits #6383 guards repeated dialog submissions; this change guards editor entry during a row toggle and does not modify submit handlers. #7375 protects unrepresentable stored backend plain-access rules; this change does not modify that path. Neither contribution's code is included, and no combined merge validation is claimed. This is a local UI ownership fix, not cross-client concurrency control or server-side ACL serialization. No full-repository frontend test pass, backend/ArchUnit check, live broker test or real permission mutation is claimed. Exact-head hosted CI remains to be verified after publication. AI assistance was used. The production change and all five regression cases received an independent source review, and the final source tree was freshly validated as 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
