MerginMaps / MerginMaps/python-api-client

get_file_diff doesn't work for projects that changed schema

未关闭
#196 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。