Single product view screen fetches all available orderables

Description

After the introduction of the kit unpack list, the single product view screen is fetching all of the orderables that are available in the system. This is a huge performance regression compared to what we had in v3.5 (from an instant load, to about ~15 seconds).

There are several problems that can be observed:

  • All of the orderables are loaded no matter if the user ever clicks "create kit unpack list" to see those products

  • No pagination is used in the backend calls (the UI simply fetches all products, and UI paginates them on its own)

  • The search option filters via pre-fetched list of orderables

To fix the performance we should consider:

  • Retrieving the orderables only after the user clicks on the "create unpack list" button

  • Introduce pagination in API calls and use that on the UI, instead of having UI paginate results itself

  • Make search call search APIs

Status

Assignee

Klaudia Pałkowska

Reporter

Sebastian Brudziński

Story Points

8

Time tracking

40h

Components

Sprint

None

Fix versions

Priority

Major