Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These configuration options are now available:
:ignore_errors
- whentrue
recoverable errors are ignored. Recoverable errors include for instance missing attribute or missing predicate, in that case the query is returned without taking into account the filter causing the error. Defaults totrue
:max_depth
- the maximum level of nested relations that can be queried. Defaults to:full
meaning no limit:only_predicates
- a list of allowed predicates. The list can contain:basic
and:composite
, in that case all corresponding predicates are added to the list. When not given or whennil
no limit is applied. Defaults tonil
:except_predicates
- a list of excluded predicates. The list can contain:basic
and:composite
, in that case all correpsonding predicates are added to the list. When not given or whennil
no limit is applied. If both:only_predicates
and:except_predicates
are given:only_predicates
takes precedence and:except_predicates
is ignored. Defaults tonil
In addition a new
ExSieve.Schema
module allows to override these options on a per-schema basis. One can also set some schema fields as non filterable with the@ex_sieve_not_filterable_fields
module attribute.