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

   ### Summary
   
   Alert command DTOs (`DeleteAlertRuleDTO`, `AcknowledgeSystemAlertDTO`, 
`BulkToggleAlertRulesDTO`) carry bean-validation contracts enforced by the 
controllers. None of them had direct validation tests.
   
   ### Changes
   
   - Delete and acknowledge DTOs reject a missing id with `id is required`
   - Bulk toggle requires ids and `enabled`, caps the id list at 100, and 
accepts a valid payload
   
   ### Testing
   
   `mvn test -Dtest=AlertRuleCommandDtoValidationTest` passes: 5 tests, 0 
failures (first coverage for these DTOs).


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