tju-yxq opened a new issue, #2542:
URL: https://github.com/apache/rocketmq-dashboard/issues/2542

   ## Problem
   
   The instance management page currently fetches every configured instance in 
a single request:
   
   ```ts
   const res = await client.get<{ data: Instance[] }>('/instances', { params });
   return res.data.data;
   ```
   
   The backend also loads all matching rows, then the UI renders the table with 
`pagination={false}`.
   
   Although the endpoint supports type and search filters, there is no bounded 
page size, server total, or page navigation. This differs from the other 
management inventories (cloud credentials, data sources, Studio users, query 
history), which use server-side pagination.
   
   As an operator imports more cloud instances, the initial management page 
transfers and renders the whole inventory at once.
   
   ## Expected behavior
   
   - Add a backward-compatible `GET /api/instances/page` endpoint.
   - Support the existing type/search filters plus:
     - `page` (default 1)
     - `pageSize` (default 20, maximum 100)
   - Reject invalid pagination before repository or provider access.
   - Return `items`, `total`, `page`, and `size`.
   - Keep the existing unpaginated endpoint for instance selector usage.
   - Update the instance management page to use server-side pagination, 
preserve search/type filtering, reset to page 1 when filters change, and 
support 20/50/100 page sizes.
   - Keep resource counts and the existing sort order unchanged.
   
   ## Verification scope
   
   Tests should cover service slice selection and validation, the HTTP page 
contract, frontend API parameters, and the instance page's server-driven 
pagination behavior.
   


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