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

Commita99882a

Browse files
committed
text cleanup
1 parent33dbd92 commita99882a

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

‎coderd/database/querier.go‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries.sql.go‎

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/quotas.sql‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ INNER JOIN groups ON
1818
WITH latest_buildsAS (
1919
SELECT
2020
DISTINCTON
21-
(wb.workspace_id)wb.id,
22-
wb.workspace_id,
21+
(wb.workspace_id)wb.workspace_id,
2322
wb.daily_cost
2423
FROM
2524
workspace_builds wb
26-
-- This INNER JOIN prevents a seq scan of the workspace_builds table.
27-
-- Limit the rows to the absolute minimum required, which is all workspaces
28-
-- in a given organization for a given user.
25+
-- This INNER JOIN prevents a seq scan of the workspace_builds table.
26+
-- Limit the rows to the absolute minimum required, which is all workspaces
27+
-- in a given organization for a given user.
2928
INNER JOIN
3029
workspacesonwb.workspace_id=workspaces.id
3130
WHERE
@@ -39,7 +38,7 @@ SELECT
3938
coalesce(SUM(daily_cost),0)::BIGINT
4039
FROM
4140
workspaces
42-
JOIN latest_buildsON
41+
INNERJOIN latest_buildsON
4342
latest_builds.workspace_id=workspaces.id
4443
WHERE
4544
NOT deletedAND

‎enterprise/coderd/workspacequota_test.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func TestWorkspaceSerialization(t *testing.T) {
476476
// +---------------------+----------------------------------+
477477
// | GetAllowance(w1) | |
478478
// +---------------------+----------------------------------+
479-
// | | ActivityBump(w1 |
479+
// | | ActivityBump(w1) |
480480
// +---------------------+----------------------------------+
481481
// | UpdateBuildCost(w1) | |
482482
// +---------------------+----------------------------------+
@@ -526,13 +526,12 @@ func TestWorkspaceSerialization(t *testing.T) {
526526
// +---------------------+----------------------------------+
527527
// | GetAllowance(w1) | |
528528
// +---------------------+----------------------------------+
529-
// | | UpdateWorkspaceLastUsedAt(w1) |
529+
// | | UpdateWorkspaceLastUsedAt(w1)|
530530
// +---------------------+----------------------------------+
531531
// | UpdateBuildCost(w1) | |
532532
// +---------------------+----------------------------------+
533533
// | CommitTx() | |
534534
// +---------------------+----------------------------------+
535-
// pq: could not serialize access due to concurrent update
536535
ctx:=testutil.Context(t,testutil.WaitShort)
537536
//nolint:gocritic // testing
538537
ctx=dbauthz.AsSystemRestricted(ctx)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp