ymy4171 opened a new pull request, #7855:
URL: https://github.com/apache/shenyu/pull/7855

   Fixes #7695
   
   ## Description
   
   Instance history charts currently return global state counts when a
   namespace is selected, while pie charts are filtered by namespace.
   
   This PR adds separate histories per namespace and state while preserving
   the aggregate view when no namespace is specified.
   
   - Retain the latest 20 samples per state.
   - Clean up histories for namespaces with no tracked instances.
   - Return zero-filled curves for missing namespaces without creating cache 
entries.
   - Synchronize history reads and writes.
   - Preserve one sample per scheduled check cycle.
   - Update two existing heartbeat tests to use valid JSON object metadata.
   
   ## Validation
   
   - Before the fix, the namespace regression test failed:
     expected 2, actual 5.
   - Added tests for namespace isolation, aggregate counts, retention,
     cleanup, empty results, and per-state pie/history counts.
   - Local shenyu-admin module build passed:
     2053 tests run, 0 failures, 0 errors, 1 skipped.
   - Apache RAT license check passed.
   - The full-project clean install command below has not been run.
   
   Make sure that:
   
   - [x] You have read the [contribution 
guidelines](https://shenyu.apache.org/community/contributor-guide).
   - [x] You submit test cases (unit or integration tests) that back your 
changes.
   - [ ] Your local test passed `./mvnw clean install 
-Dmaven.javadoc.skip=true`.


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