Skip to content

Commit

Permalink
dealing with special asterisk symbol in link
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaulH committed Aug 6, 2024
1 parent 696da7a commit 302c22a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/mconnect/commands/views/views.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"context"
"fmt"
"net/http"
"net/url"

bq "cloud.google.com/go/bigquery"
gp "github.com/GoogleCloudPlatform/migrationcenter-utils/tools/mconnect/commands/groups"
Expand Down Expand Up @@ -222,5 +223,6 @@ func combinedQuery(projectID, datasetID string) string {
}

func lookerStudioLink(projectID, datasetID string) string {
return fmt.Sprintf(`https://lookerstudio.google.com/c/u/0/reporting/create?c.reportId=%v&c.mode=edit&ds.ds5.datasourceName=MConnect&ds.ds5.connector=bigQuery&ds.ds5.projectId=%v&ds.ds5.type=CUSTOM_QUERY&ds.ds5.sql=SELECT%%20*%%20FROM%%20%%20%v.%v.%v`, lookerReportID, projectID, projectID, datasetID, combinedViewName)
selectAll := url.QueryEscape("*")
return fmt.Sprintf(`https://lookerstudio.google.com/c/u/0/reporting/create?c.reportId=%v&c.mode=edit&ds.ds5.datasourceName=MConnect&ds.ds5.connector=bigQuery&ds.ds5.projectId=%v&ds.ds5.type=CUSTOM_QUERY&ds.ds5.sql=SELECT%%20%v%%20FROM%%20%%20%v.%v.%v`, lookerReportID, projectID, selectAll, projectID, datasetID, combinedViewName)
}

0 comments on commit 302c22a

Please # to comment.