unbridled-41 opened a new issue, #5988: URL: https://github.com/apache/rocketmq-dashboard/issues/5988
### Studio Version branch: `rocketmq-studio` @ `7e7aa344` ### Runtime Environment Backend tests: `cd server && mvn -o -B -ntp test -Dtest='AlertServiceTest'`. ### Connected RocketMQ Cluster Not involved. Reproduced and pinned by Studio's own test suite (`cd server && mvn -o -B -ntp test -Dtest='AlertRuleControllerTest,AlertServiceTest'`); no live RocketMQ cluster participates. ### Describe the Bug `updateRule` answers with the request-derived VO, which never carries `lastTriggered` (the repository deliberately preserves the stored value), so the Alerts page - which replaces the row with this response - shows "Never Triggered" for a rule that has fired the moment its edit is saved, until the list reloads. Toggling the same rule brings the stamp back, because the toggle path answers with the stored row. ### Steps to Reproduce 1. Let a rule fire (Last triggered shows a time). 2. Edit it and save. 3. The cell flips to "Never Triggered". ### What Did You Expect to See? The stored rule, as the list shows it. ### What Did You See Instead? The request echoed back, with the stamp lost in the UI. ### Evidence ``` AlertServiceTest: updateRuleShouldReturnTheStoredRuleInsteadOfTheRequestTest expected: "2026-10-01T10:00:00" but was: null ``` Pinned by `cd server && mvn -o -B -ntp test -Dtest='AlertRuleControllerTest,AlertServiceTest'` (fails before the change, passes after it). The code path and the full observed output are in the PR's "Problem / Evidence" section. ### Impact A management table shows a wrong value after every edit, suggesting the rule never evaluated. ### Acceptance Criteria The update response carries the stored rule, with a regression test. **Corresponding PR:** #5989 -- 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]
