Skip to content

fix: fix loading states and permissions checks in organization settings #16465

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Feb 19, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'main' into lilac/fix-a-bunch-of-orgs-stuff
  • Loading branch information
aslilac committed Feb 18, 2025
commit 44b84d14debc671cadcb476b72d3572786def95f
13 changes: 13 additions & 0 deletions site/src/api/queries/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,19 @@ export const patchRoleSyncSettings = (
};
};

export const provisionerJobQueryKey = (orgId: string) => [
"organization",
orgId,
"provisionerjobs",
];

export const provisionerJobs = (orgId: string) => {
return {
queryKey: provisionerJobQueryKey(orgId),
queryFn: () => API.getProvisionerJobs(orgId),
};
};

/**
* Fetch permissions for all provided organizations.
*
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.