Title: Parameters design and UX flow for editing/creating parameters associated with template versions/workspaces · Issue #2719 · coder/coder · GitHub
Open Graph Title: Parameters design and UX flow for editing/creating parameters associated with template versions/workspaces · Issue #2719 · coder/coder
X Title: Parameters design and UX flow for editing/creating parameters associated with template versions/workspaces · Issue #2719 · coder/coder
Description: Problem Currently parameters have some ambiguity around how they are supposed to behave. Parameters currently act in a hierarchy: workspace > version > template. The prompting for params depends on the sensitive field of the terraform va...
Open Graph Description: Problem Currently parameters have some ambiguity around how they are supposed to behave. Parameters currently act in a hierarchy: workspace > version > template. The prompting for params depends on...
X Description: Problem Currently parameters have some ambiguity around how they are supposed to behave. Parameters currently act in a hierarchy: workspace > version > template. The prompting for params depe...
Opengraph URL: https://github.com/coder/coder/issues/2719
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parameters design and UX flow for editing/creating parameters associated with template versions/workspaces","articleBody":"# Problem\r\n\r\nCurrently parameters have some ambiguity around how they are supposed to behave. \r\n- Parameters currently act in a hierarchy: `workspace > version > template`. \r\n- The prompting for params depends on the `sensitive` field of the terraform variable.\r\n- Parameter scope `template` is unused in the codebase.\r\n- Parameter scope `import_job` is associated with a job, but should probably be tied to a template_version\r\n\r\nCLI prompts for new params and handles deleted params in a new version, but the UI does not. The decision tree for how to handle param prompting is complex.\r\n- Do param files override previous version values?\r\n- Should param files require all values? Just new values?\r\n- UI has to copy the cli behavior\r\n\r\nCLI param handling code is unique for template flow and workspace flow. We should unify this logic.\r\n- What if workspace sets a \"sensitive\" value?\r\n\r\nWho can read param values? Secret values? \r\n\r\nHow to inherit params from previous version/workspace build?\r\n\r\n# Design\r\n\r\nA design document for params should be created on how params should function. From the terraform value, to the database store, to how to fill in param values. The terraform file _should_ be able to indicate where values should be prompted (at the version create or workspace create)\r\n\r\nA good parameter viewer to indicate which param values are associated with a version/workspace and where they came from. Maybe an editor to change these values??\r\n\r\nShould we keep a param hierarchy? Or should some values be required to be set at a certain scope, and disallow workspaces from setting them?\r\n\r\nPrompt for missing params does not cleanup broken template versions.\r\n\r\n# Acceptance Criteria\r\n\r\n- [ ] Design doc detailing how to use params as a developer and as a user\r\n- [ ] ???","author":{"url":"https://github.com/Emyrk","@type":"Person","name":"Emyrk"},"datePublished":"2022-06-29T15:41:38Z","url":"https://github.com/coder/coder/issues/2719"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7cc3abf3-9593-547c-3ba4-450efef876cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C33E:3DCD28:46C28B:5E08F4:6B019907 |
| html-safe-nonce | 278402465dcdfb35f28035cb94987e802bb3398732a84b57a916fee1e614b447 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzNFOjNEQ0QyODo0NkMyOEI6NUUwOEY0OjZCMDE5OTA3IiwidmlzaXRvcl9pZCI6IjYwMDUzMjMxNDkyMDk1MDAyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f791475f9cccfc14976052804a5fccaccd894264eaa1a3e476e8d302c14af5b |
| hovercard-subject-tag | issue:1288916288 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2719/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7dd7e80e9e6b3d3d0c225f09b3fbde3daa78bb1e03d3b7bdd06713c893d3ab87/coder/coder/issues/2719 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7dd7e80e9e6b3d3d0c225f09b3fbde3daa78bb1e03d3b7bdd06713c893d3ab87/coder/coder/issues/2719 |
| og:image:alt | Problem Currently parameters have some ambiguity around how they are supposed to behave. Parameters currently act in a hierarchy: workspace > version > template. The prompting for params depends on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Emyrk |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width