(evrk2) Capabilities related to set not unchecked when set is unchecked when editing role

Description

Steps to Reproduce:

  1. Log into evrk2 environment as an admin

  2. Go to "Settings" → “Authorization roles”

  3. Open any existing role with capability sets

  4. In role detailed view, click on “Actions“ button → Select “Edit“ option

  5. Verify that some capabilities' checkboxes are checked and disabled

  6. Uncheck checkboxes for some or all capability sets

Expected Results: Checkboxes for corresponding capabilities (included in unselected sets) are unchecked and enabled.

Actual Results: Checkboxes for corresponding capabilities (included in unselected sets) are enabled but remain checked. If a role is saved at this point - it will be saved with all selected capabilities.

Additional information:

  • NOT reproducible on FSE Dry run 1

  • See example:

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

3

Checklist

hide

Activity

Show:

Yauhen Viazau July 12, 2024 at 12:58 PM

As was discussed on daily Eureka stand-up - current behavior is in fact expected.
Closing the ticket.

Yauhen Viazau July 12, 2024 at 9:14 AM
Edited

Tested on evrk2 - issue found

  1. When capabilities included in set are NOT selected → Set is selected and role saved → Role opened for edit, set is unselected, role saved → Capabilities included in set are unchecked and enabled

  2. When creating a role → When capabilities included in set are NOT selected → Set is selected → Set is unselected → Capabilities included in set are unchecked and enabled

  1. When capabilities included in set ARE selected → Set is selected and role saved → Role opened for edit, set is unselected, role saved → Capabilities included in set are checked and enabled

  2. When creating a role → When capabilities included in set ARE selected → Set is selected → Set is unselected → Capabilities included in set are checked and enabled

- please review/fix

Dimitri Gogiashvili July 5, 2024 at 10:29 AM

The issue is still active on evrk2

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 June 26, 2024 at 10:02 AM
Updated November 1, 2024 at 9:21 AM
Resolved July 12, 2024 at 12:59 PM
TestRail: Cases
TestRail: Runs