-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 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
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
95193b7
SQL migrations
mtojek 56ad006
SQL queries
mtojek 625ce80
databasefake
mtojek 053e320
Merge branch 'main' into 5574-new-parameter-data-source
mtojek bb0d217
coderd API
mtojek 7d61b55
golint
mtojek 314d77a
Fix: migration
mtojek 0724b10
golint
mtojek 6af91e2
Fix: proto version
mtojek f726eda
Fix
mtojek 3320b3a
proto
mtojek f73c633
fix
mtojek bfbe271
Merge branch 'main' into 5574-new-parameter-data-source
mtojek b5470b7
workaround: fixtures
mtojek 9dfc0c5
TDD: unit test
mtojek 2401c7c
WIP: proto files
mtojek e032a36
fix: proto
mtojek c1012d2
Fix: echo provisioner
mtojek f228b34
Terraform provisioner
mtojek 7fbf8ba
Fix: missing input
mtojek e0cb2dc
Fix: debugging purposes
mtojek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
SQL queries
- Loading branch information
commit 56ad0061a61b4085112d584871ec8bbc0d77c03c
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| -- name: InsertTemplateVersionParameter :one | ||
| INSERT INTO | ||
| template_version_parameters ( | ||
| template_version_id, | ||
| name, | ||
| description, | ||
| type, | ||
| mutable, | ||
| default_value, | ||
| icon, | ||
| options, | ||
| validation_regex, | ||
| validation_min, | ||
| validation_max | ||
| ) | ||
| VALUES | ||
| ( | ||
| $1, | ||
| $2, | ||
| $3, | ||
| $4, | ||
| $5, | ||
| $6, | ||
| $7, | ||
| $8, | ||
| $9, | ||
| $10, | ||
| $11 | ||
| ) RETURNING *; | ||
|
|
||
| -- name: GetTemplateVersionParameters :many | ||
| SELECT * FROM template_version_parameters WHERE template_version_id = $1; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| -- name: InsertWorkspaceBuildParameters :exec | ||
| INSERT INTO | ||
| workspace_build_parameters (workspace_build_id, name, value) | ||
| SELECT | ||
| @workspace_build_id :: uuid AS workspace_build_id, | ||
| unnest(@name :: text[]) AS name, | ||
| unnest(@value :: text[]) AS value | ||
| RETURNING *; | ||
|
|
||
| -- name: GetWorkspaceBuildParameters :many | ||
| SELECT | ||
| * | ||
| FROM | ||
| workspace_build_parameters | ||
| WHERE | ||
| workspace_build_id = $1; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.