Conversation
Removed debugging code in HeaderCell. Fixed issue with culture and datetime on examples page.
…tions MudDataGrid: Refactor FilterDefintions API
DataGrid: Add support for hiding menu icon from toolbar. https://github.com/tjscience/MudBlazor/projects/3#card-80031804
Refactored CellContext creation code into the class itself. Refactored HeaderContext creation code into the class itself. Refactored FooterContext creation code into the class itself. https://github.com/tjscience/MudBlazor/projects/3#card-79771104
Adapt and extend existing tests for local and server side sorting to new functionality
Solution changed due to duplicate project GUID
…age items once when rendering
Removed some Console.WriteLine that were left in for debugging.
…dden-fix data grid fix for bind-hidden not calling hidden callback in all scen…
|
Pushed the change as @ScarletKuro suggested (Thanks man!) and it compiles without errors now. |
|
@tjscience Sorry this is still open. We need the tests fixed please. 🙏 |
|
@henon I can see the API test failure may be to do with the generic typing so it may be the generated tests that need looking at. I'll see if I can fix. |
|
@tjscience So I guess you did not run the entire suite locally but only the DataGrid tests? That would be the only way for me to explain how the tests can work for you (as you say) but not on the server. In any case, we probably need to exempt some of the generic internal components or those who can't live on their own without a specific parent from the auto-generated unit tests. I'll look at this as soon as I find the time. |
|
Before submitting the PR, I did run the entire test suite locally and I had no errors. After mike-gh mentioned to fix the tests, I ran the tests for the DataGrid. What other tests would I need to fix here? |
|
I'll sort it out. |
| DateTime? valueDateTime = Value == null ? null : (DateTime)Value; | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, "HasValue")); | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, typeof(bool?), "HasValue")); |
There was a problem hiding this comment.
You sure? HasValue sounds like a boolean propert to me. But then again, I have no deep understanding of this code
There was a problem hiding this comment.
Yes, DateTime will have a HasValue with ? sign, since it's a value type like int, bool, double etc. And this method is intended to work with DateTime?.
Sorry, I didn't specify this in my comment earlier. The bool? was only an example for specific GenerateFilterExpressionForBooleanTypes method.
There was a problem hiding this comment.
Ah, I get it now. The type is not the type of the HasValue property but of the DateTime? which has that property.
| var isnotnull = Expression.IsTrue(Expression.Property(field, "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, "HasValue")); | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, typeof(bool?), "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, typeof(bool?), "HasValue")); |
| double? valueNumber = Value == null ? null : Convert.ToDouble(Value); | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, "HasValue")); | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, typeof(bool?), "HasValue")); |
| var isnotnull = Expression.IsTrue(Expression.Property(field, "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, "HasValue")); | ||
| var isnotnull = Expression.IsTrue(Expression.Property(field, typeof(bool?), "HasValue")); | ||
| var isnull = Expression.IsFalse(Expression.Property(field, typeof(bool?), "HasValue")); |
|
Hey, @tjscience , @ScarletKuro , @henon, the attached patch file (unitTestsFixes.zip) will fix the failing tests in this branch (zipped it as GitHub does not accept *.patch files). @tjscience: Please have a look at the patch and apply the changes as desired. |
|
@TobiasBreuer, I will try and patch this in the next day or two. Thanks. |
|
@henon, seems like the issues have been resolved. |
Codecov Report
@@ Coverage Diff @@
## dev #4705 +/- ##
==========================================
- Coverage 91.38% 89.97% -1.41%
==========================================
Files 365 370 +5
Lines 12537 13290 +753
==========================================
+ Hits 11457 11958 +501
- Misses 1080 1332 +252
Continue to review full report at Codecov.
|
|
Merging this will decrease overall coverabe by 1.4% but I think people have been waiting for this a long time and getting it out there is more important than this number at the moment. |
|
Thank you big time @tjscience ! |
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
|
Is the enum filter issue fixed ?
…Sent from my iPhone
On 29 Jun 2022, at 13:24, Terry Phillips ***@***.***> wrote:
Before submitting the PR, I did run the entire test suite locally and I had no errors. After mike-gh mentioned to fix the tests, I ran the tests for the DataGrid. What other tests would I need to fix here?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Co-authored-by: Jonny Larsson <[email protected]> Co-authored-by: Tobias Breuer <[email protected]> Co-authored-by: [email protected] <[email protected]> Co-authored-by: segfault <[email protected]> Co-authored-by: Meinrad Recheis <[email protected]>
Description
Please see the project for more details: https://github.com/tjscience/MudBlazor/projects/3
How Has This Been Tested?
Types of changes
Checklist:
dev).