Skip to content

fix: 适配订阅助手 V3 统一响应并调整发布门禁 - #372

Merged
InfinityPacer merged 1 commit into
mainfrom
codex/fix/plugin-api-response-contracts
Aug 13, 2026
Merged

fix: 适配订阅助手 V3 统一响应并调整发布门禁#372
InfinityPacer merged 1 commit into
mainfrom
codex/fix/plugin-api-response-contracts

Conversation

@InfinityPacer

@InfinityPacer InfinityPacer commented Aug 13, 2026

Copy link
Copy Markdown
Owner

问题

MoviePilot V3 统一响应路由会自动包装普通业务数据。订阅助手概览接口却声明为已经封装的 Response[dict],实际返回裸业务字典,导致响应校验失败,打开配置页时显示“未知错误”。

同时,V3 发布门禁仍把首次迁移时的版本关系和固定迁移说明应用到后续版本,无法为补丁版本填写真实发布说明。

调整

  • 移除概览接口错误的统一响应声明,由主程序将业务数据包装到 data
  • 增加真实 ResponseAPIRoute 回归测试,验证最终 HTTP 响应契约
  • 将 V3 发布门禁收敛为长期约束:当前版本唯一 history、非空发布说明、旧索引 v3=false
  • 发布 SubscribeAssistantEnhanced v0.7.1
  • changelog:适配 MoviePilot V3 统一响应封装,避免打开配置页时提示未知错误

验证

  • .githooks/pre-push
  • CI 门禁测试:44 passed, 1 skipped
  • V3 插件测试:1376 passed
  • V2 插件测试:81 passed
  • SubscribeAssistantEnhanced 覆盖率门禁:line 93.23%,method 98.01%
  • compileall、JSON 校验、git diff --check

@InfinityPacer
InfinityPacer enabled auto-merge (squash) August 13, 2026 17:06
@InfinityPacer
InfinityPacer merged commit 7448a7f into main Aug 13, 2026
4 checks passed
@InfinityPacer
InfinityPacer deleted the codex/fix/plugin-api-response-contracts branch August 13, 2026 17:07
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