Webiks / kibana-API

Kibana-API is an extension to Kibana that lets you tap in to the dashboard management board from your app and change the visualizations dynamically
Apache License 2.0
124 stars 31 forks source link

Request to add another action command to flush applied filters #21

Closed rgheleribefore closed 7 years ago

rgheleribefore commented 7 years ago

Hello, your plugin is very useful but I had to made some adjusts to fit my needs. Thus, I added another command called 'flushSearchChip' to remove all filters already applied. It's very simple but saved my day and I was thinkink if it could be helpful to anyone else.

The way to easy is quite the same as 'addSearchChip'. See below:

this.iframeElement = document.getElementById('iframe');
let message={actionType: "flushSearchChip""};
this.iframeWindow.postMessage(message, '*');

Thank you very much!

ytzlax commented 7 years ago

I already did the change, what you think? If its OK I will merge the PR

rgheleribefore commented 7 years ago

Great! It's work very well and you can merge if it's ok. As soon as I use more frequently the plugin, maybe I will have to suggest/implement new features to satisfy new cases. It's ok for you?

ytzlax commented 7 years ago

Hi,OK for me, The last "to do" mission for me is to test this action on all kibana 5 versions, then I will merge it

ytzlax commented 7 years ago

Another thing, if you like this plugin, you can star it on the top of the screen

rgheleribefore commented 7 years ago

Ok. Star applied xD

ytzlax commented 7 years ago

I also update the wiki https://github.com/Webiks/kibana-API/wiki/Filter-functions