You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to track down some failures when we went from 3.2.0->3.4.0 (well, 3.3.0 is where the breakage is, likely with the bump of sift). Our automated tests have some failures and the rules they're failing on seem to follow a specific pattern.
Namely: it appears any rule that has a top-level operator like this in the conditions section. We do both $or and $and and these worked in 3.2.0 but fail now.
So:
is this a syntax that should work?
if not, do you have any suggestions on how this would be expressed? We want to append additional things to compare against the resource row
The text was updated successfully, but these errors were encountered:
Casl has never had documented support for $or and $and. If use them you make your life much more complicated. Why? because there is a built-in behavior which allows to use $and and $or under the hood.
All direct rules (specified by can) are logically OR-ed. So the next 2 samples are equivalent:
I'm trying to track down some failures when we went from 3.2.0->3.4.0 (well, 3.3.0 is where the breakage is, likely with the bump of
sift
). Our automated tests have some failures and the rules they're failing on seem to follow a specific pattern.Namely: it appears any rule that has a top-level operator like this in the
conditions
section. We do both$or
and$and
and these worked in 3.2.0 but fail now.So:
The text was updated successfully, but these errors were encountered: