-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New arch] Camera uploads #3293
Conversation
da7c976
to
5087b52
Compare
owncloudApp/src/main/java/com/owncloud/android/workers/CameraUploadsWorker.kt
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/workers/CameraUploadsWorker.kt
Outdated
Show resolved
Hide resolved
b1596fb
to
eea4d51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
eea4d51
to
5bea766
Compare
(1) [FIXED]
Current: notification with Expected: Notification should point the user to the proper section in Pixel 2 |
(2) [FIXED]Every time the camera folder is scanned, a new notification arises with the number of uploads to be done (replacement of the progress bar). But, notification is also shown when there is no uploads to do. Would it be posible not to show it when the number is 0? if no pictures/videos were taken nothing new has happened to notify. Pixel 2 |
(3) [WONT DO]This is more a question than report The camera folder is shown as is this string handleable? in case it is, i'd get rid of the first chunk ( |
(1)
I agree that the notification should point to the proper section in 'Settings'. Related to the message, you mean to add that text to the current one? In that case, yes, we could add it, but I would not replace the current message. (2)
Of course!! We can remove the notification when nothing new is found. Up to you, I think that previously the "Syncing camera uploads" were shown independently of the files found. That's why I kept it this way. (3)
Yes, it is completely handleable. Removing the |
yes, adding the message to the current one. So, users will know that they have to do something, apart of being notified.
probably, in testing stage i enter/leave
I did not check with SD card yet... let me check before making a final decision about (3) |
(4) [FIXED]I am experiencing repetitions in uploads in different devices. That means:
I can see in the logs:
and some seconds later:
same picture is uploaded again could it be a matter of a non-updated last sync date? EDIT: repetitions only happen with the app in foreground. If the app triggers uploads in backgrounds, no repetitions happen. Strange. Pixel 2 |
about (3), i'd keep the whole string, indicating whether SDcard or internal storage is used. catching files from SD card seems to work fine. |
(5) [FIXED]
Current: Location is the one selected in step 2 Pixel 2 Android 11 |
I see that there are some problems that could be fixed with a little tweak. At the moment, each time we leave the picture uploads section or video uploads section, we enqueue the work to perform the camera uploads replacing the current one. (More info about it) This means that we cancel the current one and enqueue a new one, so it could lead to some errors when replacing the worker if the timestamp is not updated yet. The new worker could get the same timestamp as the previous one. This behavior is pretty useful during development, so we don't need to wait till the next auto-trigger, at the moment 15 minutes. But it can lead to errors, so I will change to KEEP policy. I think that this tweak could fix (4) and (5)
With this change, the notification with 0 uploads won't be shown every time we enter settings sections. But we can hide them anyway. |
5bea766
to
6df01e3
Compare
(1) Ready to test. I didn't change the message since it is too long and it won't be readable on most devices. |
(6) [FIXED]
Current: Pictures are uploaded to oC, but the original file keeps in the device Expected: Pictures are uploaded to oC and the original file is removed from device Pixel 2 Android 11 |
Everything passed. Nice new feature that will help a lot in the future! Approved |
…ra uploads are triggered via workmanager and it checks wifi connection automatically.
…ggering the camera uploads several times
…not needed to replace...
…camera uploads source folder
3413045
to
16c392f
Compare
Kudos, SonarCloud Quality Gate passed! |
Related Issues
Implements #2899
Library PR (if needed): owncloud/android-library#414
Screenshots
QA
Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_2.18.1/Camera%20uploads%20%2B%20picker.md