Repository navigation
Tags
Tags
Implement selecting specific organizations in FGAP permission (keyclo… …ak#51717) * Safely Adapted organization modal for use with fgap Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Create OrganizationSelect component Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Add organizations to resource types Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Added en translation keys Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * added orgs to permission eval Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Show error when no orgs selected Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * disable add/join button if no orgs selected Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * display error message when no organizations exist Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * filter out organization resource type if disabled Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Catch not found organizations Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * pass isRadio through to organization modal Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Clean up organization modal titles code Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * casing and placement Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Don't show empty orgs error when orgs loading. Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Disable existing orgs selected rather than removing them from modal Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Select all shouldnt select disabled rows in `KeycloakDataTable` Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * fix adminclient org typing and catch nulls Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * use translation keys for OrganizationModal.tsx titles Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Missing message keys Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Calculate orgsEnabled outside of memo Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Don't include subrows in select all Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * remove unnecessary properties from SubRow Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * disable select all if nothing selectable Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * don't need to pass existingOrgs length into loader params now that they aren't removed Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * added select/delete org permission test Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * enable organizations in test realm Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * reusable selectedRows var Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * hopefully more concrete org row selector Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * create policy with different name Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * just check for presence of data property - not truthiness Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * clean up perm tests once complete Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Safely Adapted organization modal for use with fgap Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Create OrganizationSelect component Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Add organizations to resource types Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Added en translation keys Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * added orgs to permission eval Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Show error when no orgs selected Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * disable add/join button if no orgs selected Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * display error message when no organizations exist Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * filter out organization resource type if disabled Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Catch not found organizations Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * pass isRadio through to organization modal Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Clean up organization modal titles code Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * casing and placement Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Don't show empty orgs error when orgs loading. Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Disable existing orgs selected rather than removing them from modal Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Select all shouldnt select disabled rows in `KeycloakDataTable` Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * fix adminclient org typing and catch nulls Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * use translation keys for OrganizationModal.tsx titles Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Missing message keys Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Calculate orgsEnabled outside of memo Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Don't include subrows in select all Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * remove unnecessary properties from SubRow Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * disable select all if nothing selectable Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * don't need to pass existingOrgs length into loader params now that they aren't removed Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * added select/delete org permission test Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * enable organizations in test realm Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * reusable selectedRows var Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * hopefully more concrete org row selector Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * create policy with different name Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * just check for presence of data property - not truthiness Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * clean up perm tests once complete Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Make sure delete completes Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * disable row selection only when var exists and true in KeycloakDataTable Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: theohh0 <theo.hintonhallows123@gmail.com> * corrected copilots edit Signed-off-by: th 8000 eohh0 <theo.hinton-hallows@ibm.com> * Handle undefined organization in findOne callers * Handle undefined organization in findOne callers organizations.findOne now returns OrganizationRepresentation | undefined (catchNotFound), but the callers added on main in the multi-IdP work still assumed it always returns an organization, which fails the type check. Each caller now handles a missing organization the same way it did when the 404 was thrown, so behaviour doesn't change. Signed-off-by: Danny <117714228+UCNDanny@users.noreply.github.com> * Undo change to DetailOrganization.tsx Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> * Use optional chaining for organization domains rather than throwing for undefined orgs Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> --------- Signed-off-by: Danny <117714228+UCNDanny@users.noreply.github.com> Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> Co-authored-by: theohh0 <theo.hinton-hallows@ibm.com> * use isRadio to manage evaluation 'canSelectAll' so column headings don't incorrectly get shifted over by 1. Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> --------- Signed-off-by: theohh0 <theo.hinton-hallows@ibm.com> Signed-off-by: theohh0 <theo.hintonhallows123@gmail.com> Signed-off-by: Danny <117714228+UCNDanny@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Danny <117714228+UCNDanny@users.noreply.github.com>
PreviousNext