Switch UI to use v2 RequisitionController endpoints

Description

There is a need to switch UI to use /v2/ endpoints for in Requisition controller to use FTAP/Orderable versioning.
The UI will probably require the following changes:

  • ProductGridCell directive would have to be updated to also accept FTAP/orderable and search for values there

  • Product grid state would have to be updated to also fetch the FTAPS and orderables

  • FTAPS and orderables would have to be cached for each locally stored requisition in order for the offline to work. See

Acceptance criteria

  1. The /v2/ endpoints of the RequisitionController are used

  2. The functionality of the areas which use RequisitionController works still properly

  3. Investigate if there are other places which may use /v2/ RequisitionController endpoints and commit the changes there

This issue has been created basing on design discussion

 

Additional Questions

  • should we finally delete (or create ticket for it) v1 endpoints and remove /v2/ prefix?

    • No, the v2 prefix should stay

  • should we create a ticket for marking v1 endpoints as deprecated

    • If everything works properly with v2, let’s mark them as deprecated to encourage use of v2

 

Status

Assignee

Paulina Buzderewicz

Reporter

Paweł Cieszko

Labels

Story Points

8

Time tracking

80h

Epic Link

Components

Sprint

None

Fix versions

Priority

Major
Configure