-
Notifications
You must be signed in to change notification settings - Fork 133
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
OR conditions are implemented as AND #19
Comments
Yup, just realised this doesn't actually do any OR logic. I'll be rewriting the parser in a proper framework ASAP. Sorry about that! |
Confirmed - the unit test is wrong - changing the term was stated means that unit tests (correctly) fail. |
Published to nuget as 2.1.0. Thanks for your efforts! |
No problem - I'm looking forward to seeing/helping Sieve develop further. If you need a hand, please add me as a contributor. |
That would be great! Looking at open issues - I was going to rewrite the parser next in something like Sparche to add flexibility and allow escape sequences, arbitrary logic, & data shaping. Of course that necessitates a more flexible way of converting the query to LINQ, meaning part of |
@Biarity How can I use OR logic? For example filters=Name@=*test,location@=*malta ... Thanks, your library save a lot of time! :) |
I'll be working on this later but unfortunately am quite busy at the moment. |
(I think this is the issue @davidnmbond mentioned in #8 )
In SieveModel.cs where the filter expression is parsed only more AND-conditions are added to the list of filter items.
I think the issue happened because of a typo in the unit test here. I assume the value for
Title
should be"D"
not"3"
- then the test fails as expected.The text was updated successfully, but these errors were encountered: