zmuxuny opened a new pull request, #7392:
URL: https://github.com/apache/rocketmq-dashboard/pull/7392

   ### Which Issue(s) This PR Fixes
   
   Fixes #7181.
   
   Replacement for #7182, which was closed by the stale bot. Refreshed against 
`rocketmq-studio` at `7abf8adaf660d75f2d686bbe8741be76c3a5ddd3` while 
preserving the single-alert acknowledgement scope.
   
   ### Brief Description
   
   After a successful single-alert acknowledgement, invalidate in-flight alert 
reads synchronously and refresh the current filters/page. This prevents a 
pre-ACK snapshot from restoring the Acknowledge action and loads the persisted 
acknowledgement actor/time. If reconciliation fails, the local successful ACK 
remains visible and the existing read retry is available. A failed ACK does not 
trigger a refresh.
   
   The generation guard is needed in addition to the refresh nonce: ACK and an 
older GET can settle in the same React batch before effect cleanup runs.
   
   No backend, bulk-ACK, summary, new translations or loading-policy changes. 
Reviewed the actual changes in #5527 (loading flag), #5636 (page clamp), #4391 
(backend transaction), and #7387 (silence deletion / LiteTopic TTL). None 
provides this single-ACK reconciliation; their patches are not bundled. #5527 
and #5636 touch the read effect and would need to preserve the generation 
checks when composing changes. #7387 uses the separate silence request state. 
The current open ACK search also finds #6214, whose entire change is a backend 
AcknowledgeSystemAlertDTOTest validation contract; it contains no frontend 
reconciliation.
   
   AI assisted coding, source review and testing.
   
   ### How Did You Test This Change?
   
   Validation on 2026-11-04, exact candidate 
`dcf637a40d78f41ee8e63178b1e61bf5f77474a5`, Node 20.20.2, unchanged repository 
20-second test timeout:
   
   - Seven new real-AntD regressions: initial focused run 7/7 passed. Cover 
EN/ZH persisted attribution and timestamp, late filtered GET, same-batch 
settlement with failed reconciliation, current-page preservation, failed 
writes, and successful-write/failed-read retry.
   - Current-base negative control with candidate tests unchanged: 6 failed, 
failed-write control passed. Removing only synchronous generation invalidation 
while keeping refreshNonce makes the same-batch regression fail.
   - Initial restoration focused run: 5/7 passed, with a page-navigation 
timeout and a missing success toast in the later retry case. This result is 
retained separately. A fresh, unchanged restoration run subsequently passed 7/7 
in 25.25s (13.23s test time). No cause for the earlier failures is asserted.
   - Full affected suites (`npm test -- 
src/pages/ops/__tests__/SystemAlertsPage.test.tsx src/api/ops.test.ts 
src/services/opsService.test.ts --maxWorkers=1`): 87/88 passed in 130.41s. All 
seven new regressions passed. The one failure is an existing maintenance-window 
creation test exceeding 20 seconds. No timeout or assertion changes were made. 
A full affected-suite pass is not claimed.
   - A subsequent independent full affected-suite run was also retained: 86/88 
passed in 188.79s. All seven new ACK cases and the maintenance-window case 
passed, while two existing delivery-retry cases exceeded 20 seconds (49.278s 
and 20.047s reported elapsed). Full-suite stability remains unresolved; neither 
full run is claimed green.
   - Diagnostic comparison of the maintenance-window case: passed unchanged on 
both base production (4.15s test time) and candidate production (5.30s test 
time). This does not erase the failed full-suite run or establish its cause.
   - A single instrumented seven-case diagnostic window passed without 
reproducing the existing timeouts. Its phase-log output was not captured, so it 
does not establish the cause or replace uninstrumented validation; no broader 
rerun, timeout increase, or assertion removal followed.
   - Full frontend lint and changed-file Prettier: passed.
   - `npx --no-install tsc -b --force`, `npm run build` (Vite plus license 
check), and `git diff --check`: passed.
   
   No whole-frontend-suite, backend-suite or hosted-CI pass is claimed. No live 
alert was acknowledged and no broker settings were changed.
   
   ### Checklist
   
   - [x] One coherent fix, preserving the original contribution scope
   - [x] Regression tests use Test suffixes
   - [x] Both existing EN/ZH attribution displays covered; no new UI text
   - [x] No new source files or dependency/workflow changes
   - [x] Self-reviewed code and documented validation limitations
   


-- 
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]

Reply via email to