Assigning supervision role to user doesn't work.

Description

Reproduction steps:

  • Go to the Edit User Roles screen

  • Add a new role for any Family Planning, Cuamba district and Store Managed

  • Save User Roles

  • Go back to the Edit User Roles

  • There is no roles assigned to the user

Environment

None

Activity

Show:
Chongsun Ahn
November 2, 2017, 9:18 PM

This seems to be an issue in the UI caching role assignments and not showing the updated info that has been saved in the backend.

Paweł Albecki
November 3, 2017, 2:41 PM

I confirm, the users are cached in local storage under: openlmis.user. To fix this we need to store response from PUT /api/users in cache after user is updated.

Sam Im
November 3, 2017, 10:07 PM

Changed the priority to Major because the role assignment can be made, but the UI doesn't update until a user logs out and logs back in.

Assignee

Nikodem Graczewski

Reporter

Nikodem Graczewski

Components

Priority

Major
Configure