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 ability to cancel pending workspace build#18713

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
kacpersaw merged 22 commits intomainfromkacpersaw/cancel-pending-provisioner-jobs
Jul 8, 2025
Merged
Changes from1 commit
Commits
Show all changes
22 commits
Select commitHold shift + click to select a range
ba41ae8
add support for canceling workspace builds with expect_state param (l…
kacpersawJul 1, 2025
c4ee5b6
Use single transaction for canceling workspace build
kacpersawJul 2, 2025
c49c33e
Fix lint problem in ut
kacpersawJul 2, 2025
ba1dbf3
add cancel confirmation dialog for workspace builds and add expect_st…
kacpersawJul 2, 2025
acffda6
Fix lint
kacpersawJul 2, 2025
b672d76
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersawJul 2, 2025
86a34df
Apply review suggestions
kacpersawJul 3, 2025
42170ab
Fix unit test
kacpersawJul 3, 2025
5db9d71
Apply review suggestions
kacpersawJul 3, 2025
1ede20c
Fix typo
kacpersawJul 3, 2025
2597615
Regenerate api types
kacpersawJul 3, 2025
6c2d0cf
Fix typo
kacpersawJul 3, 2025
c800494
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersawJul 3, 2025
c5cb203
Apply a new authorization check for GetProvisionerJobByIDForUpdate
kacpersawJul 6, 2025
1de84cc
Apply a new authorization check for GetProvisionerJobByIDForUpdate
kacpersawJul 6, 2025
17fb6a3
Apply FE review suggestions
kacpersawJul 6, 2025
1b7b614
Apply review suggestions
kacpersawJul 7, 2025
634f556
Refactor cancelWorkspaceBuild parameter handling
kacpersawJul 7, 2025
4deace0
Fix lint
kacpersawJul 7, 2025
43430fa
Update coderd/workspacebuilds.go
kacpersawJul 7, 2025
6272d93
Extract cancel confirm dialog to a separate component
kacpersawJul 7, 2025
4d4a01d
Merge branch 'main' into kacpersaw/cancel-pending-provisioner-jobs
kacpersawJul 8, 2025
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
PrevPrevious commit
NextNext commit
Fix lint problem in ut
  • Loading branch information
@kacpersaw
kacpersaw committedJul 2, 2025
commitc49c33ea8d098286c1d3be48367e6d855e0bb06c
5 changes: 4 additions & 1 deletioncoderd/workspacebuilds_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -738,7 +738,10 @@ func TestPatchCancelWorkspaceBuild(t *testing.T) {
})
// Then: the request should fail with 412.
require.Error(t, err)
require.Equal(t, http.StatusPreconditionFailed, err.(*codersdk.Error).StatusCode())

var apiErr *codersdk.Error
require.ErrorAs(t, err, &apiErr)
require.Equal(t, http.StatusPreconditionFailed, apiErr.StatusCode())
})

t.Run("Cancel with expect_state - invalid status", func(t *testing.T) {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp