Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
mtojek merged 25 commits intomainfrom8193-order-parameters
Jun 30, 2023

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedJun 27, 2023
edited
Loading

Fixes:#8193

This PR implements the "display_order" db column (ORDER is a reserved word), which is used to ensure the order of parameters based on thecoder_parameter TFproperty.

@mtojekmtojek self-assigned thisJun 27, 2023
@mtojekmtojek changed the title8193 order parametersfeat: add "priority" column to coder_parameter to store the orderingJun 27, 2023
@mtojekmtojek changed the titlefeat: add "priority" column to coder_parameter to store the orderingfeat: add "priority" column to coder_parameter to keep the orderJun 27, 2023
@mtojekmtojek changed the titlefeat: add "priority" column to coder_parameter to keep the orderfeat: add "priority" column to coder_parameter to keep the order in UIJun 27, 2023
@bpmctbpmct mentioned this pull requestJun 28, 2023
4 tasks
@mtojekmtojek changed the titlefeat: add "priority" column to coder_parameter to keep the order in UIfeat: add "order" column to coder_parameter to keep parameters sorted in UIJun 30, 2023
@mtojekmtojek changed the titlefeat: add "order" column to coder_parameter to keep parameters sorted in UIfeat: add "display_order" column to coder_parameter to keep parameters sorted in UIJun 30, 2023
@mtojekmtojek requested a review frommafredriJune 30, 2023 09:51
@mtojekmtojek marked this pull request as ready for reviewJune 30, 2023 09:51
@mtojekmtojek requested a review frombpmctJune 30, 2023 09:51
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This turned out nicely, nice to see a bunch of code removed! 😍

@@ -0,0 +1,4 @@
ALTERTABLE template_version_parameters ADD COLUMN display_orderintegerNOT NULL DEFAULT0;
Copy link
Member

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 👍🏻.

mtojek reacted with thumbs up emoji

-- name: GetTemplateVersionParameters :many
SELECT*FROM template_version_parametersWHERE template_version_id= $1;
SELECT*FROM template_version_parametersWHERE template_version_id= $1ORDER BY display_orderASC,LOWER(name)ASC;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for using explicitASC, helps to convey the intent.☺️

mtojek reacted with thumbs up emoji
@mtojekmtojek merged commit6639c69 intomainJun 30, 2023
@mtojekmtojek deleted the 8193-order-parameters branchJune 30, 2023 10:41
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 30, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri approved these changes

@bpmctbpmctAwaiting requested review from bpmct

Assignees

@mtojekmtojek

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

coder_parameter: add "order" DB column to ensure file ordering

2 participants

@mtojek@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp