Skip to content

fix: DH-22976 ui.table filters to update when changed programmatically#1377

Open
SimonVutov wants to merge 5 commits into
mainfrom
feat-DH-21841-fix-user-to-modify
Open

fix: DH-22976 ui.table filters to update when changed programmatically#1377
SimonVutov wants to merge 5 commits into
mainfrom
feat-DH-21841-fix-user-to-modify

Conversation

@SimonVutov

@SimonVutov SimonVutov commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

sorts / quick_filters are server-owned: the server controls the value, so updating the prop re-applies it and replaces whatever the user changed in the UI.

New default_sorts / default_quick_filters are user-owned: they set the initial value, then the user owns it from there — their changes are persisted and restored on reload. Use one or the other for a given facet, not both.

@SimonVutov SimonVutov self-assigned this Jun 26, 2026
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@SimonVutov SimonVutov force-pushed the feat-DH-21841-fix-user-to-modify branch from 2e9c1ae to 8961441 Compare June 29, 2026 13:05
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@SimonVutov SimonVutov force-pushed the feat-DH-21841-fix-user-to-modify branch from 8961441 to 8eba401 Compare June 29, 2026 13:11
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@SimonVutov SimonVutov requested a review from mofojed June 29, 2026 13:15

@mofojed mofojed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does allow the user to change the sorts, which is great. However, those changed sorts do not persist as they should (as described in my comment on #1358 (comment)).

I think to fix this properly (for both this case and the filters case described in DH-22976 that I've also assigned to you), we'll need changes in IrisGrid to handle this correctly. I think. I have a snippet specifically for sorting on #1358 (review)

@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@SimonVutov SimonVutov requested a review from mofojed June 30, 2026 14:25
@SimonVutov SimonVutov changed the title fix: DH-21841 Allow user to modify table after ui.table sets sort fix: DH-22976 ui.table filters to update when changed programmatically Jun 30, 2026
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

1 similar comment
@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@mofojed mofojed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add e2e test for this guy to make sure of the following:

@SimonVutov SimonVutov requested a review from mofojed July 2, 2026 13:07
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants