Skip to content

Pre-fill template parameters with URL query params #5671

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

Closed
bpmct opened this issue Jan 11, 2023 · 2 comments · Fixed by #5758
Closed

Pre-fill template parameters with URL query params #5671

bpmct opened this issue Jan 11, 2023 · 2 comments · Fixed by #5758
Assignees

Comments

@bpmct
Copy link
Member

bpmct commented Jan 11, 2023

This is nice for internal wikis and partially contributes to #3981. This can pre-fill repo URLs, disk sizes, images, etc.

Screen Shot 2023-01-11 at 8 57 08 AM

@BrunoQuaresma
Copy link
Collaborator

Instead of region, do you think var.region would be acceptable? Asking because we can prepopulate thename field and have a var.name as well.

@bpmct
Copy link
Member Author

bpmct commented Jan 12, 2023

Makes sense to me. However, these will not be prefixed with var. once #5574 is completed. Instead of being

variable "region" {
### ...
}

It will be

data "coder_parameter" "region" {
  # ...
}

In the Terraform template. Maybe we just support param.region once the time comes? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants