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
Add a way to build a query that filters using SegmentRules.
A SegmentRule is essentially a rule that defines how to filter a certain model. What we need is add a function or other way to use SegmentRule objects to query and filter as desired.
For example you might have these segment rules:
rule1:
- target_type: location
- target_field: id
- target_value: 5
rule2:
- target_type: task
- target_field: status
- target_value: active
The above could then be used to build a query that filters for tasks where the location is id 5 and the status is active.
The text was updated successfully, but these errors were encountered:
Add a way to build a query that filters using SegmentRules.
A
SegmentRule
is essentially a rule that defines how to filter a certain model. What we need is add a function or other way to use SegmentRule objects to query and filter as desired.For example you might have these segment rules:
The above could then be used to build a query that filters for tasks where the
location is id 5 and the status is active
.The text was updated successfully, but these errors were encountered: