-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update backend API #24
Conversation
77497d6
to
e4db183
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this! Left a couple of questions / comments but it seems to be working great.
return buildErrorResponse(err, nil), nil | ||
for _, q := range req.Queries { | ||
res := backend.DataResponse{} | ||
res.Error = ErrAlertingNotSupported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you always setting this error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because plugin doesn't support alerting and error should be in each query response.
pkg/datasource/datasource.go
Outdated
query := tsdbReq | ||
endpoint := query.Endpoint | ||
params := query.Params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why you're not using tsdbReq directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, probably missed to change this after copying code :)
Update plugin backend according to the new datasource API.