Hello!
I found a weird behavior of Dashboard Controls and it looks like a bug to me
Steps to reproduce:
-
Create an index:
PUT /controls { "mappings": { "properties": { "group": { "type": "keyword" }, "object": { "type": "keyword" } } } }
-
Add dummy docs:
POST controls/_doc { "group": "animal", "object": "dog" } POST controls/_doc { "group": "animal", "object": "cat" } POST controls/_doc { "group": "animal", "object": "horse" } POST controls/_doc { "group": "furniture", "object": "chair" } POST controls/_doc { "group": "furniture", "object": "sofa" } POST controls/_doc { "group": "furniture", "object": "table" }
-
Create a data view for this
-
Create a table visualization:
-
Rows: "group", "object"
-
Metrics: "Records"
-
-
Create a new dashboard and add the created table visualization to it
-
Add controls for "group" and "object":
-
Select "animal" in "group" control and make sure that only 3 options are available for selection in "object" control: "cat", "dog", "horse":
-
Clear "group" control
-
Select "cat" in "object" control
-
Both "animal" and "furniture" are present in "group" control, while expected "animal" only:
Extra observations:
I noticed that filters are "wrongly applied" to the left from the selected control:
If you have 10 controls in a row on your dashboard and you filtered out the data by using the 5th control only, then the 6th, 7th, 8th, 9th and 10th controls will show the correct information, while the 1st, 2nd, 3rd and 4th controls will show all available options
Could you please clarify if it is a bug?
If not, could you please explain such behavior?
Thank you!