- Notifications
You must be signed in to change notification settings - Fork928
feat: Add basic support for rich parameters to coderd and provisionerd#5710
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
95193b7
56ad006
625ce80
053e320
bb0d217
7d61b55
314d77a
0724b10
6af91e2
f726eda
3320b3a
f73c633
bfbe271
b5470b7
9dfc0c5
2401c7c
e032a36
c1012d2
f228b34
7fbf8ba
e0cb2dc
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DROP TABLE template_version_parameters; | ||
DROP TABLE workspace_build_parameters; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
CREATE TABLE IF NOT EXISTS template_version_parameters ( | ||
template_version_id uuid not null references template_versions (id) on delete cascade, | ||
name text not null, | ||
description text not null, | ||
type text not null, | ||
mutable boolean not null, | ||
default_value text not null, | ||
icon text not null, | ||
options jsonb not null default '[]'::jsonb, | ||
validation_regex text not null, | ||
validation_min integer not null, | ||
validation_max integer not null, | ||
unique (template_version_id, name) | ||
); | ||
COMMENT ON COLUMN template_version_parameters.name IS 'Parameter name'; | ||
COMMENT ON COLUMN template_version_parameters.description IS 'Parameter description'; | ||
COMMENT ON COLUMN template_version_parameters.type IS 'Parameter type'; | ||
COMMENT ON COLUMN template_version_parameters.mutable IS 'Is parameter mutable?'; | ||
COMMENT ON COLUMN template_version_parameters.default_value IS 'Default value'; | ||
COMMENT ON COLUMN template_version_parameters.icon IS 'Icon'; | ||
COMMENT ON COLUMN template_version_parameters.options IS 'Additional options'; | ||
COMMENT ON COLUMN template_version_parameters.validation_regex IS 'Validation: regex pattern'; | ||
COMMENT ON COLUMN template_version_parameters.validation_min IS 'Validation: minimum length of value'; | ||
COMMENT ON COLUMN template_version_parameters.validation_max IS 'Validation: maximum length of value'; | ||
CREATE TABLE IF NOT EXISTS workspace_build_parameters ( | ||
workspace_build_id uuid not null references workspace_builds (id) on delete cascade, | ||
name text not null, | ||
value text not null, | ||
unique (workspace_build_id, name) | ||
); | ||
COMMENT ON COLUMN workspace_build_parameters.name IS 'Parameter name'; | ||
COMMENT ON COLUMN workspace_build_parameters.value IS 'Parameter value'; |
Uh oh!
There was an error while loading.Please reload this page.