White screen while capabilities and capability sets are loading when opening a role for edit second time
Description
Environment
CSP Request Details
CSP Rejection Details
Potential Workaround
Estimation Notes and Assumptions
RCA Group Details
Attachments
is cloned by
Checklist
hideActivity
Yauhen Viazau November 1, 2024 at 7:09 AM
Tested on https://folio-etesting-snapshot2-diku.ci.folio.org/ , https://folio-etesting-snapshot2-consortium.ci.folio.org/ - works as expected
All expected UI elements are loaded when opening a role for edit the first, second and all consecutive times. See example:
Might have been fixed in scope of
Yauhen Viazau October 3, 2024 at 12:21 PM
, - I have noticed that when a role edit view is opened with a white screen (like described in the ticket), sometimes not all latest updates to capability/set checkboxes are properly displayed. It looks like it might be related to caching (just as the main issue here). I believe this should be fixed because a user does not always see the correct capability assignment for a role when editing it.
Added info about this issue to the ticket description, with a screencast
Steps to reproduce:
Login to evrk2 ( )
Click on the name of any existing role in the second pane
In the third pane, click on “Actions“ button → Select “Edit” option
Click on “Cancel” button
In the third pane, click on “Actions“ button → Select “Edit” option
Expected result: “Edit role“ pane is opened. Loading animations are shown in both “Capability sets“ and “Capabilities“ accordions for some time. Then lists of capability sets and capabilities are loaded.
Actual result: “Edit role“ pane is opened. It only contains “Unassign all capabilities/sets” button and “Collapse all” link - the rest of the pane is empty (white space). After some time, the rest of the elements are loaded simultaneously with the lists of capability sets and capabilities.
Additional details:
A regression on evrk2 ( )
was fixed on evrk2 before in scope of -
Also reproducible on https://folio-etesting-snapshot-diku.ci.folio.org/
It looks like the UI elements are loaded from cache (at least some of them). Sometimes, not all of the updates made to checkboxes are displayed when this happens. If a role is opened for edit again, all updates are properly shown (see the second screencast).
See example: