Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] fix: use getRowId in filtering #9564

Merged
merged 6 commits into from
Jul 6, 2023

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Jul 4, 2023

Closes #9562
Closes #9586

Use getRowId in filtering.

Issue with quick filter: https://codesandbox.io/s/competent-wiles-yvykm5?file=/demo.tsx

@romgrk romgrk added component: data grid This is the name of the generic UI component, not the React module! regression A bug, but worse feature: Filtering Related to the data grid Filtering feature labels Jul 4, 2023
@romgrk romgrk requested a review from MBilalShafi July 4, 2023 14:02
@mui-bot
Copy link

mui-bot commented Jul 4, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-9564--material-ui-x.netlify.app/

Updated pages

No updates.

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 312 557.5 481.8 444 109.097
Sort 100k rows ms 581.1 994.6 926.6 838.54 157.891
Select 100k rows ms 218.8 294.7 224.8 239.84 28.055
Deselect 100k rows ms 124.7 391.8 208.3 234.64 93.681

Generated by 🚫 dangerJS against a24e595

@romgrk romgrk requested a review from MBilalShafi July 5, 2023 03:54
@romgrk romgrk enabled auto-merge (squash) July 5, 2023 03:55
@cherniavskii
Copy link
Member

Could you add a unit test to cover this regression issue?

@romgrk romgrk disabled auto-merge July 5, 2023 19:37
@romgrk romgrk requested a review from cherniavskii July 5, 2023 19:54
@romgrk
Copy link
Contributor Author

romgrk commented Jul 5, 2023

I've added the tests and a fix for another closely related issue.

@romgrk romgrk enabled auto-merge (squash) July 5, 2023 19:55
@romgrk romgrk merged commit 8d6c4a1 into mui:master Jul 6, 2023
@romgrk romgrk deleted the fix-filter-custom-id branch July 6, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature regression A bug, but worse
Projects
None yet
4 participants