Ability to select entire columns of capabilities in each capability/capabilitySet grid/accordion

Description

Overview

The idea is to add checkboxes in each of the column headers (Create, Edit, Delete, etc.). Checking one of these boxes will select all of the capabilities/capabilitySets in that table/grid, for the selected applications only. We shouldn’t be selecting capabilities from other application not shown.

For example: Let’s say we’re building a role, and select only app-consortia. If we go to the “Capabilities → Data” accordion and select the checkbox in the “view” column. Only the capabilities with type=data and action=view provided by app-consortia would be selected.

This effectively means, if you wanted to create a “read-only” role scoped to a given application, it would require 6 clicks - “Capabilities/Data/view”, “Capabilities/Settings/view”, “Capabilities/Procedural/view”, “Capability Sets/Data/view”, “Capability Sets/Settings/view”, “Capability Sets/Procedural/view”. This is a vast improvement over needing to click 10s, 100s, or possibly even thousands of individual capability and capabilitySet checkboxes.

NOTE: Only capabilities/capabilitySets in the currently selected application(s) would be selected/unselected when using theses checkboxes.

NOTE: Capabilities which are automatically selected as a result of selecting a capabilitySet are not affected by this.

Acceptance Criteria

  • Checkboxes are present for each column in the various capability/CapabilitySet tables

  • Selecting one of these checkboxes selects all of the capabilities in that column of the grid

  • Tests have been updated

Environment

None

Potential Workaround

None

Attachments

3

Checklist

hide

Activity

Show:

Yury Barsukou January 14, 2025 at 2:32 PM

Fixed. Video added, cases attached

Craig McNally January 10, 2025 at 1:39 PM

OK, I see this has been addressed in scope of . Thank you!

Craig McNally January 10, 2025 at 1:31 PM

do you mind creating a new PR to fix the layout problem described above? It feels a little silly to create a whole new story just for something like that.

Yury Barsukou January 10, 2025 at 9:30 AM
Edited

Tested on Snapshot, works fine. Evidence and cases added.
Got only 1 small issue worth discussing: checkbox for Execute column has a small layout issue. We can ignore it or maybe fix by giving a little more space in width. As a separate ticket or fix for this one.



Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created November 21, 2024 at 1:19 PM
Updated January 16, 2025 at 9:16 PM
Resolved January 16, 2025 at 9:16 PM
TestRail: Cases
TestRail: Runs