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

   ### Motivation
   
   The existing `MybatisPlusMetricSnapshotRepositoryTest` covers the 
transactional save and the null-cluster read scope. Label serialization, the 
retention delete and the cluster-scoped read query were untested.
   
   ### Changes
   
   - `saveAllShouldPersistSerializedLabelsAndStableHash`: a saved sample 
persists its metric/instance/cluster/availability plus the serialized label 
JSON and a 64-char hash.
   - `deleteBeforeShouldRemoveOlderSnapshotsAndReturnCount`: the retention 
delete issues a `collected_at <` query and returns the mapper row count.
   - `clusterScopedQueryShouldMatchTheClusterIdColumn`: a cluster-scoped read 
builds a `cluster_id =` predicate.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=MybatisPlusMetricSnapshotRepositoryTest
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


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