-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temorarily improved labels for the query results, moved global time f…
- Loading branch information
Spencer Alger
committed
Apr 24, 2014
1 parent
d25f260
commit 97e0a4e
Showing
8 changed files
with
112 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
define(function (require) { | ||
var module = require('modules').get('kibana/services'); | ||
|
||
module.service('rootSearch', function (courier, config, $rootScope) { | ||
module.service('rootSearch', function (courier, config, timefilter, indexPatterns) { | ||
return courier.createSource('search') | ||
.index(config.get('defaultIndex')); | ||
.index(config.get('defaultIndex')) | ||
.filter(function (source) { | ||
return source.getFields() | ||
.then(function (fields) { | ||
// dynamic time filter will be called in the _flatten phase of things | ||
return timefilter.get(fields); | ||
}); | ||
}); | ||
}); | ||
}); |