In the UserManagementScreen (Admin) when filtering users by role, there was always a "No such user exists" message.
Problem
We added the users manually to the database and did never fill the userRoles field, but it was used to filter.
When using DatabaseSetup, everything works fine.
Solution
Added manually the roles in the database.
Added a role Admin in RoleTypes
Other changements
Moved the filtering logic in the UserManagementViewModel
Small refactoring of UserManagementScreen
Displays the main role of the user (Admin, Pilot, Crew) and not the whole set of roleTypes
Replacement of BottomBar with AdminBottomBar in AdminStats.
Bug
In the
UserManagementScreen
(Admin) when filtering users by role, there was always a "No such user exists" message.Problem
We added the users manually to the database and did never fill the
userRoles
field, but it was used to filter. When usingDatabaseSetup
, everything works fine.Solution
Admin
inRoleTypes
Other changements
UserManagementViewModel
UserManagementScreen
roleTypes
BottomBar
withAdminBottomBar
inAdminStats
.close #406