Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana 8.3+: Fiilter for filter out buttons should not be displayed if column is not filterable #355

Open
dminovski0 opened this issue Dec 9, 2024 · 8 comments
Labels

Comments

@dminovski0
Copy link

When a user hovers on the left of a Metric column, the filter options appear and they work.

Enhanced table 8 16 1 - Column filter - Count

But, when they hover on the left of the Computed column, the filter options appear and don't work on click.

Enhanced table 8 16 1 - Column filter - Percent

Filter options appear when the user hovers on the right of the computed column too, even if there is no other column after it, and they don't work.

Enhanced table 8 16 1 - Column filter - No column

In the version for Kibana 7.17.0, they appeared only next to the Metric column.

@fbaligand
Copy link
Owner

Hi,
I just tested with Kibana 7.17.4, with the same configuration than yours, and I can tell you that:

  • first, when a user hovers on the left of a Metric column, the filter options appear for the left column, so for "Country" column in your sample. This is not tied to the Metric column.
  • then, when a user hovers on the left of the computed column, there is no filter options, given that filter options here would be associated to second column, and as second column is "Count" (not a field based metric), this is not a filterable column.
  • finally, when a user hovers on the right of a computed column, there is no filter options as a computed column is not filterable, I mean that is not a "field" of Elasticsearch data, that can be used by Kibana to filter Elasticsearch data. Computed column only exists in the enhanced table visualization, Kibana itself doesn't know the existence of these computed columns.
  • That said, there is only one exception: if computed column is simple a filterable column reference (ex: "col0"), then the computed column is filterable, as it references simply a standard filterable column.

Finally, if you really use Kibana 7.17.0, I strongly recommend you to upgrade to more recent patch. For instance, 7.17.25, that is the last 7.17 patch when I write this comment. In the same way, I recommend you to use last Enhanced Table plugin version, that is to say 1.14.0:
https://github.com/fbaligand/kibana-enhanced-table/releases/tag/v1.14.0

@dminovski0
Copy link
Author

Hi, sorry. This appears in the version enhanced-table-1.14.0_8.16.1.zip. As you mentioned, in 7.17.0 it appears only to the left of the "Count" column, for "Country".

@fbaligand
Copy link
Owner

OK. So you use Kibana 8.16.1 ?

@dminovski0
Copy link
Author

Yes, that is where the other filter options appear.

@fbaligand
Copy link
Owner

Hi,

I just did tests with Kibana 8.16, and managed to reproduce your issue.
That is a bug.
"Count" column and "Computed Column" should not have filter buttons displayed, because these columns are not "filterable".
I will try to fix it.

That said:

  • Filter buttons are displayed on the right of the targeted column
  • Don't expect that a "Count" column or a "Computed Column" to be filterable.
  • The only exception is "Computed Column" which formula is a simple reference to a filterable column (ex: col0)

@fbaligand fbaligand added bug and removed question labels Dec 11, 2024
@fbaligand
Copy link
Owner

After some more tests, I realize that this bug appeared since Kibana 8.3!

@dminovski0
Copy link
Author

It seems that it wasn't noticeable, as most users clicked the filters on the leftmost column.

@fbaligand
Copy link
Owner

Yes, even me, I didn’t notice it during my tests 😉
This is not a blocking issue, but it’s disturbing.

@fbaligand fbaligand changed the title Fiilter for and filter out work with Metric column, not with Computed column Kibana 8.3+: Fiilter for filter out buttons should not be displayed if column is not filterable Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants