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

Consider removing single range condition check #64

Open
mickaelpham opened this issue Sep 26, 2020 · 0 comments
Open

Consider removing single range condition check #64

mickaelpham opened this issue Sep 26, 2020 · 0 comments

Comments

@mickaelpham
Copy link
Contributor

def ensure_range_single_condition
return if conditions.count <= 1
return unless conditions.values.any? { |value| value.is_a?(Array) }
raise "Filter ranges must be used in isolation."
end

See Filter Statements (Zuora Knowledge Center) where and takes priority over or, so it might be OK to query Zuora using ZOQL having more than one conditions, e.g.:

{ id: '123', type: ['foo', 'bar'] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant