Skip to content

Commit 721b242

Browse files
remove references to repoIndexingStatus
1 parent 9f4fb84 commit 721b242

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

packages/mcp/src/schemas.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,6 @@ export const searchResponseSchema = z.object({
143143
isSearchExhaustive: z.boolean(),
144144
});
145145

146-
enum RepoIndexingStatus {
147-
NEW = 'NEW',
148-
IN_INDEX_QUEUE = 'IN_INDEX_QUEUE',
149-
INDEXING = 'INDEXING',
150-
INDEXED = 'INDEXED',
151-
FAILED = 'FAILED',
152-
IN_GC_QUEUE = 'IN_GC_QUEUE',
153-
GARBAGE_COLLECTING = 'GARBAGE_COLLECTING',
154-
GARBAGE_COLLECTION_FAILED = 'GARBAGE_COLLECTION_FAILED'
155-
}
156-
157146
export const repositoryQuerySchema = z.object({
158147
codeHostType: z.string(),
159148
repoId: z.number(),
@@ -163,7 +152,6 @@ export const repositoryQuerySchema = z.object({
163152
webUrl: z.string().optional(),
164153
imageUrl: z.string().optional(),
165154
indexedAt: z.coerce.date().optional(),
166-
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
167155
});
168156

169157
export const listRepositoriesResponseSchema = repositoryQuerySchema.array();

packages/web/src/actions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,6 @@ export const getRepos = async ({
559559
webUrl: repo.webUrl ?? undefined,
560560
imageUrl: repo.imageUrl ?? undefined,
561561
indexedAt: repo.indexedAt ?? undefined,
562-
repoIndexingStatus: repo.repoIndexingStatus,
563562
}))
564563
}));
565564

@@ -673,7 +672,6 @@ export const getRepoInfoByName = async (repoName: string) => sew(() =>
673672
webUrl: repo.webUrl ?? undefined,
674673
imageUrl: repo.imageUrl ?? undefined,
675674
indexedAt: repo.indexedAt ?? undefined,
676-
repoIndexingStatus: repo.repoIndexingStatus,
677675
}
678676
}));
679677

packages/web/src/initialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectionSyncStatus, OrgRole, Prisma, RepoIndexingStatus } from '@sourcebot/db';
1+
import { ConnectionSyncStatus, OrgRole, Prisma } from '@sourcebot/db';
22
import { env } from './env.mjs';
33
import { prisma } from "@/prisma";
44
import { SINGLE_TENANT_ORG_ID, SINGLE_TENANT_ORG_DOMAIN, SOURCEBOT_GUEST_USER_ID, SINGLE_TENANT_ORG_NAME } from './lib/constants';

packages/web/src/lib/schemas.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { checkIfOrgDomainExists } from "@/actions";
2-
import { RepoIndexingStatus } from "@sourcebot/db";
32
import { z } from "zod";
43
import { isServiceError } from "./utils";
54
import { serviceErrorSchema } from "./serviceError";
@@ -22,7 +21,6 @@ export const repositoryQuerySchema = z.object({
2221
webUrl: z.string().optional(),
2322
imageUrl: z.string().optional(),
2423
indexedAt: z.coerce.date().optional(),
25-
repoIndexingStatus: z.nativeEnum(RepoIndexingStatus),
2624
});
2725

2826
export const searchContextQuerySchema = z.object({

0 commit comments

Comments
 (0)