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

Function invalidateGroup

site/src/api/queries/groups.ts:229–242  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	organization: string,
	groupName: string,
)

Source from the content-addressed store, hash-verified

227};
228
229const invalidateGroup = (
230 queryClient: QueryClient,
231 organization: string,
232 groupName: string,
233) =>
234 Promise.all([
235 queryClient.invalidateQueries({ queryKey: groupsQueryKey }),
236 queryClient.invalidateQueries({
237 queryKey: getGroupsByOrganizationQueryKey(organization),
238 }),
239 queryClient.invalidateQueries({
240 queryKey: getRootGroupQueryKey(organization, groupName),
241 }),
242 ]);
243
244function sortGroupsByName<T extends Group>(
245 groups: readonly T[],

Callers 4

patchGroupFunction · 0.85
deleteGroupFunction · 0.85
addMembersFunction · 0.85
removeMemberFunction · 0.85

Calls 3

getRootGroupQueryKeyFunction · 0.85
allMethod · 0.80

Tested by

no test coverage detected