Skip to content

Create Germination Tray (Part 1.1) - Add validation to the create germinator tray api #2359

@MCatherine1994

Description

@MCatherine1994

Describe the task
For the data sending to the create germinator tray api, need to validate:

  • Seed not withdrawn (seed_withdrawal_date is greater than today's date)
  • Test is not a germ test (check activity_type_cd)
  • A germination tray for this request ID already exists
Image

Acceptance Criteria

  • Get those parameters from test result table, and check the activity type is a germ test type
  • Add validation to the create germinator tray api
  • Return bad request when validation fail
  • Add tests

Additional context

  • Add any other context about the task here.
  • Or here

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions