simvue-io / simvue-io/python-api
Support for storage system of type `file` broken
未关闭
适合新手
还没有人认领这个 Issue。
bug
- 主要语言
- Python
- 星标
- 4
- 派生
- 1
- 平均合并
- 5 天 8 小时
- 30 天内合并 PR
- 4
描述
In simvue/factory/proxy/remote.py it tries to upload a file if url is in the JSON response to the POST to /api/artifacts. However, for the case of a storage system of type file, where you just store references to files, the client shouldn't try to upload a file.
If the url is None the upload shouldn't be attempted. Currently the client tries to upload a file to None which fails of course.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 simvue/factory/proxy/remote.py 开始,跟踪对 /api/artifacts 的 POST 的响应。验证仅当返回的 url 不为 None 时才执行文件上传路径;对于 url 为 None 的文件存储系统,done 意味着不会尝试上传,并且会保留 artifact 引用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 68/100