This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 382b4bcab2 NIFI-14844 sort lists in Add Users/Groups To Policy dialog
382b4bcab2 is described below
commit 382b4bcab22e6b3266c5a558294faedb4e3cf7f5
Author: Mike Moser <[email protected]>
AuthorDate: Mon Aug 11 18:01:47 2025 +0000
NIFI-14844 sort lists in Add Users/Groups To Policy dialog
Signed-off-by: Pierre Villard <[email protected]>
This closes #10191.
---
.../add-tenant-to-policy-dialog.component.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/access-policies/ui/common/add-tenant-to-policy-dialog/add-tenant-to-policy-dialog.component.ts
b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/access-policies/ui/common/add-tenant-to-policy-dialog/add-tenant-to-policy-dialog.component.ts
index e1f19419cc..2bb71c1be8 100644
---
a/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/access-policies/ui/common/add-tenant-to-policy-dialog/add-tenant-to-policy-dialog.component.ts
+++
b/nifi-frontend/src/main/frontend/apps/nifi/src/app/pages/access-policies/ui/common/add-tenant-to-policy-dialog/add-tenant-to-policy-dialog.component.ts
@@ -58,6 +58,8 @@ export class AddTenantToPolicyDialog extends
CloseOnEscapeDialog {
this.filteredUsers = users.filter((user: UserEntity) => {
return !policy.users.some((tenant: TenantEntity) => tenant.id
=== user.id);
+ }).sort((a,b) => {
+ return
a.component.identity.localeCompare(b.component.identity);
});
this.userLookup.clear();
@@ -73,6 +75,8 @@ export class AddTenantToPolicyDialog extends
CloseOnEscapeDialog {
this.filteredUserGroups = userGroups.filter((userGroup:
UserGroupEntity) => {
return !policy.userGroups.some((tenant: TenantEntity) =>
tenant.id === userGroup.id);
+ }).sort((a,b) => {
+ return
a.component.identity.localeCompare(b.component.identity);
});
this.userGroupLookup.clear();