Adjust user entity
AC
-
Add field isActive
- boolean default true -
Enable user deletion in TMD for admin and project lead. User record is kept in database, but all data except id
,user_id
,isActive
are set to null -
When login in Keycloak happens and token comes to TMD, isActive
must be checked before synchronising data. IfisActive
is set tofalse
then no data will be synced. This is to avoid re-entering data in TMD for deleted users. -
NTH - prevent users with markForDelete
= true from logging in -
Only the users that have markForDelete
= true can be deleted -
correspondence
field can have values:email
,post
,email/post
and null -
add custom mutation addTransect
for adding transect to the user, without the need to specify already assigned transects -
add custom mutation removeTransect
for removing single assigned transect from the user -
add validation to prevent removing all roles from the user ('User must have at least Registered user role') -
Tests
Review
-
Add field isActive
- boolean default true -
Enable user deletion in TMD for admin and project lead. User record is kept in database, but all data except id
,user_id
,isActive
are set to null -
When login in Keycloak happens and token comes to TMD, isActive
must be checked before synchronising data. IfisActive
is set tofalse
then no data will be synced. This is to avoid re-entering data in TMD for deleted users. -
NTH - prevent users with markForDelete
= true from logging in -
Only the users that have markForDelete
= true can be deleted -
correspondence
field can have values:email
,post
,email/post
and null -
add custom mutation addTransect
for adding transect to the user, without the need to specify already assigned transects -
add custom mutation removeTransect
for removing single assigned transect from the user -
add validation to prevent removing all roles from the user ('User must have at least Registered user role') -
Tests
Edited by Michael Voigt