feat(coderd): support ephemeral parameters (#8367)

This commit is contained in:
Marcin Tojek
2023-07-10 13:44:03 +02:00
committed by GitHub
parent 8f4157c28d
commit 9f2a931eb8
29 changed files with 626 additions and 345 deletions
+3
View File
@@ -465,6 +465,7 @@ CREATE TABLE template_version_parameters (
required boolean DEFAULT true NOT NULL,
display_name text DEFAULT ''::text NOT NULL,
display_order integer DEFAULT 0 NOT NULL,
ephemeral boolean DEFAULT false NOT NULL,
CONSTRAINT validation_monotonic_order CHECK ((validation_monotonic = ANY (ARRAY['increasing'::text, 'decreasing'::text, ''::text])))
);
@@ -498,6 +499,8 @@ COMMENT ON COLUMN template_version_parameters.display_name IS 'Display name of t
COMMENT ON COLUMN template_version_parameters.display_order IS 'Specifies the order in which to display parameters in user interfaces.';
COMMENT ON COLUMN template_version_parameters.ephemeral IS 'The value of an ephemeral parameter will not be preserved between consecutive workspace builds.';
CREATE TABLE template_version_variables (
template_version_id uuid NOT NULL,
name text NOT NULL,