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

   ### Summary
   
   `AlertRuleTransferService` validates the import envelope (version, domain, 
rule-count bounds) before touching the catalog or repository, and exports every 
portable rule field. The suite covered cross-domain rejection, per-rule 
validation and import-as-new, but not the remaining envelope guards or a full 
export mapping.
   
   ### Changes
   
   - A `null` import document is rejected with `400 Alert rule import document 
is required`
   - An unsupported import version is rejected without touching the services
   - Empty and >200-rule imports are both rejected with the rule-count message
   - Export copies every portable field (`thresholdUnit`, `aggregation`, 
`windowSeconds`, severity, topic, reminder interval, template, etc.)
   
   ### Testing
   
   `mvn test -Dtest=AlertRuleTransferServiceTest` passes: 8 tests, 0 failures 
(up from 4).


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