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

chore: rename the prebuild system user reference#16950

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

Closed
SasSwart wants to merge1 commit intoprebuilds-system-userfromjjs/system-user
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
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
2 changes: 1 addition & 1 deletioncoderd/prebuilds/id.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,4 +2,4 @@ package prebuilds

import"github.com/google/uuid"

varOwnerID=uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0")
varSystemUserID=uuid.MustParse("c42fdf75-3097-471c-8c33-fb52454d81c0")
2 changes: 1 addition & 1 deletioncoderd/users_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2460,7 +2460,7 @@ func TestSystemUserBehaviour(t *testing.T) {
require.NotNil(t,regularUser)

require.True(t,systemUser.IsSystem.Bool)
require.Equal(t,systemUser.ID,prebuilds.OwnerID)
require.Equal(t,systemUser.ID,prebuilds.SystemUserID)
require.False(t,regularUser.IsSystem.Bool)
require.Equal(t,regularUser.ID,other.ID)

Expand Down
2 changes: 1 addition & 1 deletionenterprise/coderd/groups_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -840,7 +840,7 @@ func TestGroup(t *testing.T) {
ctx:=testutil.Context(t,testutil.WaitLong)

// nolint:gocritic // "This client is operating as the owner user" is fine in this case.
prebuildsUser,err:=client.User(ctx,prebuilds.OwnerID.String())
prebuildsUser,err:=client.User(ctx,prebuilds.SystemUserID.String())
require.NoError(t,err)
// The 'Everyone' group always has an ID that matches the organization ID.
group,err:=userAdminClient.Group(ctx,user.OrganizationID)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp