Skip to content

feat(peer): 发布运行应用版本 - #118

Merged
xiaoland merged 4 commits into
mainfrom
feat/peer-runtime-identity
Sep 22, 2026
Merged

xiaoland merged 4 commits into
mainfrom
feat/peer-runtime-identity

Conversation

@xiaoland

Copy link
Copy Markdown
Member

目标

为 Settings / Peers 分离提供稳定的 Peer 运行身份:管理界面可以展示实际 Peer 应用版本,同时保留用户维护的名称与配置。

修改

  • 在 Peer 数据库协议中新增可空的 application_version
  • Core 注册时发布 core-py 应用版本,只在首次创建身份时使用默认名称
  • 重新注册仅刷新运行时拥有的应用版本与配置 schema,不覆盖名称、配置或标签
  • 更新数据库契约 revision、readiness、迁移完整性记录和部署说明
  • 同步 docs#31 中的共享 Peer 身份契约

验证

  • pdm run check(14 passed,62 skipped)
  • 任务专属 PostgreSQL 上 upgrade → downgrade → upgrade
  • pdm run db:ready --profile development --json
  • tests/peer/integration/test_peer_runtime.py(1 passed)
  • 验证迁移后既有 Peer 行保留 application_version = NULL,待运行时上线自然补齐

依赖

与 InKCre/docs#31 一起合并;client-web 的同一功能组会消费这个契约。

@xiaoland
xiaoland marked this pull request as ready for review September 22, 2026 15:41
@xiaoland
xiaoland merged commit 9e57034 into main Sep 22, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
preview — 6c08c810 Deployed Sep 22, 2026 by xiaoland via Retire preview resources #350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant