Skip to content

Conversation

@ashpieboop
Copy link
Contributor

@ashpieboop ashpieboop commented Nov 25, 2019

Sometimes, there are multiple versions of the QA app that share the same database versions for different migrations. When the android backup feature is enabled by the user's devices, this leads to invalidly restored database state and then crashes that would normally not happen in production.

This PR simply disables the android backup feature for the QA version of the app.

(as seen in #4788)

Signed-off-by: Alice Gaudon <alice@gaudon.pro>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@codecov
Copy link

codecov bot commented Nov 25, 2019

Codecov Report

Merging #4885 into master will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4885      +/-   ##
============================================
+ Coverage     17.62%   17.65%   +0.02%     
  Complexity        3        3              
============================================
  Files           383      383              
  Lines         32509    32509              
  Branches       4587     4587              
============================================
+ Hits           5731     5740       +9     
  Misses        25857    25857              
+ Partials        921      912       -9
Impacted Files Coverage Δ Complexity Δ
...com/owncloud/android/ui/activity/BaseActivity.java 30.95% <0%> (-4.77%) 0% <0%> (ø)
.../java/com/owncloud/android/utils/DisplayUtils.java 23.62% <0%> (-1.27%) 0% <0%> (ø)
...oud/android/operations/RefreshFolderOperation.java 56.95% <0%> (-0.44%) 0% <0%> (ø)
...owncloud/android/ui/activity/SettingsActivity.java 38.7% <0%> (+0.19%) 0% <0%> (ø) ⬇️
...ncloud/android/ui/fragment/OCFileListFragment.java 25.57% <0%> (+0.27%) 0% <0%> (ø) ⬇️
...cloud/android/ui/activity/FileDisplayActivity.java 20.24% <0%> (+0.32%) 0% <0%> (ø) ⬇️
...owncloud/android/ui/adapter/OCFileListAdapter.java 30.05% <0%> (+1.13%) 0% <0%> (ø) ⬇️
...va/com/owncloud/android/ui/SquareLinearLayout.java 50% <0%> (+50%) 0% <0%> (ø) ⬇️

@tobiasKaminsky
Copy link
Member

I just disabled one lint check.

Thanks for the fix and the idea!

@ashpieboop
Copy link
Contributor Author

No problem!

@nextcloud-android-bot
Copy link
Collaborator

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11744.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

312

Lint

TypemasterPR
Warnings5959
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings26
Correctness Warnings70
Internationalization Warnings13
Malicious code vulnerability Warnings5
Multithreaded correctness Warnings9
Performance Warnings119
Security Warnings44
Dodgy code Warnings136
Total422

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings26
Correctness Warnings70
Internationalization Warnings13
Malicious code vulnerability Warnings5
Multithreaded correctness Warnings9
Performance Warnings119
Security Warnings44
Dodgy code Warnings136
Total422

@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.10.0 milestone Nov 26, 2019
@AndyScherzinger
Copy link
Member

All checks ✅

merging...

❤️ Thanks for the fix @ArisuOngaku 🥇

@AndyScherzinger AndyScherzinger merged commit 99d9a69 into master Nov 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the disable_android_backup_qa branch November 26, 2019 07:47
tobiasKaminsky added a commit that referenced this pull request Nov 27, 2019
e92daa2 Merge pull request #4853 from nextcloud/migrate-simple-cases-of-get-current-account-to-get-user
99d9a69 Merge pull request #4885 from nextcloud/disable_android_backup_qa
10960bf [tx-robot] updated from transifex
9f24b25 [tx-robot] updated from transifex
b7876c4 disable GoogleAppIndexingWarning lint check
11687c6 Drone: update FindBugs results to reflect reduced error/warning count [skip ci]
80fb800 Merge commit 'a7eb7148fa0ceb42981366eb2ddcf0ff921e6a55'
b91136c Disable android backup on the QA app
a7eb714 Migrate simple cases of getCurrentAccount() to getUser()
6249a06 daily dev 20191123
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.

5 participants