-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Timefilter Auto Refresh - Closes "Support for auto-refresh #1845" #2196
Conversation
The applications shouldn't need individual refresh handlers, rather the courier should just reget the data and the applications should react to it. Also, this has windows build system changes merged into that are outside the scope of the issue. |
I agree that making use of the courier class will simplify things. Let me make those changes. |
I have removed the windows build system changes and have updated the implementation to make use of the courier class. |
Had a quick look over, can you add tests for this? |
Tests added. |
@@ -18,7 +18,7 @@ | |||
<!-- Full navbar --> | |||
<div collapse="!showCollapsed" class="navbar-collapse" id="kibana-primary-navbar"> | |||
<ul class="nav navbar-nav"> | |||
<li ng-repeat="app in apps.inOrder | filter:{show: true}" ng-class="{active: activeApp === app}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The | filter: {show: true}
needs to stay in there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix.
@grouma thanks for the PR! I left a couple notes |
@spenceralger all open issues should be addressed in most recent commit. Let me know if you need any other changes. |
@grouma sweet, could you do us a favor and merge master? |
Looks like you already took care of it. Thanks. |
@grouma nice work on this, it's a pretty cool addition! We've got some comment in @spenceralger's PR #2324. We had hoped we could get this in the next release, but it appears that's happening a little too soon - we might bring the comments back here, especially if you want to keep helping out with it. Just trying to figure out how to proceed. |
@w33ble Let's bring it back here and I'll address the issues. |
@grouma, I was hoping we would be able to get this into beta 3 (which we plan to release tomorrow). After discussing it with the team though, we all agree that has the potential to include bugs we don't really have the time to prove don't exist before then. Since we aren't trying to rush this in anymore, I'm going to close my issue and we will continue development here. Off the top of my head, these are a few things we need to resolve:
|
… TimefilterAutoRefresh Conflicts: src/kibana/components/timepicker/timepicker.html
@spenceralger I have merged the master and prevented the "off" interval from triggering another request. I am unsure how to address the other two issues since the Discover plugin provides a custom "fetch" function. I would like to leverage the logic already provided in the courier component. Any guidance would be appreciated. |
Sweet, if you can work on verifying the courier based requests in visualize and dashboard and I'll work on moving discovers segmented fetch into a courier search strategy. I've been meaning to do that anyway. |
… TimefilterAutoRefresh
Add issue for throbber and sorting and LGTM |
Added issue for sorting, but handled throbber really quick. |
Timefilter Auto Refresh - Closes "Support for auto-refresh #1845"
@grouma that turned out to be a pretty epic pr. THANK YOU SO MUCH! This is a huge enhancement for K4. If you're every in Phoenix let us buy you a beer 🍻 |
@spenceralger I agree! I thought it would be a small feature to get acquainted with the codebase. Sorry for fizzling out with the help near the end as the holidays took priority ;) If you are ever in Seattle the same offer is there for you |
@grouma @spenceralger you guys killed it - this is a great feature that really came together. Nice work! And @grouma, thanks so much for contributing, and for being patient with us ;) |
Was this implemented in Beta 3 from the main site (http://www.elasticsearch.org/overview/kibana/installation/)? I currently do not have the Time Filter "Refresh" Tab. |
@Blevene This did not make it into Beta 3 in time. I expect it to be in the next beta. |
I'm really excited for this feature. Did it make it into v4.0.0, which was just released? |
@jamesmason84 yep! You can find in in the time picker by clicking the time filter description on the right of the nav bar. |
Fixes #1845 - Support for auto-refresh
Fixes #1778 - Courier race condition
Fixes #2365 - Respect shard_timeout config
Fixes #2420 - Visualization disappears in discover
Feature:
Enable auto-refresh of the various built in tabs, e.g. Discover, Visualize and Dashboard. The implementation should allow future plugins to respond to refresh events.
Usage:
Upon clicking the top right corner, you will be presented with two tabs, "Time Filter" and "Refresh Interval" (see attached image for details). The "Time Filter" tab allows users to add time filters in the same capacity as they are today. The new "Refresh Interval" tab allows users to select a predefined refresh interval. Upon selecting a refresh interval, all tabs will automatically refresh their content.
Implementation:
The feature was implemented by piggy-backing on top of the existing timefilter object. The timefilter object now contains a refreshInterval. The courier now receives reference to the timefilter object and listens for changes on this refreshInterval. It updates the search interval accordingly.