Improve caching of the Stock Card Summaries

Description

Currently the Stock Card Summaries are fetched and overwritten each time we log in to the application and each time we enter any stock management screen. This entails a lot of data to fetch, which may not be efficient on slow connections. We should be smarter about fetching them - do it only for those records that changed.

Technical tasks:

Acceptance criteria:

  • We only fetch the missing data and the data that changed with stock card summaries to avoid sending the same data over and over again

  • We properly handle user permissions - if user is assigned more roles, the missing stock card summaries should be fetched

  • We properly handle new products - if new stock cards are created they should be fetched

  • We properly handle records with occurredDate in the past

Activity

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Time Assistant

Created January 14, 2021 at 9:29 AM
Updated February 8, 2023 at 1:29 PM

Flag notifications