Skip to content

fix: order apps by name #2614

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 2 commits into from
Jun 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: order apps by name
  • Loading branch information
f0ssel committed Jun 23, 2022
commit e159ce5e388015ca74b4ebf2bc893377f0886f73
6 changes: 3 additions & 3 deletions coderd/database/queries/workspaceapps.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-- name: GetWorkspaceAppsByAgentID :many
SELECT * FROM workspace_apps WHERE agent_id = $1;
SELECT * FROM workspace_apps WHERE agent_id = $1 ORDER BY name ASC;

-- name: GetWorkspaceAppsByAgentIDs :many
SELECT * FROM workspace_apps WHERE agent_id = ANY(@ids :: uuid [ ]);
SELECT * FROM workspace_apps WHERE agent_id = ANY(@ids :: uuid [ ]) ORDER BY name ASC;

-- name: GetWorkspaceAppByAgentIDAndName :one
SELECT * FROM workspace_apps WHERE agent_id = $1 AND name = $2;

-- name: GetWorkspaceAppsCreatedAfter :many
SELECT * FROM workspace_apps WHERE created_at > $1;
SELECT * FROM workspace_apps WHERE created_at > $1 ORDER BY name ASC;

-- name: InsertWorkspaceApp :one
INSERT INTO
Expand Down