Chore: Refactor backend plugin manager/tsdb query data (#34944) (#35172)

Move QueryData method into backend plugin manager which HandleRequest uses to
query data from plugin SDK supported data sources. This allowed us to remove a lot
of code no longer needed.

Ref #21510

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
(cherry picked from commit b3e9087557)

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-03 14:41:42 +02:00
committed by GitHub
co-authored by Marcus Efraimsson
parent 57060a2276
commit 5fe040d26b
21 changed files with 294 additions and 421 deletions
-4
View File
@@ -113,7 +113,3 @@ func (me *mockEndpoint) DataQuery(ctx context.Context, ds *models.DataSource, qu
type fakeBackendPM struct {
backendplugin.Manager
}
func (pm fakeBackendPM) GetDataPlugin(string) interface{} {
return nil
}