- Notifications
You must be signed in to change notification settings - Fork1k
feat: add "display_order" column to coder_parameter to keep parameters sorted in UI#8227
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
3e9964f
0d37f91
bb709b6
18e7eb4
648d992
4261497
c896115
c22c600
626cfe4
c42a731
56f422f
dd4cc71
91fa3ec
a36f616
8ab123b
6ed37b5
269555e
57a0fd4
1e54ace
091888b
1620758
f97db90
0efc2ae
8a0ac74
82b8b7b
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE template_version_parameters DROP COLUMN display_order; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE template_version_parameters ADD COLUMN display_order integer NOT NULL DEFAULT 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It's possible to use a reserved word as a name via quoting, e.g. | ||
COMMENT ON COLUMN template_version_parameters.display_order | ||
IS 'Specifies the order in which to display parameters in user interfaces.'; |
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 |
---|---|---|
@@ -16,7 +16,8 @@ INSERT INTO | ||
validation_monotonic, | ||
required, | ||
legacy_variable_name, | ||
display_name, | ||
display_order | ||
) | ||
VALUES | ||
( | ||
@@ -35,8 +36,9 @@ VALUES | ||
$13, | ||
$14, | ||
$15, | ||
$16, | ||
$17 | ||
) RETURNING *; | ||
-- name: GetTemplateVersionParameters :many | ||
SELECT * FROM template_version_parameters WHERE template_version_id = $1 ORDER BY display_order ASC, LOWER(name) ASC; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Thanks for using explicit |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.