Skip to content

Commit b250cb8

Browse files
xuyushun441-sysos-zhuangclaude
authored
chore(release): sys_department system-object rename is a breaking major (9.x → 10.0.0) (#2116)
* chore: bump objectui to 70a56e15152c fix(registry): silence bare-name collision warnings; keep display owners (#1855) objectui@70a56e15152c6e9ff602a9ff3675900e410531d7 * chore(release): make the sys_department system-object rename a breaking major (10.0.0) ADR-0057 D2 renames the shipped system object `sys_department` → `sys_business_unit` (object + `sys_department_member` → `sys_business_unit_member`, fields, i18n) with no compatibility alias. A renamed shipped system object is a breaking change to the platform's public data surface, so `@objectstack/platform-objects` and `@objectstack/plugin-sharing` move from `minor` to `major` — taking the 73-package fixed group from 9.11.0 to 10.0.0 on the next `changeset version`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 61ef9ad commit b250cb8

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.changeset/adr-0057-erp-authz.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
---
2+
"@objectstack/platform-objects": major
3+
"@objectstack/plugin-sharing": major
24
"@objectstack/spec": minor
35
"@objectstack/plugin-security": minor
4-
"@objectstack/plugin-sharing": minor
56
"@objectstack/runtime": minor
6-
"@objectstack/platform-objects": minor
77
"@objectstack/objectql": minor
88
"@objectstack/plugin-approvals": patch
99
---
1010

11+
**BREAKING:** the system object `sys_department` is renamed to `sys_business_unit`
12+
— object + member table (`sys_department_member``sys_business_unit_member`),
13+
fields, and i18n — with **no compatibility alias**. Any deployment holding
14+
`sys_department` rows, or metadata that references the object by name (lookups,
15+
list views, queries, sharing/approval scopes), must migrate to `sys_business_unit`.
16+
A renamed shipped system object is a breaking change to the platform's public
17+
data surface, so this lands as a **major**. Verified per ADR-0059's pre-publish
18+
hotcrm gate: no published downstream consumer references the old name.
19+
1120
ADR-0057 — ERP authorization core. Adds permission-grant access DEPTH
1221
(`own`/`own_and_reports`/`unit`/`unit_and_below`/`org`), renames `sys_department`
13-
`sys_business_unit` (pre-launch, no aliases), introduces the platform-owned
22+
`sys_business_unit` (no aliases — see BREAKING above), introduces the platform-owned
1423
`sys_user_role` assignment, and seeds stack-declared `roles`/`sharingRules` into
1524
`sys_role`/`sys_sharing_rule` at boot (closes #2077). Hierarchy-relative scopes are
1625
delegated to a pluggable `IHierarchyScopeResolver` (open edition fails closed to

.objectui-sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c25964762fd63e1fefddbb87b3b9cfe6d1501927
1+
70a56e15152c6e9ff602a9ff3675900e410531d7

0 commit comments

Comments
 (0)