Role Assignment and User Edit screens work very slow with huge number of facilities
Description
Having a big number of facilities loaded (tested on 700) the UI for role assignments and user edit takes very long to load (45-60 seconds, including complete browser freeze). This is probably caused by fetching all facilities on those screens.
Acceptance criteria
The time to load the screens shouldn't grow as the number of facilities does
The browser shouldn't hang when accessing role assignments and edit user screens
Having a big number of facilities loaded (tested on 700) the UI for role assignments and user edit takes very long to load (45-60 seconds, including complete browser freeze). This is probably caused by fetching all facilities on those screens.
Acceptance criteria
The time to load the screens shouldn't grow as the number of facilities does
The browser shouldn't hang when accessing role assignments and edit user screens