SysUser Cooperator check helper
Before we merge !432 for #323 we should alert Admins that the change is coming and that it will break their upgrades.
Please add a check function to ApplicationStartup
that will execute JPQL queries and add messages using transientMessageService.addAdminAlert()
for the admin console saying:
-
if
count of users with Cooperator is null > 0
:Some Users are missing a Cooperator record.
-
and if there are any users that share a Cooperator:
Each user must have a unique Cooperator record.
If both checks fail then two messages are added.