logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
7.79k stars 383 forks source link

chore: normalize Logto DB region role names for DB alteration CI #6144

Closed darcyYe closed 6 days ago

darcyYe commented 6 days ago

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

github-actions[bot] commented 6 days ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +236 Bytes

Diff by File |Name|Diff| |---|---| |.scripts/compare-database.js|:chart_with_upwards_trend: +236 Bytes|