[TECHNICAL] Changes in transfers-related code

オープン
#4,461 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
kotlin
領域
database, mobile

調査の方向性

まず2種類のアップロードを追跡し、一時コピーがいつ作成され、削除されるのかを特定します。次に、提案されている sourceLocation フィールドと tmpPath フィールド、およびパラメータの変更に照らして、TransferDao と RemoveSourceFileWorker を調査します。転送モデルと関連する操作が更新され、必要なユニットテストと QA 計画に対応できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Needs info Technical

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, and tmpPath, 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)
  • TransferDao functions can use @Update or @Upsert instead of @Query
  • RemoveSourceFileWorker shouldn't receive a content URI as parameter, it can be a path as well. And the key variable (KEY_PARAM_CONTENT_URI currently) 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時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

owncloud/android のほかの issue

owncloud/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。