Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Mateusz Kwiatkowski
Mateusz KwiatkowskiReporter
Nick Reid
Nick Reid(Deactivated)Story Points
5
Original estimate
2d
Time tracking
Components
Sprint
Add sprint
Fix versions
Priority
Time Assistant
Time Assistant
Created October 2, 2017 at 9:02 PM
Updated December 8, 2017 at 6:01 PM
Resolved October 24, 2017 at 12:40 PM
The openlmis-facility-program-select makes a number of different HTTP requests when the browser loads to populate the programs and facilites that a user has access to.
This might be the cause of a number of issues:
Browser crashing because endpoints being used are large objects, that are then persisted in memory
Facility/Program list not being shown, because the data isn't loaded by the time a user navigates to that screen
Acceptance Criteria
Use permission strings to create mapping of programs to facilities, cache this mapping in localStorage
Minimal facility representations, and user's programs are already being cached (reuse this loaded data)
Remove this cache on logout
Load this mapping into the openlmis-facility-program controller
Remove openlmis-cache module