Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parameters design and UX flow for editing/creating parameters associated with template versions/workspaces #2719

Closed as not planned
Labels
design neededRequest for more beautydocsArea: coder.com/docsstaleThis issue is like stale bread.
@Emyrk

Description

@Emyrk

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 thesensitive field of the terraform variable.
  • Parameter scopetemplate is unused in the codebase.
  • Parameter scopeimport_job is associated with a job, but should probably be tied to a template_version

CLI 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.

  • Do param files override previous version values?
  • Should param files require all values? Just new values?
  • UI has to copy the cli behavior

CLI param handling code is unique for template flow and workspace flow. We should unify this logic.

  • What if workspace sets a "sensitive" value?

Who can read param values? Secret values?

How to inherit params from previous version/workspace build?

Design

A 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 fileshould be able to indicate where values should be prompted (at the version create or workspace create)

A 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??

Should we keep a param hierarchy? Or should some values be required to be set at a certain scope, and disallow workspaces from setting them?

Prompt for missing params does not cleanup broken template versions.

Acceptance Criteria

  • Design doc detailing how to use params as a developer and as a user
  • ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    design neededRequest for more beautydocsArea: coder.com/docsstaleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp