White screen while capabilities and capability sets are loading when opening a role for edit second time

Description

Steps to reproduce:

  1. Login to evrk2 ( )

  2. Click on the name of any existing role in the second pane

  3. In the third pane, click on “Actions“ button → Select “Edit” option

  4. Click on “Cancel” button

  5. 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:

 

Environment

None

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Estimation Notes and Assumptions

None

RCA Group Details

None

Attachments

3

Checklist

hide

Activity

Show:

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

Cannot Reproduce

Details

Assignee

Reporter

Development Team

Eureka

RCA Group

Not a bug anymore

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created September 17, 2024 at 1:53 PM
Updated November 1, 2024 at 7:09 AM
Resolved November 1, 2024 at 7:09 AM
TestRail: Cases
TestRail: Runs