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
[QP, lib] Allow multiple arguments to :contains
, :starts-with
, etc.
#41958
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @bshepherdson and the rest of your teammates on Graphite |
|
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.
LGTM, but I expected new test cases for the now-muilt-arg functions other than :does-not-contain
too.
@bshepherdson when we attempt to create a
|
@ranquild I'm reworking this PR a bit internally based on an out-of-band review from Cam. I'll make sure it works at the lib level before submitting it. |
These string matching clauses only allowed two arguments previously. Typically `[:contains field x]` to match a field against a literal. This adds similar desugaring for `:contains`, `:does-not-contain`, `:starts-with` and `:ends-with` that is currently done for multi-argument `:=` and `:!=`: ```clojure [:contains field x y z] ;; -> [:or [:contains field x] [:contains field y] [:contains field z]] [:does-not-contain field x y z] ;; -> [:and [:does-not-contain field x] [:does-not-contain field y] [:does-not-contain field z]] ```
f17148b
to
fba27e4
Compare
@ranquild @nemanjaglumac This should be working from the JS side now. |
@bshepherdson Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone? |
These string matching clauses only allowed two arguments previously.
Typically
[:contains field x]
to match a field against a literal.This adds similar desugaring for
:contains
,:does-not-contain
,:starts-with
and:ends-with
that is currently done formulti-argument
:=
and:!=
:Part of epic #41956.