Repository navigation
feat: [S15.a] 迁移视频点赞点踩与公开状态 - #229
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.
需求与范围
对应 Python/FC 后端迁移 和 当前设计。本批只做 S15.a,不混入订阅、通知、MD5 或可靠任务。
迁移
/videoLike/like、/videoLike/dislike、/videoLike/getStatus的普通 Python 能力、现有 Mongo 适配与显式隔离 HTTP 装配。保持公开状态读取、旧身份/参数顺序、toggle、BSON ID/日期、整文档保存,以及记录与两次计数的独立写入和部分失败;不新增事务、业务重试或权限规则。只有显式video_reactions=True才启用,默认和生产入口不变。本次实际验证
VideoLikeHttpContractTest,VideoLikeServiceTest:12 passed / 0 skipped;生成 56 组真实 HTTP/完整 BSON 黄金样本后,再次固定文件重放通过。git diff --check通过。真正默认工厂的 GET/OPTIONS 均 404 且无数据库访问已验。未验与回退
完整 Linux 来源/可重现包及全仓回归以本 PR 当前 head 的必需 CI 为准,API/浏览器 E2E 如按既有条件 skipped 不计为通过。真实 FC/Mongo 网络、云端冷热性能和 Web/移动端实机本次未跑。
未自行合并、创建云资源、调用付费媒体处理、迁库或切流。回退本 PR 的代码提交即可(基线
cbc02da7);不恢复数据库旧备份覆盖业务数据。S15.b–e 和其他阶段剩余工作不在本 PR 内。最终提交 CI 证据(2026-10-29)
最终 head:
4d3b01ba9bc3eab4f81ef1221c93ce8a3cac16c8;CI 40842152656 已实际 success。Linux 完整 Python 1400 passed / 0 skipped / 1 条既有 warning,Linux 来源/可重现包与全部必需检查通过;API E2E、浏览器 E2E 按既有条件 skipped,未当作通过。实现提交
d2aea26b的 CI 40841352861 也已通过,结果和回退点已写入仓库接续/验收文档。最终本机、远端和 PR head 一致,工作区干净;独立临时 Mongo 已停止,测试环境/缓存/日志已清理。本 PR 保持未合并,未切生产;真实 FC 和各端实机仍未验。