Closed sagargg-zz closed 2 years ago
@anuveyatsu I have added an example of rules on fixtures. As you see there iscombinator
, operator
, and value
property. What we will set there on the initial state?
We also need to pass the date state cuz the query builder has a separate state for the date type field.
@sagargg let's set defaults:
combinator: "AND"
operator: "="
value: ""
DONE
As a Data Publisher, I can define suggested fields for filtering data so that when users land on the page they are prompted with those fields in the filters component.
Acceptance criteria
Tasks
Analysis
The view object would have an additional attribute for storing suggested fields for filtering:
Data Explorer view:
Data Explorer - Table only view:
We can add
suggested_filter_fields
attribute so that:On "create view" page, we need to add another option to add suggested filter fields which can unchecked checkboxes with column names so that admin checks the fields that should be suggested for filtering.
Make sure the
suggested_filter_fields
is converted torules
.Next, is to parse it and use as initial state in the query builder app:
resource
object can be something like: