Commit 9d8ae391 by Sofia Papagiannaki Committed by GitHub

Cloud monitoring: Add query parameter (#26354)

parent 42dfdabd
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment