Skip to content

Commit d3ce17d

Browse files
committed
test(observability-map): add an unguarded sensitive canary route
Throwaway PR to verify the observability-map CI comment reports a regression. Not for merge.
1 parent 2263035 commit d3ce17d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// SCORER TEST FIXTURE. A throwaway route used to verify that the observability-map CI
2+
// comment reports a regression when an unguarded sensitive route is added. Never merge.
3+
import { json } from "@remix-run/server-runtime";
4+
import { prisma } from "~/db.server";
5+
6+
export async function action({ params }: { params: { orgParam: string } }) {
7+
const org = await prisma.organization.findFirst({ where: { slug: params.orgParam } });
8+
const projects = await prisma.project.findMany({ where: { organizationId: org?.id } });
9+
return json({ count: projects.length });
10+
}

0 commit comments

Comments
 (0)