Skip to content

refactor: workspace builds #7541

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

Merged
merged 10 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove ParameterResolver from typescript
Signed-off-by: Spike Curtis <spike@coder.com>
  • Loading branch information
spikecurtis committed May 16, 2023
commit c892e4320faa552be8c5cf322afb786efbb81cce
1 change: 1 addition & 0 deletions codersdk/richparameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func validationEnabled(param TemplateVersionParameter) bool {
// ParameterResolver should be populated with legacy workload and rich parameter values from the previous build. It then
// supports queries against a current TemplateVersionParameter to determine whether a new value is required, or a value
// correctly validates.
// @typescript-ignore ParameterResolver
type ParameterResolver struct {
Legacy []Parameter
Rich []WorkspaceBuildParameter
Expand Down
6 changes: 0 additions & 6 deletions site/src/api/typesGenerated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,6 @@ export interface Parameter {
readonly source_value: string
}

// From codersdk/richparameters.go
export interface ParameterResolver {
readonly Legacy: Parameter[]
readonly Rich: WorkspaceBuildParameter[]
}

// From codersdk/parameters.go
export interface ParameterSchema {
readonly id: string
Expand Down