fix: simplify table reset logic in TableWidgetV2#40486
Conversation
WalkthroughThis change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TableWidgetV2
participant resetWidget
User->>TableWidgetV2: Calls resetTableForInfiniteScroll()
TableWidgetV2->>resetWidget: Invokes resetWidget(widgetId, false)
resetWidget-->>TableWidgetV2: Completes reset
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/14747924735. |
|
Deploy-Preview-URL: https://ce-40486.dp.appsmith.com |
Description
Problem
The table state wasn't being reset automatically, causing issues with individual page numbers and data properties.
Root cause
Using manual page number handling led to unexpected outcomes due to not having an automatic reset mechanism for the table state when infinite scroll was enabled or disabled.
Solution
To mitigate this issue, we have utilized in-built evaluations and the reset widget method to properly reset the widget.
Fixes: #40452
Automation
/ok-to-test tags="@tag.Widget"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14747978041
Commit: 32f17cc
Cypress dashboard.
Tags:
@tag.WidgetSpec:
Wed, 30 Apr 2025 07:28:01 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit