NOTE: terraform-provider-coder was updated to facilitate this change, and your template will require v0.19.0 for this feature to work. You can run terraform init -upgrade in your template directory. If you have a version constraint set, ensure it points to this version.
This PR solves #10478 by auto-filling previously used template values in create and update workspace flows.
I decided against explicit user values in settings for these reasons:
* Autofill is far easier to implement
* Users benefit from autofill _by default_ — we don't need to teach them new concepts
* If we decide that autofill creates more harm than good, we can remove it without breaking compatibility
Co-authored-by: Kyle Carberry <kyle@carberry.com>
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
* docs: rework our "templates" section
* wikistuff
* fix formatting
* add diagram
* reorganize some things
* docs: improve workspaces and templates doc (#9139)
* Reorg, updated/new screenshots, consistent terminology
* First pass
* Another pass
* Added integration section
* New outline for template pages, small updates
* Revised outline for templates, added tutorial
* First pass at tutorial
* Some feedback from Ben.
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Fixed typos
* Expanded tutorial
I have read the CLA Document and I hereby sign the CLA
* New screenshots, improved tutorial, revised anatomy
* Improved tutorial. Anatomy is now a guided tour.
* First pass at guided tour
* Updated authentication info
* Reorganized the guided tour
* Edited more template pages
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tutorial.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Revised devcontainers and docker-in-workspaces
* Edited and added screenshots
* Prepared first draft, except docs/templates/open-in-coder.md
* Fix typo
* remove legacy parameters and migration guide
* Use coder templates create
* Added screenshot for workspace template variables
* Made it prettier
* Fixed minor typos and markdown problems
* edits to repairing workspaces
* fix broken links in product
* Added troubleshooting, minor corrections.
* fix terminal links
* fmt
---------
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
Co-authored-by: Ben Potter <me@bpmct.net>
Co-authored-by: Atif Ali <atif@coder.com>
* make fmt
* fix merge conflict
* make fmt
* make gen
* update
* lint
* Discard changes to coderd/database/queries.sql.go
* Discard changes to cli/templates.go
* Discard changes to cli/templateversionarchive.go
* Discard changes to cli/templateversions.go
* Update docker-in-workspaces.md
* replace ```sh with ```shell
* open-in-coder
* fmt
* mention coder_metadata in icons.md
* resource_metadata
* use shell
* modules.md
* mention coder registry module
* workspace.md
* resource_metadata
* remove duplication
* address comments
* cleanup
* fmt
* fix broken links
* fix numbering
* mention module registry
* add example
* demote heading
* remove top level entry from manifest
* fmt
---------
Co-authored-by: Ben <me@bpmct.net>
Co-authored-by: Marc Paquette <22124737+marcpaq@users.noreply.github.com>
* feat(site): disable rich parameters when using open in coder
* updated docs
* chore(site): increase refetch interval for deployment health
* Revert "chore(site): increase refetch interval for deployment health"
This reverts commit 8e642be3fb.
* docs: display_apps feature to hide/show terminal, vscode desktop, port-forwarding, etc.
* Update docs/templates/index.md
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* Update docs/templates/index.md
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
---------
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* start
* start a template
* basic structure
* Update docs/templates/devcontainers.md
Co-authored-by: Sebastiaan ten Pas <sebastiaan@diggimedia.nl>
* Update examples/templates/devcontainer-docker/main.tf
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* add kubernetes template
* mention parameters
* fixups
* fixes from feedback
---------
Co-authored-by: Sebastiaan ten Pas <sebastiaan@diggimedia.nl>
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* Move updatecheck logs to debug mode
This was causing logs to be emitted immediately after
initial setup, which seemed odd for the user.
* Fix setup page text to say "Create" instead of "Setup" account
* Improve copy on the empty workspaces page
- This view can be seen after the user creates their first workspace, so saying first is bad.
- It should describe what a workspace is, so I modified the description.
- The create from template button wasn't helpful!
* Improve the copy for the empty templates view
- This didn't describe what a template actually is.
- The title had the same problem as workspaces, where first makes no sense.
* Improve text consistency on the Create Template page
* Fix "View activity" displaying for non-Enterprise users
This was causing an exception to be thrown.
* Improve messaging of empty groups view
* Appropriately capitalize Workspace and Template
* Improve Docker template taglines
* Fix types