[TECHNICAL] Changes in transfers-related code
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先跟踪两种上传类型,并确定临时副本何时创建和移除。然后检查 TransferDao 和 RemoveSourceFileWorker,核对拟议的 sourceLocation 和 tmpPath 字段以及参数变更。完成的标准是更新传输模型及相关操作,并处理好所需的单元测试和 QA 计划。
由索引模型根据 Issue 内容生成。
描述
There are several things to find out and some others to improve regarding transfers. Here we can list and discuss everything related with that.
THINGS TO FIND OUT:
- Is a temporal copy (in
.../tmp/...) created for every type of upload? (from content URI, from system) - Why are there 2 different types of upload in case a temporal copy is always made?
- In the case of uploads from content URI, when is the temporal copy removed?
THINGS TO IMPROVE:
- Create 2 different fields in database for transfers:
sourceLocation, which can be a content URI or a path, whatever is the case, andtmpPath, which is the path where the temporal files used for uploads are located. If a temporal copy is always made, both should be always not null (at least once they get copied, which can be before the creation of the transfer object) TransferDaofunctions can use@Updateor@Upsertinstead of@QueryRemoveSourceFileWorkershouldn't receive a content URI as parameter, it can be a path as well. And the key variable (KEY_PARAM_CONTENT_URIcurrently) should be located in the worker itself
TASKS
- Research (if needed)
- Create branch feature/feature_name
- Development tasks
- Implement whatever
- ...
- Implement unit tests (if needed)
- Code review and apply changes requested
- Design test plan
- QA
- Merge branch feature/feature_name into master
- 主要语言
- Kotlin
- 星标
- 4.2k
- 派生
- 3.1k
- 平均合并
- 3 天 9 小时
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
owncloud/android 的其他 Issue
-
Camera Uploads Contributions are welcome Technical
难度 2/5 1-3 小时 新手友好度 62/100
owncloud/android#5040 · 1 条评论 ·
维护者通常 1 天内回复
-
KW-related Type:bug UI / UX
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Type:bug
难度 2/5 1-3 小时 新手友好度 74/100
owncloud/android#4485 · 6 条评论 ·
维护者通常 1 天内回复
-
Contributions are welcome p3-medium Type:bug
难度 2/5 1-3 小时 新手友好度 68/100
owncloud/android#4300 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
owncloud/android#3720 · 8 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Bug Domain changed
难度 2/5 1-3 小时 新手友好度 68/100
keiyoushi/extensions-source#21225 ·
维护者通常 1 天内回复
-
👀 example 📱 iOS
难度 2/5 1-3 小时 新手友好度 88/100
hyochan/react-native-nitro-sound#871 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
evryfs/asyncapi-generator#272 ·
维护者通常 1 天内回复
-
android:plan main:plan packages:learn
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复