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

Method GetGroupMembersCountByGroupID

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

Returns the total count of members in a group. Shows the total count even if the caller does not have read access to ResourceGroupMember. They only need ResourceGroup read access.

(ctx context.Context, arg GetGroupMembersCountByGroupIDParams)

Source from the content-addressed store, hash-verified

495 // count even if the caller does not have read access to ResourceGroupMember.
496 // They only need ResourceGroup read access.
497 GetGroupMembersCountByGroupID(ctx context.Context, arg GetGroupMembersCountByGroupIDParams) (int64, error)
498 // Returns the total member count for each of the given group IDs in a
499 // single query. Used to avoid N+1 lookups when listing many groups. Like
500 // GetGroupMembersCountByGroupID, the count is returned even when the

Callers 9

chatACLGroupsMethod · 0.65
TestGroupMethod · 0.65
templateACLMethod · 0.65
patchGroupMethod · 0.65
groupMethod · 0.65
groupsMethod · 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

TestGroupMethod · 0.52