Commit 5b699dbf by lpic Committed by Torkel Ödegaard

Set time when testing ES datasource, fixes #7044 (#7390)

parent cddc9ac0
......@@ -168,6 +168,7 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
};
this.testDatasource = function() {
timeSrv.setTime({ from: 'now-1m', to: 'now' });
return this._get('/_stats').then(function() {
return { status: "success", message: "Data source is working", title: "Success" };
}, function(err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment