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

   ## Summary
   
   Extends the existing `MybatisPlusMetricSnapshotRepositoryTest` (2 to 4 
tests) to pin down the snapshot query builder.
   
   Added cases:
   - a cluster-scoped `findRecent` builds a query filtering by instance id, 
metric key, domain, labels hash, cluster id, availability, and the 
`collected_at >=` cutoff, ordered ascending;
   - `deleteBefore` builds a `collected_at <` cutoff query and returns the 
mapper's deleted count.
   
   ## Why
   
   The repository feeds native alert evaluation windows and retention cleanup; 
only the null-cluster scope and the transaction annotation were covered before.
   
   ## Testing
   
   `mvn -B test -Dtest=MybatisPlusMetricSnapshotRepositoryTest` — 4/4 pass; 
checkstyle (validate) clean.


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