You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When to use: Multi-organization SaaS where every row is scoped to an organization. Enable by setting OS_MULTI_ORG_ENABLED=true and installing @objectstack/organizations; …
现象
content/docs/plugins/packages.mdx:335(@objectstack/organizations (enterprise)小节):这是本仓库唯一还把
OS_MULTI_ORG_ENABLED当作启用开关教给读者的地方(其余页面已经改成OS_TENANCY_POSTURE)。为什么是缺陷
packages/types/src/env.ts:89-122逐字写明该布尔已被 DEMOTED(ADR-0105 D1):OS_TENANCY_POSTURE才是权威开关,legacy 布尔只在 posture 未设置时作为回落输入被读一次。两条后果,读者照本页做就会踩:groupposture。resolveTenancyPosture()里OS_MULTI_ORG_ENABLED=true只能派生出isolated;group(organization_id IN accessible_org_ids,ADR-0105 D2 的 union/MOAC 语义)没有任何 legacy 布尔拼法可以选中。本页把 multi-org 的入口写成一个只能到达三分之一 posture 的开关。organization/create在纯 posture 部署上 403)。content/docs/deployment/tenancy-modes.mdx已有一整段 "Never gate application code onOS_MULTI_ORG_ENABLED" 与本页对着写。建议改法(一页之内)
把该 bullet 的开关换成
OS_TENANCY_POSTURE=group|isolated,legacy 布尔至多以「仍被兼容读取」的身份带一句或直接不提,并链到/docs/deployment/tenancy-modes(posture 解析表、degraded 引导都在那里,不必在插件页重复)。OS_ALLOW_DEGRADED_TENANCY=1那半句是准确的,可保留。来源
#5746(
content/docs/protocol/objectql/schema.mdx同病)修复过程中扫到的邻页同类问题,按 Prime Directive #10 单独登记,未在那个 PR 里顺手改(文件面只限一页)。