MudDataGrid: Fix filtering modes when using ServerData#6627
Conversation
henon
left a comment
There was a problem hiding this comment.
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. |
henon
left a comment
There was a problem hiding this comment.
Awesome, good PR. Thanks a lot!
|
Looks good. Thanks! |
MudDataGrid: Fix filtering modes when using ServerData (MudBlazor#6627)
Description
Fixes
ServerDatanot reloaded when usingFilterModeColumnFilterMenuorColumnFilterRowregression in #6555How Has This Been Tested?
Unit and visually
Types of changes
Checklist:
dev).