Commit c9f06e1d by Torkel Ödegaard

Fixed failing events test and issue with dashboard list panel

parent c4fe9d50
......@@ -18,7 +18,7 @@ func TestEventCreation(t *testing.T) {
Timestamp: time.Unix(1231421123, 223),
}
wire, _ := ToOnWriteEvent(e)
wire, _ := ToOnWriteEvent(&e)
So(e.Timestamp.Unix(), ShouldEqual, wire.Timestamp.Unix())
So(wire.EventType, ShouldEqual, "TestEvent")
})
......
......@@ -55,10 +55,12 @@ function (angular, app, _, config, PanelMeta) {
var params = {
limit: $scope.panel.limit
};
if ($scope.panel.mode === 'starred') {
params.starred = 1;
params.starred = "true";
} else {
params.q = "tags:" + $scope.panel.tag + " AND title:" + $scope.panel.query;
params.query = $scope.panel.query;
params.tag = $scope.panel.tag;
}
backendSrv.get('/api/search', params).then(function(result) {
......
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