Skip to content

feat: implement deprecated flag for templates to prevent new workspaces #10745

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 16 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
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
formatting
  • Loading branch information
Emyrk committed Nov 20, 2023
commit 0b1c72062f3f88c1e3e7b8bde1df386614cc13b2
1 change: 0 additions & 1 deletion site/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ export const getTemplate = async (
return response.data;
};


export interface TemplateOptions {
readonly deprecated?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion site/src/api/queries/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getTemplatesQueryKey = (orgId: string, deprecated?: boolean) => [
export const templates = (orgId: string, deprecated?: boolean) => {
return {
queryKey: getTemplatesQueryKey(orgId, deprecated),
queryFn: () => API.getTemplates(orgId, {deprecated}),
queryFn: () => API.getTemplates(orgId, { deprecated }),
};
};

Expand Down