Skip to content

Commit 8b3446e

Browse files
fix(coderd/database): linter
1 parent 574cdf6 commit 8b3446e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

coderd/database/querier_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,10 +2166,10 @@ func TestExpectOne(t *testing.T) {
21662166
}
21672167

21682168
func TestGetProvisionerJobsByIDsWithQueuePosition(t *testing.T) {
2169+
t.Parallel()
21692170
if !dbtestutil.WillUsePostgres() {
21702171
t.SkipNow()
21712172
}
2172-
t.Parallel()
21732173

21742174
now := dbtime.Now()
21752175
ctx := testutil.Context(t, testutil.WaitShort)
@@ -2470,10 +2470,10 @@ func TestGetProvisionerJobsByIDsWithQueuePosition(t *testing.T) {
24702470
}
24712471

24722472
func TestGetProvisionerJobsByIDsWithQueuePosition_MixedStatuses(t *testing.T) {
2473+
t.Parallel()
24732474
if !dbtestutil.WillUsePostgres() {
24742475
t.SkipNow()
24752476
}
2476-
t.Parallel()
24772477

24782478
db, _ := dbtestutil.NewDB(t)
24792479
now := dbtime.Now()
@@ -2611,10 +2611,10 @@ func TestGetProvisionerJobsByIDsWithQueuePosition_MixedStatuses(t *testing.T) {
26112611
}
26122612

26132613
func TestGetProvisionerJobsByIDsWithQueuePosition_OrderValidation(t *testing.T) {
2614+
t.Parallel()
26142615
if !dbtestutil.WillUsePostgres() {
26152616
t.SkipNow()
26162617
}
2617-
t.Parallel()
26182618

26192619
db, _ := dbtestutil.NewDB(t)
26202620
now := dbtime.Now()

coderd/database/queries.sql.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/provisionerjobs.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ WITH filtered_provisioner_jobs AS (
5757
FROM
5858
provisioner_jobs
5959
WHERE
60-
id = ANY(@ids :: uuid [ ]) -- Apply filter early to reduce dataset size before expensive JOINs
60+
id = ANY(@ids :: uuid [ ]) -- Apply filter early to reduce dataset size before expensive JOIN
6161
),
6262
pending_jobs AS (
6363
-- Step 2: Extract only pending jobs
@@ -90,7 +90,7 @@ final_jobs AS (
9090
FROM
9191
filtered_provisioner_jobs fpj -- Use the pre-filtered dataset instead of full provisioner_jobs
9292
LEFT JOIN ranked_jobs rj
93-
ON fpj.id = rj.id -- Ensure we only keep jobs that have a ranking
93+
ON fpj.id = rj.id -- Join with the ranking jobs CTE to assign a rank to each specified provisioner job.
9494
GROUP BY
9595
fpj.id, fpj.created_at
9696
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy