Skip to content

UISAUTHCOM-100 - Sunflower CSP - Some capabilities not shown when editing a role but shown in its detail view. - #160

Open
JohnC-80 wants to merge 4 commits into
b2.0from
UISAUTHCOM-100
Open

UISAUTHCOM-100 - Sunflower CSP - Some capabilities not shown when editing a role but shown in its detail view.#160
JohnC-80 wants to merge 4 commits into
b2.0from
UISAUTHCOM-100

Conversation

@JohnC-80

@JohnC-80 JohnC-80 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

UISAUTHCOM-100

Sunflower backport of UISAUTHCOM-96

The backport required the isFetching flags and proper waiting on the initial state from UISAUTHCOM-83's changes as well.

We're also able to do this now since MODROLESK-430 was backported to Sunflower. It added the direct field to capabilities that the useRoleCapabilities hook can filter on.

Screen capture of Apps in Detail/Edit view and Capability/Set selection behavior:

2026-09-01_10h55_33.mp4

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Jest Unit Test Results

  1 files  ±0   51 suites  ±0   1m 37s ⏱️ -5s
168 tests +7  167 ✅ +7  1 💤 ±0  0 ❌ ±0 
176 runs  +7  175 ✅ +7  1 💤 ±0  0 ❌ ±0 

Results for commit cec8b12. ± Comparison against base commit 2412d70.

♻️ This comment has been updated with latest results.

@JohnC-80 JohnC-80 changed the title UISAUTHCOM-100 https://folio-org.atlassian.net/browse/UISAUTHCOM-100 UISAUTHCOM-100 Some capabilities not shown when editing a role but shown in its detail view. Sep 1, 2026
@JohnC-80 JohnC-80 changed the title UISAUTHCOM-100 Some capabilities not shown when editing a role but shown in its detail view. UISAUTHCOM-100 - Sunflower CSP - Some capabilities not shown when editing a role but shown in its detail view. Sep 1, 2026
Comment thread lib/Role/utils.js Outdated
Comment on lines +75 to +77
if (initialCapabilitiesSelectedMap[cap]) {
delete newSelectedCapabilitiesMap[cap];
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was removed in #136. #136 should be cherry-picked after #133.

@JohnC-80 JohnC-80 Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Dmytro-Melnyshyn - I switched the cherry-pick order of the UISAUTHCOM-83 commits. No surprise, the cherry-pick went much more smoothly! 😅

Dmytro-Melnyshyn and others added 4 commits September 2, 2026 07:33
… a capability set that includes them. Keep `isInitialDataReady` false while fetching data to prevent stale data from being displayed after the page is reopened. (#133)
…et after selecting a checkbox for a set that includes the initial capabilities. (#136)
…ion. (#154)

* add 'direct' fields to useRoleCapabilities output

* do less

* update tests for 'direct' keys from useRoleCapabilities hook
@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants