Skip to content
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

Improvements in sync conflict resolution #9691

Merged
merged 4 commits into from
Jan 17, 2022
Merged

Conversation

AlvaroBrey
Copy link
Member

@AlvaroBrey AlvaroBrey commented Jan 13, 2022

Rebased and fixed version of #9036

Fixes #7905

Thanks @wknds

  • Tests written, or not not needed

@AlvaroBrey
Copy link
Member Author

/rebase

@AlvaroBrey
Copy link
Member Author

/rebase

@AlvaroBrey
Copy link
Member Author

/rebase

@AlvaroBrey
Copy link
Member Author

/rebase

wknds and others added 4 commits January 17, 2022 13:30
…olving file conflicts (keep server) correctly. 2) The check involves FileUploader.LOCAL_BEHAVIOUR_DELETE, intended use is for media file uploads.
…teLocal

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9691.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@nextcloud-android-bot
Copy link
Collaborator

Codacy

Lint

TypemasterPR
Warnings124124
Errors00

SpotBugs (new)

Warning Type Number
Bad practice Warnings 28
Correctness Warnings 82
Experimental Warnings 1
Internationalization Warnings 9
Malicious code vulnerability Warnings 57
Multithreaded correctness Warnings 9
Performance Warnings 69
Security Warnings 29
Dodgy code Warnings 358
Total 642

SpotBugs (master)

Warning Type Number
Bad practice Warnings 28
Correctness Warnings 82
Experimental Warnings 1
Internationalization Warnings 9
Malicious code vulnerability Warnings 57
Multithreaded correctness Warnings 9
Performance Warnings 69
Security Warnings 29
Dodgy code Warnings 358
Total 642

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #9691 (c5b75f6) into master (fd22f9f) will decrease coverage by 0.39%.
The diff coverage is 16.00%.

@@            Coverage Diff             @@
##           master    #9691      +/-   ##
==========================================
- Coverage   31.52%   31.13%   -0.40%     
==========================================
  Files         505      505              
  Lines       38573    38581       +8     
  Branches     5382     5382              
==========================================
- Hits        12160    12012     -148     
- Misses      24604    24761     +157     
+ Partials     1809     1808       -1     
Impacted Files Coverage Δ
...wncloud/android/files/services/FileDownloader.java 16.49% <0.00%> (ø)
...loud/android/ui/activities/ActivitiesActivity.java 0.00% <0.00%> (ø)
.../android/ui/activity/ConflictsResolveActivity.java 24.48% <0.00%> (-0.52%) ⬇️
.../java/com/owncloud/android/utils/DisplayUtils.java 31.87% <28.57%> (-0.26%) ⬇️
...ava/com/owncloud/android/files/FileMenuFilter.java 51.45% <0.00%> (-12.45%) ⬇️
...n/java/com/owncloud/android/utils/BitmapUtils.java 40.44% <0.00%> (-8.99%) ⬇️
...owncloud/android/ui/adapter/OCFileListAdapter.java 38.10% <0.00%> (-8.66%) ⬇️
...loud/android/datamodel/ThumbnailsCacheManager.java 32.84% <0.00%> (-6.21%) ⬇️
.../third_parties/daveKoeller/AlphanumComparator.java 80.95% <0.00%> (-2.39%) ⬇️
...ncloud/android/ui/fragment/OCFileListFragment.java 36.71% <0.00%> (-2.15%) ⬇️
... and 7 more

@AlvaroBrey AlvaroBrey merged commit 92f3b6d into master Jan 17, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/sync-conflict branch January 17, 2022 19:03
@AlvaroBrey AlvaroBrey added this to the Nextcloud App 3.19.0 milestone Jan 17, 2022
@Dulanic
Copy link

Dulanic commented Jan 18, 2022

Seems to cause new issues. Now it sends notifications but if you press to resolve, it says can't open conflict resolution.
Screenshot_20220117-190237

Screenshot_20220117-190247_2

logs.txt

@AlvaroBrey
Copy link
Member Author

Seems to cause new issues. Now it sends notifications but if you press to resolve, it says can't open conflict resolution.

logs.txt

That is most likely a separate issue (#9337 or #9026). Do you have app protection enabled? Anyway please open a bug report if needed rather than commenting on the PR. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot get rid of file upload conflict notification
5 participants