@smartkomm/plexus-cli 0.1.297 → 0.1.299

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.
@@ -1 +1 @@
1
- 12b20da6f6cf99cb17f551a2f1a1f22c353a998d019fa10d56f55cfc209a6941
1
+ 966a1093caecb57e0adb6f751163305ac4baf0aa73978e520aae66af9acaa22b
@@ -31,11 +31,17 @@ Run the plan again. It reports `unchanged`, with the new unit as the default.
31
31
  `[import-source/unitUnknown]` and lists the keys the source knows.
32
32
  - Deleting any other unit removes it from the source's key list automatically.
33
33
  Only the default unit blocks a delete.
34
- - In the tenant config the default unit is the first entry of
35
- `foundation.units`. `config export` lists the current default first, so an
36
- apply from a fresh export keeps it. **An apply from an export taken before
37
- this change sets the old default back.** Its plan then shows an update on
38
- `source`. Export again after setting the default.
34
+ - The tenant config names the default unit by key: `source.defaultUnitKey`
35
+ (the order of `foundation.units` means nothing). `config export` writes the
36
+ current default there, so an apply from a fresh export keeps it. **An apply
37
+ from an export taken before this change names the old default and sets it
38
+ back**; its plan shows an update on `source`. Export again after setting the
39
+ default, or set `source.defaultUnitKey` in the scratch export by hand.
40
+ - `config apply` refuses a source without `defaultUnitKey`
41
+ (`[import/defaultUnitMissing]`) or with a key that is not in
42
+ `foundation.units` (`[import/defaultUnitUnknown]`). There is no fallback to
43
+ the first unit. An export taken before this change carries no key: add it before
44
+ the apply.
39
45
 
40
46
  ## Related
41
47
  - [Edit a school's organisation structure](../organization/edit-org-structure.md)