fix datatables jumping to page 1 on refresh#355
Conversation
|
@CodeRabbit full review |
✅ Actions performedFull review triggered. |
|
Caution Review failedThe pull request is closed. WalkthroughConditional page reset added when filters change: SessionScopeBean.setFilterMap now returns whether the filter map changed, and DataTable resets the page to 0 only when an update occurs for data-model paging; non-data-model paging still resets first to 0. Method signature updated to return boolean. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as DataTable
participant Sess as SessionScopeBean
participant Model as LazyDataModel
UI->>Sess: setFilterMap(clientId, filters)
Sess-->>UI: updated (boolean)
alt usePageFromDataModel() and updated == true
UI->>Model: setPage(0)
else usePageFromDataModel() and updated == false
UI-->>UI: keep current page
end
opt !usePageFromDataModel()
UI-->>UI: setFirst(0)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@CodeRabbit full review |
✅ Actions performedFull review triggered. |
Summary by CodeRabbit