android
android copied to clipboard
[New arch] Migrate pending uploads to new database
Since https://github.com/owncloud/android/issues/3426 uploads are stored in the new database. Since https://github.com/owncloud/android/issues/2858 uploads view uses the new database to retrieve the queued, in progress, succeeded, and failed uploads.
This one should be the last issue for the uploads. We need to migrate the pending uploads to the new database, and then enqueue them, so they can be uploaded with the workers. I think that Camera Uploads don't need to be enqueued again, The workers should be enqueued yet, but needs some research.
Also, we need to check that the migration to scoped storage enqueues the pending uploads.
TASKS
- [ ] Research (if needed)
- [ ] Create branch feature/feature_name
- [ ] Development tasks
- [ ] Implement a new function to generate an entity from a cursor
- [ ] Next to the migration of the files to the new database, migrate also the uploads
- [ ] Remove
UploadBehavior.fromLegacyLocalBehavior()fromRetryUploadFrom***UseCases
- [ ] Code review and apply changes requested
- [ ] Design test plan
- [ ] QA
- [ ] Merge branch feature/feature_name into master
PR
- App
- Library (if needed)