• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / codegate-ui / 12949002354

24 Jan 2025 11:46AM CUT coverage: 71.054% (+1.8%) from 69.253%
12949002354

Pull #185

github

web-flow
Merge ce98c6cc8 into 646ed5a6b
Pull Request #185: feat: implement hard delete for workspaces

334 of 576 branches covered (57.99%)

Branch coverage included in aggregate %.

94 of 115 new or added lines in 18 files covered. (81.74%)

2 existing lines in 2 files now uncovered.

724 of 913 relevant lines covered (79.3%)

65.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/features/workspace/hooks/use-mutation-set-workspace-custom-instructions.tsx
1
import {
2
  v1GetWorkspaceCustomInstructionsQueryKey,
3
  v1SetWorkspaceCustomInstructionsMutation,
4
} from "@/api/generated/@tanstack/react-query.gen";
5
import { V1GetWorkspaceCustomInstructionsData } from "@/api/generated";
6
import { useToastMutation } from "@/hooks/use-toast-mutation";
7
import { useQueryClient } from "@tanstack/react-query";
8

9
export function useMutationSetWorkspaceCustomInstructions(
10
  options: V1GetWorkspaceCustomInstructionsData,
11
) {
12
  const queryClient = useQueryClient();
14✔
13

14
  return useToastMutation({
14✔
15
    ...v1SetWorkspaceCustomInstructionsMutation(options),
16
    onSuccess: () =>
NEW
17
      queryClient.invalidateQueries({
×
18
        queryKey: v1GetWorkspaceCustomInstructionsQueryKey(options),
19
        refetchType: "all",
20
      }),
21
    successMsg: "Successfully updated custom instructions",
22
  });
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc