Remove call to /orderables in GET /v2/requisitions

Description

GET /v2/requisitions/ should not call referencedata to retrieve a list of orderables, since the requisition service should have all of the information required to build the V2 requisition response on its own. Moreover, the call to retrieve orderables is the most expensive ones at the moment (for huge requisitions even 95% of the time is spent there).

Currently, the call to retrieve orderables +program orderables is used to separate lists of available products to full supply and non-full supply. We should get rid of that in V2 response. The clients of the endpoint can call the necessary orderables endpoint (or use cache) if needed.

The UI currently uses those separate lists as well. It needs to be refactored so it doesn't rely on the response from the backend and segregates the products on its own.

Status

Assignee

Klaudia Pałkowska

Reporter

Sebastian Brudziński

Labels

None

Story Points

5

Time tracking

16h

Components

Sprint

None

Fix versions

Priority

Major
Configure