Skip to content

Commit

Permalink
Unbundle individual case edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw-zakrzewski committed Jan 7, 2025
1 parent 1447e34 commit 5266d74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions data-serving/data-service/src/controllers/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1287,10 +1287,6 @@ export class CasesController {
* Handles HTTP PUT /api/cases/:id.
*/
update = async (req: Request, res: Response): Promise<void> => {
const numCases = req.query.numCases || 1;
logger.error('==========');
logger.error(`${numCases}`);
logger.error('==========');
try {
const c = await Day0Case.findById(req.params.id);
if (!c) {
Expand All @@ -1308,6 +1304,7 @@ export class CasesController {
req.body.curator.email,
'Case Update',
),
bundleId: new mongoose.Types.ObjectId(),
});
await c.save();

Expand Down
3 changes: 3 additions & 0 deletions verification/curator-service/ui/src/components/CaseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,9 @@ export default function CaseForm(props: Props): JSX.Element {
Complete all available data for the case.
Required fields are marked.
</Typography>
{props.initialCase && <Typography variant="body2" style={{fontWeight: 'bold'}}>
Editing the individual case that is part of the bundle will cause it to be removed from the bundle.
</Typography>}
<Form>
<FormSection>
<General />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ function CaseDetails(props: CaseDetailsProps): JSX.Element {
</Link>
)}
{props.c._id &&
false && // Hide verification for a single case
!props.c.curators?.verifiedBy &&
user?.roles.includes(Role.Curator) && (
<>
Expand Down

0 comments on commit 5266d74

Please sign in to comment.