...
- Lines 87-95: Fetch each of requisition's non full supply products from reference data service one by one.
Solutions
Both save and submit:
- Return only relevant information about a requisition to the client: Do we really need to return non full supply products in the response of those endpoint? Perhaps we could keep this as a set of UUIDs instead of calling orderableReferenceDataService.findOne for each one of them,
Submit:
- We could reuse products that were previously retrieved in RequisitionController.
- Try not to fetch all the orderables, search them by program instead.