feat(templates): migrate remaining 8 templates to @objectstack 15.1.1#86
Merged
Conversation
Follow-up to #85 (expense): migrate todo, contracts, hr, helpdesk, procurement, project, content and compliance from @objectstack 11.2.0 to 15.1.1, so the whole repo is now on 15.x. (The `all` aggregator's deps are bumped too.) Breaking changes migrated (11 → 15), same pattern as #85 plus a few template-specific ones: - ObjectSchema `compactLayout` → `highlightFields` (ADR-0085). - Explicit `sharingModel` (OWD) on every object (ADR-0090 D1, fail-closed): reference/taxonomy objects (category, framework, template, channel, topic, vendor, department, team, sla_policy, kb_article, competitor, resource, party) → 'public_read'; all owner-scoped records → 'private'. - Stack-level `roles` → flat `positions` (ADR-0090 D3, no parent hierarchy). - Sharing-rule share-with types: `role_and_subordinates` / `role` → `position` (positions are flat, so the "and subordinates" grant collapses to the base position) — content, hr. - Reserved-word vocabulary (ADR-0090 D3): `pm_resource.role` field + its "Role" label are reserved; renamed the field to `job_function` (label "Function") and updated its view, seed data and translations — project. Gate: pnpm typecheck ✓ · pnpm build ✓ (9/9 templates) · pnpm format:check ✓. Denormalized rollups (e.g. total_amount) are unchanged — converting them to live rollups now that framework#1867 is fixed remains a follow-up (#84). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BZguyAaQbyUpwMZ2gMLaAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
接续 #85(expense),把其余 8 个模板(todo, contracts, hr, helpdesk, procurement, project, content, compliance)从
@objectstack11.2.0 升到 15.1.1。至此整仓全部模板都在 15.x(all聚合器依赖也一并 bump)。迁移的破坏性变更(11 → 15)
与 #85 同一套路,外加几处模板特有的:
compactLayout→highlightFields(ADR-0085)sharingModel(ADR-0090 D1,fail-closed)public_read;其余按 owner →privateroles→ 扁平positions(ADR-0090 D3)role_and_subordinates/roleshare-with 类型 →position(positions 扁平,"and subordinates" 收敛为基准 position)pm_resource.role字段名与 "Role" label 是保留词job_function(label "Function"),同步改 view / 种子数据 / 翻译 —— project验收(本仓 AGENTS.md gate,本地全绿)
pnpm typecheck✓pnpm build✓(9/9 模板✓ Build complete)pnpm format:check✓不在本 PR 范围
反规范化 rollup(如
total_amount)保持原样;既然 framework#1867 已修,把它们换成 live rollup(原生summary字段 / 嵌套写钩子)仍是后续,在 #84 跟踪。关联:#84、#85、framework#1867。
🤖 Generated with Claude Code
Generated by Claude Code