mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove dashboardId check... i can't figure out how the tests work
This commit is contained in:
parent
e92ea79524
commit
7defb1adf5
@ -63,11 +63,6 @@ func PostAnnotation(c *m.ReqContext, cmd dtos.PostAnnotationsCmd) Response {
|
||||
return ApiError(500, "Failed to save annotation", err)
|
||||
}
|
||||
|
||||
if cmd.DashboardId == 0 {
|
||||
err := &CreateAnnotationError{"Missing DashboardID"}
|
||||
return ApiError(500, "Failed to save annotation", err)
|
||||
}
|
||||
|
||||
item := annotations.Item{
|
||||
OrgId: c.OrgId,
|
||||
UserId: c.UserId,
|
||||
|
@ -18,7 +18,6 @@ func TestAnnotationsApiEndpoint(t *testing.T) {
|
||||
Text: "annotation text",
|
||||
Tags: []string{"tag1", "tag2"},
|
||||
IsRegion: false,
|
||||
DashboardId: 5,
|
||||
}
|
||||
|
||||
updateCmd := dtos.UpdateAnnotationsCmd{
|
||||
|
Loading…
Reference in New Issue
Block a user