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

"setDashboardTime" disables refresh interval #47

Closed MaximBG closed 5 years ago

MaximBG commented 6 years ago

"setDashboardTime" was the last "case" inside switch statement. When you added "setRefreshInterval" after it you forgot to put "break" statement and execution flow continues to "setRefreshInterval" and refresh interval affected. Another issue that reproduces itself about 50% of the time: refresh interval does not appear in globalState when you build URL for Kibana and therefore it being reset to 0.

ytzlax commented 5 years ago

Hi, I don't understand the second part of the issue, can you explain?

MaximBG commented 5 years ago

The issue was in 6.3 and we switched to version 6.4 since in 6.3 it didn't work as expected. In 6.4.2 it works perfect. With regard to the issues in 6.3.

  1. Setting time interval resets refresh to 0.
  2. Setting refresh time works 50% of time. Once works, once no. Pattern is: 1010101...
  3. Similar issue with set interval but pattern is 1001001001... (1 means that operation succeded and 0 the time interval/refresh didn't change) We tried to implement workarounds but finally decided to switch to the version where everything works.