Skip to content

fix: DH-22099: stop loading when input filter change has no effect on…#2643

Merged
mofojed merged 1 commit intodeephaven:release/v0.85from
mofojed:DH-22098-clear-filter-grizzly
Mar 25, 2026
Merged

fix: DH-22099: stop loading when input filter change has no effect on…#2643
mofojed merged 1 commit intodeephaven:release/v0.85from
mofojed:DH-22098-clear-filter-grizzly

Conversation

@mofojed
Copy link
Copy Markdown
Member

@mofojed mofojed commented Mar 25, 2026

… grid filters (#2639)

  • When Ctrl+E clears all filters, the grid's clearAllFilters() removes quick filters and stops loading. However, the input filter's debounced clear arrives later, triggering startLoading('Filtering...') in componentDidUpdate. Since the filters were already cleared, applyInputFilters() finds no changes, never calls setState, and the model update/stopLoading never fires - leaving the grid stuck.
  • Fix: make applyInputFilters() return whether filters actually changed. If no change occurred, immediately call stopLoading() to cancel the loading state that was optimistically started.
  • Add e2e test for Ctrl+E clear filters with input filter stuck in Filtering state
  • Manually tested in Core to verify fix
  • Cherry-picked from the fix for DH-22062 on main

… grid filters (deephaven#2639)

- When Ctrl+E clears all filters, the grid's `clearAllFilters()` removes
quick filters and stops loading. However, the input filter's debounced
clear arrives later, triggering `startLoading('Filtering...')` in
`componentDidUpdate`. Since the filters were already cleared,
`applyInputFilters()` finds no changes, never calls `setState`, and the
model update/stopLoading never fires - leaving the grid stuck.
- Fix: make `applyInputFilters()` return whether filters actually
changed. If no change occurred, immediately call `stopLoading()` to
cancel the loading state that was optimistically started.
- Add e2e test for Ctrl+E clear filters with input filter stuck in
Filtering state
- Manually tested in Core to verify fix
@mofojed mofojed requested a review from a team March 25, 2026 19:29
@mofojed mofojed self-assigned this Mar 25, 2026
@mofojed mofojed requested review from vbabich and removed request for a team March 25, 2026 19:29
@mofojed mofojed changed the title fix: DH-22062: stop loading when input filter change has no effect on… fix: DH-22099: stop loading when input filter change has no effect on… Mar 25, 2026
@mofojed mofojed enabled auto-merge (squash) March 25, 2026 19:33
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.57%. Comparing base (4e2a7d0) to head (d11736e).

Files with missing lines Patch % Lines
packages/iris-grid/src/IrisGrid.tsx 0.00% 5 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           release/v0.85    #2643      +/-   ##
=================================================
- Coverage          48.57%   48.57%   -0.01%     
=================================================
  Files                712      712              
  Lines              39793    39795       +2     
  Branches            9938    10130     +192     
=================================================
  Hits               19331    19331              
+ Misses             20449    20407      -42     
- Partials              13       57      +44     
Flag Coverage Δ
unit 48.57% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mofojed mofojed merged commit 87b2c33 into deephaven:release/v0.85 Mar 25, 2026
13 checks passed
@mofojed mofojed deleted the DH-22098-clear-filter-grizzly branch March 25, 2026 19:43
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants