Skip to content

feat: support AIRegistry Skill redraft and public scope - #350

Merged
learnerjohn merged 1 commit into
higress-group:mainfrom
Sunrisea:feat/skill-redraft
Oct 10, 2026
Merged

learnerjohn merged 1 commit into
higress-group:mainfrom
Sunrisea:feat/skill-redraft

Conversation

@Sunrisea

Copy link
Copy Markdown
Collaborator

Description

  • 将 AIRegistry Java SDK 升级至 1.1.0,接入 RedraftSkillVersion。
  • 管理后台为 AI 治理中心 Skill 增加“重新编辑”按钮和确认弹窗,将已审核版本退回草稿后,可重新上传并提交审核。
  • 新增 canRedraft 能力字段,仅远端原始状态为 reviewed 时允许退回草稿;保留旧版 reviewing + 审核结果的展示兼容,避免误开放操作。
  • 隐藏历史审核流水的结果,避免退回草稿后继续展示过期审核信息。
  • AI 治理中心 Skill 上传、普通发布和强制发布成功后,尝试通过 UpdateSkillScope 设置为 PUBLIC。公开设置失败仅记录脱敏日志,不影响主操作结果、首次产品绑定和发布状态同步。

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)

Testing

  • 后端测试:./mvnw -B -pl himarket-server -am test,191 项全部通过。
  • 后端 Spotless 检查通过。
  • 管理后台 npm run format:check、npm run lint、npm run type-check 全部通过。
  • 管理后台 npm run build 通过。
  • git diff --check 通过。
  • 真实 AI 治理中心环境端到端验证。

测试覆盖 reviewed 状态、旧版审核状态兼容、重复退回草稿、非法状态、Nacos 排除、远端冲突、上传和发布失败,以及公开设置失败后的产品绑定和状态同步。OSS 上传测试使用本地 HTTP 服务,其余云端调用使用 mock。

Checklist

  • Code is self-reviewed
  • No breaking changes
  • Commit includes DCO sign-off
  • All CI checks pass

Additional Notes

  • 新增 redraft 和自动设置 PUBLIC 的行为仅针对 AI 治理中心,Nacos 行为保持不变。
  • PUBLIC 为 Skill 级可见性,不改变审核、版本发布或门户发布流程;不批量修改历史 Skill。
  • 不修改 SDK 默认超时及重试配置。
  • 无数据库迁移,无独立文档变更。

Add reviewed-state redraft support in the backend and admin console while preserving legacy status compatibility. Upgrade the AIRegistry SDK to 1.1.0 and set Skill scope to PUBLIC after successful upload or publication on a best-effort basis.

Signed-off-by: 濯光 <zhuoguang.zt@alibaba-inc.com>
@learnerjohn
learnerjohn self-requested a review October 10, 2026 06:34
@learnerjohn
learnerjohn merged commit ede9a2f into higress-group:main Oct 10, 2026
15 checks passed
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.

2 participants