Closed daragies closed 7 years ago
Reproduced in Safari and Firefox
Looks like getFieldOptions
in src/ui/public/filter_editor/lib/filter_editor_utils.js
gets passed an array of indexpatterns. Because the markdown panel does not require any aggregation results, it has no index pattern. As a result, indexpatterns that is passed to getFieldOptions
contains an element that is undefined
and this causes the problem.
I did some investigation into this and it seems to be related to the presence of a Markdown viz on the dashboard. If you have only a Markdown viz, we don't show the "Add filter" button, but if you also have another viz on the dashboard (which will be the case for 99% of the users), the Fields dropdown for the Filter won't be able to populate with values.
Kibana version: 5.5 bc9
Elasticsearch version: 5.5 bc9
Server OS version: MacOS Sierra Version 10.12.5
Browser version: Google Chrome Version 59.0.3071.115 (Official Build) (64-bit)
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.): Installed bc9 from staging.elastic.co
Description of the problem including expected versus actual behavior: Expected the filter dropdown to populate with available fields. The dropdown didn't populate.
Steps to reproduce:
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):