The Wayback Machine - https://web.archive.org/web/20201012060008/https://github.com/nextcloud/android-library/pull/502
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

Make it possible to leave upload retries enabled #502

Merged
merged 1 commit into from Sep 8, 2020
Merged

Conversation

@grote
Copy link
Member

@grote grote commented Sep 4, 2020

The retries were disabled in 0bfc385 and only for upload operations. It is not clear anymore why that happens and if that is still useful. This PR at least gives us the possibility to step by step experiment with retries enabled. The first use of that will be made by the DocumentsProvider's uploads.

String mimeType,
String requiredEtag,
String lastModificationTimestamp,
boolean disableRetries) {

This comment has been minimized.

@tobiasKaminsky

tobiasKaminsky Sep 7, 2020
Member

Somehow there are too many tabs, or?

This comment has been minimized.

@grote

grote Sep 7, 2020
Author Member

The formatting in this library is a bit of a mess (mix of tabs and spaces) and I didn't want to auto-format everything. The above parameters seem to use spaces instead of tabs. I moved the new one to spaces as well.

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

@tobiasKaminsky tobiasKaminsky force-pushed the upload-retries branch from c7e9071 to a5986af Sep 7, 2020
@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

Lint

TypemasterPR
Warnings11
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126
@codecov
Copy link

@codecov codecov bot commented Sep 7, 2020

Codecov Report

Merging #502 into master will decrease coverage by 0.02%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #502      +/-   ##
==========================================
- Coverage   39.66%   39.64%   -0.03%     
==========================================
  Files         136      136              
  Lines        5955     5971      +16     
  Branches      785      789       +4     
==========================================
+ Hits         2362     2367       +5     
- Misses       3236     3245       +9     
- Partials      357      359       +2     
Impacted Files Coverage Δ
...ources/files/ChunkedFileUploadRemoteOperation.java 22.95% <33.33%> (+0.53%) ⬆️
...lib/resources/files/UploadFileRemoteOperation.java 48.86% <60.00%> (-2.42%) ⬇️
@grote grote force-pushed the upload-retries branch 2 times, most recently from 0c489bd to 4a77d4a Sep 7, 2020
@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

Lint

TypemasterPR
Warnings11
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126
@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 7, 2020

The retries were disabled in 0bfc385 and only for upload operations.
It is not clear anymore why that happened and if that is still useful.

Signed-off-by: Torsten Grote <t@grobox.de>
@tobiasKaminsky tobiasKaminsky force-pushed the upload-retries branch from 4a77d4a to cb84d08 Sep 8, 2020
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 8, 2020 — with Codacy Production

Codacy Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- src/main/java/com/owncloud/android/lib/resources/files/ChunkedFileUploadRemoteOperation.java  2
- src/main/java/com/owncloud/android/lib/resources/files/UploadFileRemoteOperation.java  2
         

See the complete overview on Codacy

@nextcloud-android-bot
Copy link
Collaborator

@nextcloud-android-bot nextcloud-android-bot commented Sep 8, 2020

Lint

TypemasterPR
Warnings11
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings14
Correctness Warnings38
Internationalization Warnings6
Malicious code vulnerability Warnings7
Multithreaded correctness Warnings3
Performance Warnings17
Security Warnings1
Dodgy code Warnings40
Total126
@tobiasKaminsky tobiasKaminsky merged commit ccd420e into master Sep 8, 2020
9 of 10 checks passed
9 of 10 checks passed
Validation
Details
Validation
Details
codecov/project Codecov Report
Details
Client change check No change required
Details
Codacy/PR Quality Review Up to standards. A positive pull request.
Details
DCO DCO
Details
codecov/patch Codecov Report
Details
continuous-integration/drone/pr Build is passing
Details
fixupbot No fixup commits found. The commit history is clean 👍
Details
task-list-completed 0 / 0 tasks completed
Details
@delete-merged-branch delete-merged-branch bot deleted the upload-retries branch Sep 8, 2020
@AndyScherzinger AndyScherzinger added this to the NC Android lib 2.4.0 milestone Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.