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

Commitb54950c

Browse files
authored
fix: order provisioner keys by creation date (#15125)
Closescoder/internal#110The flake reported in the issue has already been fixed by#14875, but this further covers thatwe return a list the same order every time.
1 parent5f640eb commitb54950c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎enterprise/coderd/provisionerkeys.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,10 @@ func convertProvisionerKeys(dbKeys []database.ProvisionerKey) []codersdk.Provisi
212212
// HashedSecret - never include the access token in the API response
213213
})
214214
}
215+
216+
slices.SortFunc(keys,func(key1,key2 codersdk.ProvisionerKey)int {
217+
returnkey1.CreatedAt.Compare(key2.CreatedAt)
218+
})
219+
215220
returnkeys
216221
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp