mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
@@ -104,6 +104,22 @@ func ProxyDataSourceRequest(c *middleware.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proxyPath := c.Params("*")
|
proxyPath := c.Params("*")
|
||||||
|
|
||||||
|
if ds.Type == m.DS_ES {
|
||||||
|
if c.Req.Request.Method == "DELETE" {
|
||||||
|
c.JsonApiErr(403, "Deletes not allowed on proxied Elasticsearch datasource", nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if c.Req.Request.Method == "PUT" {
|
||||||
|
c.JsonApiErr(403, "Puts not allowed on proxied Elasticsearch datasource", nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if c.Req.Request.Method == "POST" && proxyPath != "_msearch" {
|
||||||
|
c.JsonApiErr(403, "Posts not allowed on proxied Elasticsearch datasource except on /_msearch", nil)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
proxy := NewReverseProxy(ds, proxyPath, targetUrl)
|
proxy := NewReverseProxy(ds, proxyPath, targetUrl)
|
||||||
proxy.Transport = dataProxyTransport
|
proxy.Transport = dataProxyTransport
|
||||||
proxy.ServeHTTP(c.Resp, c.Req.Request)
|
proxy.ServeHTTP(c.Resp, c.Req.Request)
|
||||||
|
|||||||
@@ -128,7 +128,11 @@ export class AlertTabCtrl {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.alertNotifications.push({name: model.name, iconClass: this.getNotificationIcon(model.type)});
|
this.alertNotifications.push({
|
||||||
|
name: model.name,
|
||||||
|
iconClass: this.getNotificationIcon(model.type),
|
||||||
|
isDefault: false
|
||||||
|
});
|
||||||
this.alert.notifications.push({id: model.id});
|
this.alert.notifications.push({id: model.id});
|
||||||
|
|
||||||
// reset plus button
|
// reset plus button
|
||||||
|
|||||||
Reference in New Issue
Block a user