The Stock Card Summaries cache should be user-specific

Description

SInce each of the users may have different permisions to view stock cards, we should make the cache user specific. Users can only access their own cache on the UI.

Activity

Show:
Alicja Baranowska
March 8, 2021, 10:32 AM

Tested with success

Verified cases:

  • After login as administrator or divo1 I verified that stockCardSummaries local database (indexedDb) was created and full of records.

  • After changing the user stock card summaries cached for the previous user were not removed.

  • In offline mode after adding some products, the stock data for that products are correct for the given user.

 

Verified on:

  • Ubuntu 20.04

  • Google Chrome Browser Version 85.0.4183.83

Paulina Buzderewicz
March 5, 2021, 10:56 AM

QA notes:

Login as one user, e.g. administrator. Verify that stockCardSummaries local database (indexedDb) is created and full of records.

Log out an login as another user, e.g. divo1. Verify that stock card summaries cached for the previous user were not removed.

In offline mode, open Issue/Receive/Adjustments screen. Add some products and verify that the stock data for the products are correct for the given user.

Done
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Paulina Buzderewicz

Reporter

Sebastian Brudziński