Add Logto DB role name normalization logics for region roles.
Since we are going to enable both cloud DB connection and region DB connection in @logto/cloud DB alteration, we need to check region-role grantee as well.
The random suffix of the region role name does not really matter, so we simply remove these random suffix from region role name to normalize region role names like what we have done to tenant roles' names.
Summary
Add Logto DB role name normalization logics for region roles. Since we are going to enable both cloud DB connection and region DB connection in @logto/cloud DB alteration, we need to check region-role grantee as well. The random suffix of the region role name does not really matter, so we simply remove these random suffix from region role name to normalize region role names like what we have done to tenant roles' names.
Testing
N/A
Checklist
- [ ].changeset
- [ ] unit tests- [ ] integration tests- [ ] necessary TSDoc comments