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

   ### What changed
   
   This PR removes the default hard-coded LiteTopic sample data from the Studio 
backend.
   
   - `LiteTopicService#listLiteTopics` now returns an empty list by default 
instead of synthetic sample resources.
   - `LiteTopicService#getCapability` now reports LiteTopic as unsupported 
until a real provider/AdminClient integration exists.
   - `getSession`, `getQuota`, and `extendTTL` now return an explicit 501 
`BusinessException` instead of synthetic details or fake successful writes.
   - Tests now lock the no-sample-data default behavior and the API-level 
unsupported response.
   
   ### Why
   
   Without a real LiteTopic provider, the current backend can show fake 
LiteTopic patterns, sessions, quota usage, and successful TTL extension. That 
is misleading for META-01 LiteTopic management.
   
   Fixes #793.
   
   ### Verification
   
   ```bash
   
JAVA_HOME=/Users/aias/Library/Java/JavaVirtualMachines/openjdk-21.0.2/Contents/Home
 mvn -Dtest=LiteTopicServiceTest,LiteTopicControllerTest test
   ```
   
   Result: BUILD SUCCESS, 14 tests passed, 0 failures/errors/skips.
   


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