-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Do not run insertAllDBEntriesForSyncedFolder directly #5885
Conversation
a8f89ce
to
b6cd1f7
Compare
/backport to stable-3.11 |
Unit test failed, but no output was generated. Maybe a preliminary stage failed. |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/13549-IT |
@tobiasKaminsky This will conflict with #5879 where |
True. |
b6cd1f7
to
8ed1709
Compare
Here is an overview of what got changed by this pull request: Complexity decreasing per file
==============================
+ src/main/java/com/owncloud/android/utils/FilesSyncHelper.java -1
See the complete overview on Codacy |
@tobiasKaminsky This patch cannot be applied there as we're using |
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
} | ||
} | ||
|
||
FilesSyncHelper.startFilesSyncJobNow(null); | ||
preferences.setAutoUploadInit(true); |
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.
@tobiasKaminsky I'm not sure what this flag is supposed to do in this context?
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.
No idea neither, but it is just c&p, so should not be problematic…
8ed1709
to
e55fdd1
Compare
Lint
SpotBugs (new)
SpotBugs (stable-3.11)
SpotBugs increased! |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/13584-IT |
e55fdd1
to
9345102
Compare
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13595.apk |
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/13595-IT |
Lint
SpotBugs (new)
SpotBugs (stable-3.11)
SpotBugs increased! |
…yncJob Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
9345102
to
c4a1c7a
Compare
The backport to stable-3.11 failed. Please do this backport manually. |
Fix #5882
Previously we ran insertAllDBEntriesForSyncedFolder on UI, which causes a lag on very big folders.
Now we use FilesSyncJob, which does the same, but is a Job, which runs in background.
@ezaquarii @AndyScherzinger
Signed-off-by: tobiasKaminsky tobias@kaminsky.me
Testing
Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.
unit tests
instrumented tests
UI tests