tju-yxq opened a new pull request, #2543:
URL: https://github.com/apache/rocketmq-dashboard/pull/2543

   ## Summary
   
   - add backward-compatible `GET /api/instances/page` with the existing 
type/search filters and bounded pagination
   - return `items`, `total`, `page`, and `size`; default to `page=1`, 
`pageSize=20`, and cap page size at 100
   - reject invalid page/pageSize before repository or provider access
   - add a repository count query for the current type/search filter
   - preserve the existing unpaginated endpoint for selectors and keep 
resource-count and display-name behavior unchanged
   - update instance management to use server-driven pagination, a server 
total, 20/50/100 page sizes, and page reset on filter changes
   - keep request sequencing and stale-response protection
   
   ## Why
   
   The management page previously loaded and rendered every configured instance 
in one request. Other Studio inventories already use server-side pagination, so 
this brings the primary instance inventory to the same bounded contract as 
cloud credentials, data sources, Studio users, and query history.
   
   ## Tests
   
   - focused backend: `InstanceServiceTest,InstanceControllerTest` — 84 tests 
passed
   - backend full suite: 1,560 tests passed; Checkstyle 0 violations
   - focused frontend: instance API/service/page tests — 3 files / 32 tests 
passed
   - `npm run lint -- --quiet`: 0 errors (3 pre-existing warnings)
   - `npm run build`: passed
   - `git diff --check`: passed
   
   Production changes: 122 additions / 9 deletions, naturally exceeding 100 
production lines without test padding.
   
   Closes #2542
   


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