codeant-ai-for-open-source[bot] commented on PR #37975:
URL: https://github.com/apache/superset/pull/37975#issuecomment-4043886540
## **Sequence Diagram**
This PR updates DrillDetailPane to treat page size as state instead of a
fixed constant. When users change page size, the component resets cached pages
and restarts from page one so data fetching and pagination stay consistent.
```mermaid
sequenceDiagram
participant User
participant Table
participant DrillDetailPane
participant SamplesAPI
User->>Table: Open drill detail table
Table->>DrillDetailPane: Initialize pagination with default size 50
DrillDetailPane->>SamplesAPI: Fetch page data with current page size
SamplesAPI-->>DrillDetailPane: Return rows and total count
DrillDetailPane-->>Table: Render table and pagination
User->>Table: Change page or page size
Table->>DrillDetailPane: Send updated pagination
alt Page size changed
DrillDetailPane->>DrillDetailPane: Reset cached pages and set first
page
DrillDetailPane->>SamplesAPI: Fetch first page with new page size
else Page changed only
DrillDetailPane->>SamplesAPI: Fetch selected page with existing page
size
end
SamplesAPI-->>DrillDetailPane: Return updated page data
DrillDetailPane-->>Table: Render updated results
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]