Skip to content

Commit

Permalink
Merge branch 'master' into UIU-2942
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam authored Sep 29, 2023
2 parents 9e0a45f + 06f6ea7 commit aae8fe6
Show file tree
Hide file tree
Showing 34 changed files with 89 additions and 69 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
* ECS - Filter users by "User Type". Refs UIU-2943.
* Users App: Consume {{FormattedDate}} and {{FormattedTime}} via stripes-component. Refs UIU-1860.
* ECS - Prevent editing of specific shadow user data. Refs UIU-2951.
* Relabel "Users: Can create new user" to "Users: Can create and edit users". Refs UIU-2955.
* Assign/unassign a users affiliations adjustments. Refs UIU-2942.


## [9.0.0](https://github.com/folio-org/ui-users/tree/v9.0.0) (2023-02-20)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v8.1.0...v9.0.0)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
},
{
"permissionName": "ui-users.create",
"displayName": "Users: Can create new user",
"displayName": "Users: Can create and edit users",
"description": "Some subperms can be deleted later when bl does updates and ModulePermissions can be used",
"subPermissions": [
"ui-users.edit",
Expand Down
10 changes: 0 additions & 10 deletions src/views/UserSearch/UserSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ import CashDrawerReconciliationReportPDF from '../../components/data/reports/cas
import CashDrawerReconciliationReportCSV from '../../components/data/reports/cashDrawerReconciliationReportCSV';
import FinancialTransactionsReport from '../../components/data/reports/FinancialTransactionsReport';
import LostItemsLink from '../../components/LostItemsLink';
import { getCentralTenantId, isConsortiumEnabled } from '../../components/util';
import { USER_TYPES } from '../../constants';
import Filters from './Filters';

import css from './UserSearch.css';
Expand Down Expand Up @@ -652,7 +650,6 @@ class UserSearch extends React.Component {
onNeedMoreData,
resources,
contentRef,
stripes,
mutator: { resultOffset, cashDrawerReportSources },
stripes: { timezone },
okapi: { currentUser },
Expand Down Expand Up @@ -719,12 +716,6 @@ class UserSearch extends React.Component {
email: user => get(user, ['personal', 'email']),
};

const { PATRON, SHADOW, STAFF, SYSTEM } = USER_TYPES;
const isCentralTenant = getCentralTenantId(stripes);
const isConsortium = isConsortiumEnabled(stripes);
const defaultSelectedUserTypes = isCentralTenant ? [STAFF, SHADOW, SYSTEM] : [STAFF, PATRON, SYSTEM];
const initialFilters = isConsortium ? { userType: defaultSelectedUserTypes } : {};

return (
<HasCommand commands={this.shortcuts}>
<div data-test-user-instances ref={contentRef}>
Expand All @@ -734,7 +725,6 @@ class UserSearch extends React.Component {
onComponentWillUnmount={onComponentWillUnmount}
initialSearch={initialSearch}
initialSearchState={{ query: '' }}
initialFilterState={initialFilters}
>
{
({
Expand Down
3 changes: 2 additions & 1 deletion translations/ui-users/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/ber.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/cs_CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Čtenář",
"information.userType.staff": "Zaměstnanci",
"information.userType.shadow": "Stín",
"information.userType.system": "Systém"
"information.userType.system": "Systém",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Gebyr-/bødehistorik: Kan oprette, redigere og fjerne konti",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Brugere: Kan redigere brugerprofil",
"permission.editperms": "Brugere: Kan tildele og fjerne tildeling af brugerrettigheder til brugere",
"permission.editproxies": "Brugere: Kan oprette, redigere og fjerne proxyer",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
2 changes: 1 addition & 1 deletion translations/ui-users/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@
"filters.status.active": "Active",
"filters.status.inactive": "Inactive",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down
5 changes: 3 additions & 2 deletions translations/ui-users/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/en_SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/es_419.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Personal",
"information.userType.shadow": "Shadow",
"information.userType.system": "Sistema"
"information.userType.system": "Sistema",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "하나 이상의 차단 된 작업이 선택된 경우 표시 할 메시지는 필수 필드입니다.",
"settings.error.noCheckbox": "메시지를 표시하려면 하나 이상의 차단된 작업을 선택해야 합니다.",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
5 changes: 3 additions & 2 deletions translations/ui-users/nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"settings.error.noMessage": "Message to be displayed is a required field if one or more Blocked actions selected",
"settings.error.noCheckbox": "One or more Blocked actions must be selected for Message to be displayed to be used",
"permission.accounts": "Fee/Fine History: Can create, edit and remove accounts",
"permission.create": "Users: Can create new user",
"permission.create": "Users: Can create and edit users",
"permission.edit": "Users: Can edit user profile",
"permission.editperms": "Users: Can assign and unassign permissions to users",
"permission.editproxies": "Users: Can create, edit and remove proxies",
Expand Down Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
3 changes: 2 additions & 1 deletion translations/ui-users/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1136,5 +1136,6 @@
"information.userType.patron": "Patron",
"information.userType.staff": "Staff",
"information.userType.shadow": "Shadow",
"information.userType.system": "System"
"information.userType.system": "System",
"userType": "User type"
}
Loading

0 comments on commit aae8fe6

Please sign in to comment.