Skip to content

Commit ac8a16a

Browse files
committed
Remove deprecated index deployment job and retry indexing functionality (indexing now happens during the build image process)
1 parent cdabe1e commit ac8a16a

File tree

6 files changed

+4
-366
lines changed

6 files changed

+4
-366
lines changed

apps/webapp/app/components/runs/v3/RetryDeploymentIndexingDialog.tsx

Lines changed: 0 additions & 60 deletions
This file was deleted.

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.deployments/route.tsx

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { ArrowPathIcon, ArrowUturnLeftIcon, BookOpenIcon } from "@heroicons/react/20/solid";
2-
import { type MetaFunction, Outlet, useLocation, useParams, useNavigate } from "@remix-run/react";
1+
import { ArrowUturnLeftIcon, BookOpenIcon } from "@heroicons/react/20/solid";
2+
import { type MetaFunction, Outlet, useLocation, useNavigate, useParams } from "@remix-run/react";
33
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
4+
import { useEffect } from "react";
45
import { typedjson, useTypedLoaderData } from "remix-typedjson";
56
import { z } from "zod";
67
import { PromoteIcon } from "~/assets/icons/PromoteIcon";
78
import { DeploymentsNone, DeploymentsNoneDev } from "~/components/BlankStatePanels";
9+
import { GitMetadata } from "~/components/GitMetadata";
810
import { UserAvatar } from "~/components/UserProfilePhoto";
911
import { MainCenteredContainer, PageBody, PageContainer } from "~/components/layout/AppLayout";
1012
import { Badge } from "~/components/primitives/Badge";
@@ -34,7 +36,6 @@ import {
3436
deploymentStatusDescription,
3537
deploymentStatuses,
3638
} from "~/components/runs/v3/DeploymentStatus";
37-
import { RetryDeploymentIndexingDialog } from "~/components/runs/v3/RetryDeploymentIndexingDialog";
3839
import {
3940
PromoteDeploymentDialog,
4041
RollbackDeploymentDialog,
@@ -52,8 +53,6 @@ import { EnvironmentParamSchema, docsPath, v3DeploymentPath } from "~/utils/path
5253
import { createSearchParams } from "~/utils/searchParams";
5354
import { deploymentIndexingIsRetryable } from "~/v3/deploymentStatus";
5455
import { compareDeploymentVersions } from "~/v3/utils/deploymentVersions";
55-
import { useEffect } from "react";
56-
import { GitMetadata } from "~/components/GitMetadata";
5756

5857
export const meta: MetaFunction = () => {
5958
return [
@@ -388,26 +387,6 @@ function DeploymentActionsCell({
388387
/>
389388
</Dialog>
390389
)}
391-
{canRetryIndexing && (
392-
<Dialog>
393-
<DialogTrigger asChild>
394-
<Button
395-
variant="small-menu-item"
396-
LeadingIcon={ArrowPathIcon}
397-
leadingIconClassName="text-blue-500"
398-
fullWidth
399-
textAlignLeft
400-
>
401-
Retry indexing…
402-
</Button>
403-
</DialogTrigger>
404-
<RetryDeploymentIndexingDialog
405-
projectId={project.id}
406-
deploymentShortCode={deployment.shortCode}
407-
redirectPath={`${location.pathname}${location.search}`}
408-
/>
409-
</Dialog>
410-
)}
411390
</>
412391
}
413392
/>

apps/webapp/app/routes/resources.$projectId.deployments.$deploymentShortCode.retry-indexing.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

apps/webapp/app/services/worker.server.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { CancelTaskAttemptDependenciesService } from "~/v3/services/cancelTaskAt
2222
import { EnqueueDelayedRunService } from "~/v3/services/enqueueDelayedRun.server";
2323
import { ExecuteTasksWaitingForDeployService } from "~/v3/services/executeTasksWaitingForDeploy";
2424
import { ExpireEnqueuedRunService } from "~/v3/services/expireEnqueuedRun.server";
25-
import { IndexDeploymentService } from "~/v3/services/indexDeployment.server";
2625
import { ResumeBatchRunService } from "~/v3/services/resumeBatchRun.server";
2726
import { ResumeTaskDependencyService } from "~/v3/services/resumeTaskDependency.server";
2827
import { RetryAttemptService } from "~/v3/services/retryAttempt.server";
@@ -34,10 +33,6 @@ import { logger } from "./logger.server";
3433
const workerCatalog = {
3534
// @deprecated, moved to commonWorker.server.ts
3635
scheduleEmail: DeliverEmailSchema,
37-
// v3 tasks
38-
"v3.indexDeployment": z.object({
39-
id: z.string(),
40-
}),
4136
// @deprecated, moved to commonWorker.server.ts
4237
"v3.resumeBatchRun": z.object({
4338
batchRunId: z.string(),
@@ -169,16 +164,6 @@ function getWorkerQueue() {
169164
await sendEmail(payload);
170165
},
171166
},
172-
// v3 tasks
173-
"v3.indexDeployment": {
174-
priority: 0,
175-
maxAttempts: 5,
176-
handler: async (payload, job) => {
177-
const service = new IndexDeploymentService();
178-
179-
return await service.call(payload.id);
180-
},
181-
},
182167
// @deprecated, moved to commonWorker.server.ts
183168
"v3.resumeBatchRun": {
184169
priority: 0,

apps/webapp/app/v3/services/indexDeployment.server.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)