From 81705a525809f0277354ae96d9c6ca3d976238fe Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Sun, 21 Jun 2026 16:08:14 +0800 Subject: [PATCH 1/2] chore: bump objectui to 70a56e15152c fix(registry): silence bare-name collision warnings; keep display owners (#1855) objectui@70a56e15152c6e9ff602a9ff3675900e410531d7 --- .objectui-sha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.objectui-sha b/.objectui-sha index 150c429c73..29e60c41dc 100644 --- a/.objectui-sha +++ b/.objectui-sha @@ -1 +1 @@ -c25964762fd63e1fefddbb87b3b9cfe6d1501927 +70a56e15152c6e9ff602a9ff3675900e410531d7 From 1bd73492659332412e4006eeb950198263903025 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Sun, 21 Jun 2026 16:31:34 +0800 Subject: [PATCH 2/2] chore(release): make the sys_department system-object rename a breaking major (10.0.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .changeset/adr-0057-erp-authz.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.changeset/adr-0057-erp-authz.md b/.changeset/adr-0057-erp-authz.md index c31847699f..c060e297f3 100644 --- a/.changeset/adr-0057-erp-authz.md +++ b/.changeset/adr-0057-erp-authz.md @@ -1,16 +1,25 @@ --- +"@objectstack/platform-objects": major +"@objectstack/plugin-sharing": major "@objectstack/spec": minor "@objectstack/plugin-security": minor -"@objectstack/plugin-sharing": minor "@objectstack/runtime": minor -"@objectstack/platform-objects": minor "@objectstack/objectql": minor "@objectstack/plugin-approvals": patch --- +**BREAKING:** the system object `sys_department` is renamed to `sys_business_unit` +— object + member table (`sys_department_member` → `sys_business_unit_member`), +fields, and i18n — with **no compatibility alias**. Any deployment holding +`sys_department` rows, or metadata that references the object by name (lookups, +list views, queries, sharing/approval scopes), must migrate to `sys_business_unit`. +A renamed shipped system object is a breaking change to the platform's public +data surface, so this lands as a **major**. Verified per ADR-0059's pre-publish +hotcrm gate: no published downstream consumer references the old name. + ADR-0057 — ERP authorization core. Adds permission-grant access DEPTH (`own`/`own_and_reports`/`unit`/`unit_and_below`/`org`), renames `sys_department` -→ `sys_business_unit` (pre-launch, no aliases), introduces the platform-owned +→ `sys_business_unit` (no aliases — see BREAKING above), introduces the platform-owned `sys_user_role` assignment, and seeds stack-declared `roles`/`sharingRules` into `sys_role`/`sys_sharing_rule` at boot (closes #2077). Hierarchy-relative scopes are delegated to a pluggable `IHierarchyScopeResolver` (open edition fails closed to