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

Commitfc80541

Browse files
committed
fix: the action of claiming a workspace is initiated by a user, not be the prebuilds system
1 parent3f49e28 commitfc80541

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

‎coderd/prebuilds/api.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ type Claimer interface {
6666
nextStartAt sql.NullTime,
6767
ttl sql.NullInt64,
6868
) (*uuid.UUID,error)
69-
Initiator() uuid.UUID
7069
}

‎coderd/prebuilds/noop.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,4 @@ func (NoopClaimer) Claim(context.Context, time.Time, uuid.UUID, string, uuid.UUI
3535
returnnil,ErrAGPLDoesNotSupportPrebuiltWorkspaces
3636
}
3737

38-
func (NoopClaimer)Initiator() uuid.UUID {
39-
returnuuid.Nil
40-
}
41-
4238
varDefaultClaimerClaimer=NoopClaimer{}

‎coderd/workspaces.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,6 @@ func createWorkspace(
719719
}else {
720720
// Prebuild found!
721721
workspaceID=claimedWorkspace.ID
722-
initiatorID=prebuildsClaimer.Initiator()
723722
}
724723

725724
// We have to refetch the workspace for the joined in fields.

‎enterprise/coderd/prebuilds/claim.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,4 @@ func (c EnterpriseClaimer) Claim(
5555
return&result.ID,nil
5656
}
5757

58-
func (EnterpriseClaimer)Initiator() uuid.UUID {
59-
returndatabase.PrebuildsSystemUserID
60-
}
61-
6258
var_ prebuilds.Claimer=&EnterpriseClaimer{}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp