@onderwijsin/directus-seeder-hook 1.0.0 → 1.0.1
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/CHANGELOG.md +8 -0
- package/README.md +16 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @onderwijsin/directus-seeder-hook
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 546f2bf: Delete managed system roles through Directus after selected user and access imports
|
|
8
|
+
succeed. Directus detaches child roles and suspends users assigned to the deleted roles, including
|
|
9
|
+
records outside Seeder management, while protecting the last active administrator.
|
|
10
|
+
|
|
3
11
|
## 1.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -392,6 +392,22 @@ before any selected collection mutates. **Extraction filters and omitted fields
|
|
|
392
392
|
managed records from deletion.** A filtered export or environment transformation can omit records
|
|
393
393
|
that full-idempotent later deletes.
|
|
394
394
|
|
|
395
|
+
### System role deletion
|
|
396
|
+
|
|
397
|
+
Full-idempotent system imports delete selected roles through Directus's `RolesService`. The Seeder
|
|
398
|
+
keeps the configured order for reads and upserts and waits to delete roles until selected
|
|
399
|
+
`directus_users` and `directus_access` with seed files have completed successfully. If either
|
|
400
|
+
collection fails, the Seeder skips the pending role deletions even with
|
|
401
|
+
`SEEDER_CONTINUE_ON_ERROR=true`. A skipped pending deletion or an error from Directus makes the
|
|
402
|
+
import exit 1. Earlier successful writes can remain.
|
|
403
|
+
|
|
404
|
+
Management limits the roles selected for deletion. Directus detaches child roles, suspends users
|
|
405
|
+
assigned to the deleted roles and clears their role, and handles related records such as role-linked
|
|
406
|
+
presets and policy assignments. These effects can reach records outside the Seeder's management and
|
|
407
|
+
collection selection. Directus still refuses to remove the last active administrator, including
|
|
408
|
+
during `--full-reset`. Seed the replacement admin's user and access changes in the same import when
|
|
409
|
+
retiring a role used by the last active administrator.
|
|
410
|
+
|
|
395
411
|
### ID-range management
|
|
396
412
|
|
|
397
413
|
```json
|