-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Cancel upload from notification #3563
Conversation
1f49eeb
to
cdd0fcc
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! 👍🏾
i tested with 2 devices. on one device, there is this an exception whenever i cancel the upload (progress bar stops and notification remains):
on the other device, it works, but it's totally slow in response (however this might not be caused by this PR. starting the upload is also slow, might have to be improved by using coroutineWorker with "setExpedited") |
Hi @mahibi 👋 Device: Oneplus 9RT (Android 13) Record_2024-01-16-20-04-45.2.mp4Device: Google Pixel 6a (Android 13) screen-20240116-195338.2.mp4
But, I believe the above exception could be happening because the upload folder is deleted (where the chunks are uploaded) but the chunks upload logic still uploading some chunks even if the worker has been cancelled and that is what raising the exception.
Do you want me to handle this too in this PR or should I keep this for another one? |
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
cdd0fcc
to
6f88c8b
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/3563-talk.apk |
I merged for now. If the above exception appears again we can fix with a followup PR
if you would like, feel free to give it a try with another PR 👍 |
Great 👍, will definitely pick this up |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
Fix: #2374
🖼️ Screenshots
Record_2024-01-08-21-51-44.mp4
Functionality Check
🏁 Checklist
/backport to stable-xx.x