mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Cloud monitoring: Add query parameter (#26354)
This commit is contained in:
committed by
GitHub
parent
42dfdabdba
commit
9d8ae39108
@@ -139,6 +139,7 @@ func (query *cloudMonitoringQuery) buildDeepLink() string {
|
||||
|
||||
q := u.Query()
|
||||
q.Set("project", query.ProjectName)
|
||||
q.Set("Grafana_deeplink", "true")
|
||||
|
||||
pageState := map[string]interface{}{
|
||||
"xyChart": map[string]interface{}{
|
||||
|
||||
@@ -1016,6 +1016,9 @@ func verifyDeepLink(dl string, expectedTimeSelection map[string]string, expected
|
||||
params, err = url.ParseQuery(u.RawQuery)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
deepLinkParam := params.Get("Grafana_deeplink")
|
||||
So(deepLinkParam, ShouldNotBeEmpty)
|
||||
|
||||
pageStateStr := params.Get("pageState")
|
||||
So(pageStateStr, ShouldNotBeEmpty)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user