-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove user notification for autoupload edge cases #12413
Remove user notification for autoupload edge cases #12413
Conversation
7d73d45
to
69ca33b
Compare
/backport to stable-3.28 |
0421e7d
to
283c875
Compare
16264db
to
8bdd91a
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.
During my brief testing everything worked as expected.
app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java
Outdated
Show resolved
Hide resolved
if (item.getUploadStatus() == UploadStatus.UPLOAD_SUCCEEDED && | ||
item.getLastResult() != UploadResult.UPLOADED){ | ||
itemViewHolder.binding.uploadStatus.setVisibility(View.VISIBLE); | ||
itemViewHolder.binding.uploadStatus.setTypeface(null, Typeface.BOLD); |
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.
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.
@ZetaTom This is intended as the "same file conflict" will be displayed under the category uploaded where it should stand out to show the user that something special was done to this file, and it was not uploaded but skipped... What do you think, is this ok for you?
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.
@ZetaTom, FYI I talked with Tobias, and he also said that it should not be bold but we for now just merged and i change that in a separate PR
8bdd91a
to
323195d
Compare
I have been using this QA APK for the last four days, since this PR was mentioned in #11974 (comment) (alongside the regular Nextcloud app, v3.27.0). Interestingly, I haven't had any conflicts since. From neither app, so maybe the conflict resolution of the QA app also prevents the conflicts from happening in the regular version of the app. Moreover, when looking at the battery usage over the past few days (#12141, #11983), I see that the regular app has used 7.1% of battery, compared to 0.6% for the QA version of this PR. So the increased battery usage may indeed have something to do with the conflicts. |
@lckarssen I think the improved battery consumption has to do with this PR: #12337 that should also be included in future releases. It's good to hear that the conflicts are gone, but the changes in the QA app should not affect the normal app... |
c618848
to
e46ff29
Compare
Signed-off-by: Jonas Mayer <[email protected]>
…apter.java Co-authored-by: Tom <[email protected]> Signed-off-by: Jonas Mayer <[email protected]>
e46ff29
to
1329a88
Compare
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12413.apk |
@JonasMayerDev You were right about the fact that the QA app shouldn't affect the "old" app. I recently had a case again where some of the uploads in the old app had conflicts, whereas the QA uploads went fine. So, another 👍 for this PR. |
@lckarssen That's really good to hear! Thank you for testing this PR :) |
I've tried this build over the last week and saw this new message "Same file found on remote, skipping upload" several times, but there were also quite a few false duplicates that were not caught. Hopefully you'll revisit the idea of supporting server side file checksums to get a more robust check in the future, but in the meantime I'd like to say thank you for the work you put in! 🎉 |
@tovine Do you use a multi account setup? If there are still conflicts, I have absolutely no idea where they come from, except if you use a multi account setup. Then I would guess the conflicts come from files that are uploaded to the wrong account and collide with files from the wrong account as documented here #12516? |
No, I don't (at least not in the Nextcloud QA app). |
@AndyScherzinger would it be possible to fit this change in 3.28.0 release somehow? It's a major usability improvement for Android users. |
I don't everything has been smooth sailing for the past few days. |
File Conflicts
This PR should finally fix #11974.
When ever an upload conflict occurs, the app checks if size, creation and modification date for the local file and remote file are the same. If so, the app assumes it is the same file and skips upload and adds the upload to the uploaded successfully tab with a bold text to inform the user the upload is skipped. The user is not directly notified when such a "same file conflict" occurs.
Local file removed
The same "silent" behavior is used when a local file is not present anymore to fix error notifications where users would delete a file directly after creating it (e.g. making a photo and deleting it) in auto upload as suggested by @tobiasKaminsky.