Multiple controls bug

Hello!

I found a weird behavior of Dashboard Controls and it looks like a bug to me

Steps to reproduce:

  1. Create an index:

    PUT /controls
    {
      "mappings": {
    	"properties": {
    	  "group": {
    		"type": "keyword"
    	  },
    	  "object": {
    		"type": "keyword"
    	  }
    	}
      }
    }
    
  2. 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"
    }
    
  3. Create a data view for this

  4. Create a table visualization:

  5. Create a new dashboard and add the created table visualization to it

  6. Add controls for "group" and "object":

  7. Select "animal" in "group" control and make sure that only 3 options are available for selection in "object" control: "cat", "dog", "horse":

  8. Clear "group" control

  9. Select "cat" in "object" control

  10. 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!

You didn't say which version you are using, please provide the version you are using.

Also, this is expected behaviour, if you check the control settings in the dashboard you will see this:

Controls are chained from left to right.

Indeed, it is 8.11.1

Yes, this explains the behavior. Thanks for pointing out!