Loading animation for Capabilities and Capability sets not shown when editing role again

Description

Overview: Loading animation for Capabilities and Capability sets is not shown in the role edit page if that page has already been opened prior.

Steps to reproduce:

  1. Login on evrk2 environment as an admin user

  2. Go to "Settings" app → Select "Authorization roles" option in "Settings" pane

  3. Click on any existing Authorization role

  4. On the third pane click “Actions” → “Edit”

  5. On Edit role page click “Cancel” button

  6. Repeat step 4 for the same Authorization role

Expected result: Loading animation (moving dots) is shown in expanded accordions: "Capabilities", "Capability sets"

Actual result: Page takes 2-3 seconds more to load and Capabilities and Capability sets are already displayed.

Additional information:

  • Same issue when creating a new role and opening the edit page afterward.

    • Interestingly, it works as expected in Cypress auto-test (loading animation shown each time)

  • If the browser tab is refreshed before re-opening the edit page, it works as expected.

  • NOT reproducible on FSE Dry run 1

  • See example:

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

Activity

Show:

Yauhen Viazau August 7, 2024 at 10:59 AM

Tested on evrk2 - works as expected

Loading animations for capabilities/sets are shown each time when opening a role for edit. The same for editing a newly created role. See examples:

 

Craig McNally July 10, 2024 at 12:43 PM
Edited

Maybe an issue with the spinner display logic… should happen not only during data retrieval, but also while parsing/sorting/etc. happen.

It sounds like there’s also some caching coming into play here. We should consider NOT caching this information.

Luka Dzhanibegashvili July 5, 2024 at 10:20 AM

The issue is still active on evrk2

NOT reproducible on Dry run1

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Fix versions

Release

Ramsons (R2 2024)

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created July 4, 2024 at 8:40 AM
Updated November 1, 2024 at 9:26 AM
Resolved August 7, 2024 at 10:59 AM
TestRail: Cases
TestRail: Runs