Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard interpolated string expressions with adjacent expressions not separated by spaces do not render the second expression #2752

Closed
MichaelBurgess opened this issue Nov 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working dashboards ui

Comments

@MichaelBurgess
Copy link
Contributor

As reported by Jon Udell @ https://steampipe.slack.com/archives/C01UECB59A7/p1668550634256029.

This probably needs to be answered by 
[@John Smyth](https://steampipe.slack.com/team/U020A5R2CD6)
 and/or 
[@Mike Burgess](https://steampipe.slack.com/team/U01UJL9SDMH)
.
I'm trying to construct an URL for the href of a column in a table.
If scheme is http:// and link is [nhmanagers.org](http://nhmanagers.org/) then this:
      href = "${local.host}/dashboard.test?input={{ .'scheme'}} {{.'link'}}"
Yields the link http://localhost:9194/dashboard.test?input=http://%20nhmanagers.org/, which doesn't work because of the space in the middle.
But this:
      href = "${local.host}/dashboard.test?input={{ .'scheme'}}{{.'link'}}"
Yields the link http://localhost:9194/dashboard.test?input=http://{{.%27link%27}}
Should that just work? Or should I be combining both .'scheme' and '.link' into a single jq expression somehow (haven't found a way)?
@MichaelBurgess MichaelBurgess self-assigned this Nov 16, 2022
@MichaelBurgess MichaelBurgess added the bug Something isn't working label Nov 16, 2022
MichaelBurgess added a commit that referenced this issue Nov 16, 2022
…ns not separated by spaces not rendering the second expression. Fixes #2752.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dashboards ui
Projects
None yet
Development

No branches or pull requests

1 participant