Add implementation for the update, create and delete in OpenlmisCachedResource on UI

Description

Acceptance criteria

  • Implement OpenlmisCachedResource with interface described in

  • Internally the class should use an OpenlmisResource and LocalDatabase

  • It should check whether data is up to date on each call and refetch if necessary (304 status is returned from the backend if data is up-to-date)

Helpful resources

The purpose of this ticket is to implement OpenlmisCachedResource with the following functions based on UI caching design:

  • create

  • update

  • delete

This functions should update records in the local database.

Acceptance Criteria:

  • functions should save records by using an OpenlmisResource

  • functions should update records in the local database

  • the OpenlmisCachedResource should be added in the ui-components service

Assignee

Paulina Buzderewicz

Reporter

Aleksandra Sołtys

Labels

Story Points

3

Time tracking

32h

Epic Link

Components

Sprint

None

Fix versions

Priority

Major
Configure