From 5266d7423b06a129b063aea758ab34431d881186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Zakrzewski?= Date: Tue, 7 Jan 2025 14:41:14 +0100 Subject: [PATCH] Unbundle individual case edit --- data-serving/data-service/src/controllers/case.ts | 5 +---- verification/curator-service/ui/src/components/CaseForm.tsx | 3 +++ verification/curator-service/ui/src/components/ViewCase.tsx | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/data-serving/data-service/src/controllers/case.ts b/data-serving/data-service/src/controllers/case.ts index badbb8be0..a85e67843 100644 --- a/data-serving/data-service/src/controllers/case.ts +++ b/data-serving/data-service/src/controllers/case.ts @@ -1287,10 +1287,6 @@ export class CasesController { * Handles HTTP PUT /api/cases/:id. */ update = async (req: Request, res: Response): Promise => { - const numCases = req.query.numCases || 1; - logger.error('=========='); - logger.error(`${numCases}`); - logger.error('=========='); try { const c = await Day0Case.findById(req.params.id); if (!c) { @@ -1308,6 +1304,7 @@ export class CasesController { req.body.curator.email, 'Case Update', ), + bundleId: new mongoose.Types.ObjectId(), }); await c.save(); diff --git a/verification/curator-service/ui/src/components/CaseForm.tsx b/verification/curator-service/ui/src/components/CaseForm.tsx index 4c1c3d2af..37263797a 100644 --- a/verification/curator-service/ui/src/components/CaseForm.tsx +++ b/verification/curator-service/ui/src/components/CaseForm.tsx @@ -965,6 +965,9 @@ export default function CaseForm(props: Props): JSX.Element { Complete all available data for the case. Required fields are marked. + {props.initialCase && + Editing the individual case that is part of the bundle will cause it to be removed from the bundle. + }
diff --git a/verification/curator-service/ui/src/components/ViewCase.tsx b/verification/curator-service/ui/src/components/ViewCase.tsx index 59782c7b0..15b669087 100644 --- a/verification/curator-service/ui/src/components/ViewCase.tsx +++ b/verification/curator-service/ui/src/components/ViewCase.tsx @@ -325,7 +325,6 @@ function CaseDetails(props: CaseDetailsProps): JSX.Element { )} {props.c._id && - false && // Hide verification for a single case !props.c.curators?.verifiedBy && user?.roles.includes(Role.Curator) && ( <>