Plugins: Plugin Store API returns DTO model (#41340)

* toying around

* fix refs

* remove unused fields

* go further

* add context

* ensure streaming handler is set
This commit is contained in:
Will Browne authored and GitHub committed 2021-11-17 12:04:22 +01:00
1 parent dbb8246b6b
commit 2e3e7a7e55
24 files changed
+494 -353

No files matched your search

@@ -69,8 +69,8 @@ func (p *DataSourceProxyService) ProxyDatasourceRequestWithID(c *models.ReqConte
}
// find plugin
plugin := p.pluginStore.Plugin(ds.Type)
if plugin == nil {
plugin, exists := p.pluginStore.Plugin(c.Req.Context(), ds.Type)
if !exists {
c.JsonApiErr(http.StatusNotFound, "Unable to find datasource plugin", err)
return
}