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

Assignee

Unassigned

Reporter

Sebastian Brudziński

Labels

None

Priority

Major