-
Notifications
You must be signed in to change notification settings - Fork 883
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all 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
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; | ||
|
||
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 about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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_name, | ||
display_order | ||
) | ||
VALUES | ||
( | ||
|
@@ -35,8 +36,9 @@ VALUES | |
$13, | ||
$14, | ||
$15, | ||
$16 | ||
$16, | ||
$17 | ||
) RETURNING *; | ||
|
||
-- name: GetTemplateVersionParameters :many | ||
SELECT * FROM template_version_parameters WHERE template_version_id = $1; | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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.
ADD COLUMN "order"
, but I prefer this approach 👍🏻.