Repository navigation
feat: G-23 stage 3 (custom property config write side) - #187
Merged
Merged
Conversation
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.
内容
G-23 自定义属性阶段 3:写侧
customPropertyConfig(14 个文件 +1847/−72)。阶段 1–2 已在 #163 落地(读侧解析、列表与详情页);本批补创建/编辑的配置写侧。{ config: { multiSelect, values } })、format({ config: <format id> })、实体引用({ config: [类型名数组] })、table({ config: { columns } })。toCustomPropertyPayload顶层剔除五个条件字段,propertyType: { id, type: 'type' },displayName || undefined,omitBy(isUndefined),与官方CustomPropertiesPanel.utils.ts同构。updateCustomPropertyByName(官方metadataTypeAPI.ts同款):先 GET 最新类型副本 → 按名找下标 →PATCH /v1/metadata/types/{id}(application/json-patch+json),test守卫 + 仅 400 重试、最多 3 次;diff 只含customPropertyConfig | description | displayName。不再走 PUT 全量(PUT 会带上 propertyType 并覆盖并发改动)。tag);columns 必填、1–3 列、__row_id__排除;实体引用编辑只增不减;切换 propertyType 时清空上一类型的条件值。localeCompare排序(不再依赖静态 authored 顺序)。依据
REVIEW-W2-G23-S3.md(APPROVE + 12 条实施条件),基线主干0bad98161,官方 pina3012259ca。docs/decisions/2026-11-08-custom-properties-s3-config-write-side.md(单行ADR:引用)。team和user。测试
残留
useEntityPermissionshook、无ResourceEntity枚举,阶段 4 须经 store/permissionFlags接线或新建 hook;非管理员调GET /v1/permissions/type的线上验证仍待阶段 4。