@haneinfo/app-tooling 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @haneinfo/app-tooling
|
|
2
2
|
|
|
3
|
+
## RBAC 8 App upgrade
|
|
4
|
+
|
|
5
|
+
`haneinfo-app` does not apply database migrations or permission plans. For each App,
|
|
6
|
+
upgrade rbac to 8.0.0 after release and run `haneinfo build`. For Apps using
|
|
7
|
+
`backend/prisma/schema/`, copy the reviewed rbac `prisma/role.prisma` fragment into that
|
|
8
|
+
active schema folder as well (build only emits the composed schema). Add
|
|
9
|
+
an App-owned migration before starting the upgraded backend:
|
|
10
|
+
|
|
11
|
+
```sql
|
|
12
|
+
ALTER TABLE role_permissions ALTER COLUMN permission TYPE text USING permission::text;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Regenerate Prisma Client, deploy the migration, seed, then run integration tests. Deploy
|
|
16
|
+
`backend/.haneinfo/generated/permissions.json` and start with `backend/` as the working
|
|
17
|
+
directory (or explicitly configure the catalog path). Keep the App `Permission` enum
|
|
18
|
+
as a catalog or supply constant IDs through `RBAC_PERMISSION_CATALOG_OPTIONS`.
|
|
19
|
+
Use the updated frontend-admin, or pass `/roles/permission-catalog` to custom role UIs.
|
|
20
|
+
Seeds must use `string[]` for mixed App/plugin grants and validate them with
|
|
21
|
+
`RbacPermissionCatalog.assertGrantable()` before insertion. Preserve retired grants.
|
|
22
|
+
The enum checker already accepts schemas without `Permission`; it still validates any
|
|
23
|
+
remaining enums and their translations. Do not translate plugin IDs as Prisma enums:
|
|
24
|
+
their labels come from the deployed catalog's `displayName`.
|
|
25
|
+
|
|
3
26
|
## Template synchronization
|
|
4
27
|
|
|
5
28
|
Scaffolding records the clean template checkout's actual Git commit in `.haneinfo/scaffold.json`
|