mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed failing events test and issue with dashboard list panel
This commit is contained in:
parent
c4fe9d50bf
commit
c9f06e1da1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user