MerginMaps / MerginMaps/python-api-client
get_file_diff doesn't work for projects that changed schema
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- Python
- 星标
- 23
- 派生
- 12
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 7
描述
If you change the schema there is no diff in file_history, but this version is still in get_versions_with_file_changes returned list.
Probably for such case the function should return exception that diff is not supported for this version range.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 get_file_diff 和 get_versions_with_file_changes,重点关注当 schema 变更不留下任何 diff 时如何处理 file_history 条目。重现一个包含 schema 变更的版本范围,然后验证不受支持的范围会产生预期的异常,而不是尝试执行文件 diff。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100