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

Add parenthesis on filter #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add parenthesis on filter #100

wants to merge 1 commit into from

Commits on Jan 9, 2023

  1. Add parenthesis on filter

    When combining several filters by calling Filter() multiple times, they will be joined by "and" which is "fine".
    The issues comes when there's an or in one of the filters, which will produce unexpected results.
    e.g.
    Filter(x => x.Foo == "some string")
    Filter(x => x.Bar == 1 || x.Bar == 2 )
    Should be:
    "(Foo eq 'some string') and (Bar eq 1 or Bar eq 2)"
    But will be:
    "Foo eq 'some string' and Bar eq 1 or Bar eq 2"
    sfreidahl committed Jan 9, 2023
    Configuration menu
    Copy the full SHA
    1575f58 View commit details
    Browse the repository at this point in the history