MCPcopy Index your code
hub / github.com/coder/coder / GetUsersByIDs

Method GetUsersByIDs

coderd/database/querier.go:841–841  ·  view source on GitHub ↗

This shouldn't check for deleted, because it's frequently used to look up references to actions. eg. a user could build a workspace for another user, then be deleted... we still want them to appear!

(ctx context.Context, ids []uuid.UUID)

Source from the content-addressed store, hash-verified

839 // to look up references to actions. eg. a user could build a workspace
840 // for another user, then be deleted... we still want them to appear!
841 GetUsersByIDs(ctx context.Context, ids []uuid.UUID) ([]User, error)
842 GetWebpushSubscriptionsByUserID(ctx context.Context, userID uuid.UUID) ([]WebpushSubscription, error)
843 GetWebpushVAPIDKeys(ctx context.Context) (GetWebpushVAPIDKeysRow, error)
844 GetWorkspaceACLByID(ctx context.Context, id uuid.UUID) (GetWorkspaceACLByIDRow, error)

Callers 6

workspaceACLMethod · 0.65
tokensMethod · 0.65
chatACLUsersMethod · 0.65
GetUsersByIDsMethod · 0.65
GetUsersByIDsMethod · 0.65
TestUserMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestUserMethod · 0.52