Skip to content
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

Merged
merged 8 commits into from
Oct 9, 2020
Merged

Update backend API #24

merged 8 commits into from
Oct 9, 2020

Conversation

alexanderzobnin
Copy link
Collaborator

Update plugin backend according to the new datasource API.

Copy link
Contributor

@AgnesToulet AgnesToulet left a 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
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Comment on lines 305 to 307
query := tsdbReq
endpoint := query.Endpoint
params := query.Params
Copy link
Contributor

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?

Copy link
Collaborator Author

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 :)

@alexanderzobnin alexanderzobnin merged commit 52ef384 into master Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants