-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
MudDataGrid: Fix filtering modes when using ServerData #6627
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. @alfadelta88 Is it ready for merge from your point of view?
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev #6627 +/- ##
==========================================
+ Coverage 90.63% 90.76% +0.12%
==========================================
Files 399 399
Lines 13587 13582 -5
==========================================
+ Hits 12315 12328 +13
+ Misses 1272 1254 -18
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@henon there is one small annoyance with the filter when using |
I see now that you marked it as draft. |
I'm working on it right now, I'll expand the tests when I fix it. |
The current solution seems acceptable to me, but I'm concerned about the number of InvokeServerLoadFunc / ReloadServerData calls spreader everywhere in the code , which is quite high. It would be great if we could improve the design in the future and introduce something like |
@ScarletKuro you're absolutely right, it's repetitive and error prone and it will only get more difficult to debug. |
Fixed it, silly multiple enumerations mistakes in tests. @henon Ready for review :) |
This is also concerning, and I noticed this problem before as well, there are a lot of multiple enumerations in some places, and there are places where IEnumerable doesn't make sense. But the problem is that a lot of such places are public API. |
Exactly, ReSharper or Rider would help greatly with this issue although they don't catch'em all. |
I will tag @tjscience as well. |
@henon if I am not mistaken this is now ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, good PR. Thanks a lot!
Looks good. Thanks! |
MudDataGrid: Fix filtering modes when using ServerData (MudBlazor#6627)
Description
Fixes
ServerData
not reloaded when usingFilterMode
ColumnFilterMenu
orColumnFilterRow
regression in #6555How Has This Been Tested?
Unit and visually
Types of changes
Checklist:
dev
).