Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
9cd51778
Commit
9cd51778
authored
Sep 13, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
8c30babd
a73424d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
pkg/api/dataproxy.go
+16
-0
public/app/features/alerting/alert_tab_ctrl.ts
+5
-1
No files found.
pkg/api/dataproxy.go
View file @
9cd51778
...
...
@@ -104,6 +104,22 @@ func ProxyDataSourceRequest(c *middleware.Context) {
}
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
.
Transport
=
dataProxyTransport
proxy
.
ServeHTTP
(
c
.
Resp
,
c
.
Req
.
Request
)
...
...
public/app/features/alerting/alert_tab_ctrl.ts
View file @
9cd51778
...
...
@@ -128,7 +128,11 @@ export class AlertTabCtrl {
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
});
// reset plus button
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment