Skip to content

Commit 651d51a

Browse files
committed
Remove the runs dashboard stuff that we aren't using anymore
1 parent fc6b69b commit 651d51a

12 files changed

+1
-699
lines changed

apps/webapp/app/routes/api.v1.runs.$runId.tags.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { z } from "zod";
44
import { prisma } from "~/db.server";
55
import { createTag, getTagsForRunId, MAX_TAGS_PER_RUN } from "~/models/taskRunTag.server";
66
import { authenticateApiRequest } from "~/services/apiAuth.server";
7-
import { runsDashboard } from "~/services/runsDashboardInstance.server";
87

98
const ParamsSchema = z.object({
109
runId: z.string(),
@@ -80,7 +79,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
8079
}
8180
}
8281

83-
const taskRun = await prisma.taskRun.update({
82+
await prisma.taskRun.update({
8483
where: {
8584
friendlyId: parsedParams.data.runId,
8685
runtimeEnvironmentId: authenticationResult.environment.id,
@@ -95,26 +94,6 @@ export async function action({ request, params }: ActionFunctionArgs) {
9594
},
9695
});
9796

98-
runsDashboard.emit.runTagsUpdated({
99-
time: new Date(),
100-
run: {
101-
id: taskRun.id,
102-
tags: taskRun.runTags,
103-
status: taskRun.status,
104-
updatedAt: taskRun.updatedAt,
105-
createdAt: taskRun.createdAt,
106-
},
107-
organization: {
108-
id: authenticationResult.environment.organizationId,
109-
},
110-
project: {
111-
id: authenticationResult.environment.projectId,
112-
},
113-
environment: {
114-
id: authenticationResult.environment.id,
115-
},
116-
});
117-
11897
return json({ message: `Successfully set ${newTags.length} new tags.` }, { status: 200 });
11998
} catch (error) {
12099
return json(

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

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

0 commit comments

Comments
 (0)