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

Method InsertMissingGroups

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

Inserts any group by name that does not exist. All new groups are given a random uuid, are inserted into the same organization. They have the default values for avatar, display name, and quota allowance (all zero values). If the name conflicts, do nothing.

(ctx context.Context, arg InsertMissingGroupsParams)

Source from the content-addressed store, hash-verified

967 // values for avatar, display name, and quota allowance (all zero values).
968 // If the name conflicts, do nothing.
969 InsertMissingGroups(ctx context.Context, arg InsertMissingGroupsParams) ([]Group, error)
970 InsertOAuth2ProviderApp(ctx context.Context, arg InsertOAuth2ProviderAppParams) (OAuth2ProviderApp, error)
971 InsertOAuth2ProviderAppCode(ctx context.Context, arg InsertOAuth2ProviderAppCodeParams) (OAuth2ProviderAppCode, error)
972 InsertOAuth2ProviderAppSecret(ctx context.Context, arg InsertOAuth2ProviderAppSecretParams) (OAuth2ProviderAppSecret, error)

Callers 4

HandleMissingGroupsMethod · 0.65
InsertMissingGroupsMethod · 0.65
InsertMissingGroupsMethod · 0.65
TestSystemFunctionsMethod · 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

TestSystemFunctionsMethod · 0.52