-
-
Notifications
You must be signed in to change notification settings - Fork 2k
#7815 Delayed synchronization #11278
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
Draft
BatPio
wants to merge
151
commits into
nextcloud:master
Choose a base branch
from
BatPio:feature/7815/delayed-synchronization-simplified-master-v2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 19 commits
Commits
Show all changes
151 commits
Select commit
Hold shift + click to select a range
c3aedb9
# Conflicts:
BatPio 0fd71a2
Delayed synchronization
BatPio 3893d8c
master merge fixes
BatPio a93c3d7
master merge fixes
BatPio 28766ef
Licences
BatPio a4d47ec
Fixes
BatPio e6dfc64
Fixes
BatPio 078c9d4
Tuning
BatPio c09cd0d
Tuning
BatPio 4709531
Merge fixes
BatPio 3efff03
Rename .java to .kt
BatPio 174b93a
New files converted to Kotlin
BatPio 76a2964
CI hints fixes
BatPio d1b033f
CI Fixes
BatPio 0572790
CI Fixes
BatPio 31bcf88
Lint fixes
BatPio adca1d0
CI fixes
BatPio fde9dcf
Lint fixes
BatPio 5dc55e0
Screenshot test fixes
BatPio afafa0c
CR fixes
BatPio 367c940
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio c9b92be
master merge fixes
BatPio 9308b11
master merge fixes
BatPio ff7a64d
Merge branch 'nextcloud:master' into feature/7815/delayed-synchroniza…
BatPio 6b04ab5
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 3d40c3a
Merge remote-tracking branch 'origin/feature/7815/delayed-synchroniza…
BatPio 501d1fe
Update app/src/main/java/com/nextcloud/client/database/entity/SyncedF…
BatPio a3c03c3
master merge fixes
BatPio b09ebba
Merge branch 'nextcloud:master' into feature/7815/delayed-synchroniza…
BatPio d0e2168
fixes
BatPio 846794e
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio b6bbea7
synchronization fix
BatPio 6e06c60
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 317ef6e
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio caf858f
Rename .java to .kt
BatPio 4dab2bf
SyncedFolderPreferencesDialogFragment migration
BatPio 3794f5c
SyncedFolderPreferencesDialogFragment moved dialog
BatPio 94af1c7
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 847ef54
SyncedFolderPreferencesDialogFragment moved dialog
BatPio a501417
Licence update
BatPio 0efe809
CI fixes
BatPio 3a84661
Fixes
BatPio 53ee162
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio 56a9002
@Suppress("TooManyFunctions")
BatPio cb417f0
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio 7b11a43
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio eefb03e
Merged with main
BatPio 6336f88
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio bc83af2
Merged with main
BatPio 954bfc0
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio 5f114c4
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 0f8f61e
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 6fda157
Merged with main
BatPio 8547450
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 8adf6fd
Merge branch 'nextcloud:master' into feature/7815/delayed-synchroniza…
BatPio 5252a7e
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio ff490d5
Merge remote-tracking branch 'origin/feature/7815/delayed-synchroniza…
BatPio 190844e
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio fb2f319
# Conflicts:
BatPio 0ddfb81
Delayed synchronization
BatPio 4d34599
master merge fixes
BatPio 31f12f7
Licences
BatPio 6ad722a
Fixes
BatPio d0c2035
Fixes
BatPio 73bd88c
Tuning
BatPio 945b615
Tuning
BatPio d7f3d07
Merge fixes
BatPio 8d15e6a
Rename .java to .kt
BatPio b88c974
New files converted to Kotlin
BatPio f846b29
CI hints fixes
BatPio 345b2ae
CI Fixes
BatPio da817ff
CI Fixes
BatPio 3ba21df
Lint fixes
BatPio cc16e85
CI fixes
BatPio d9345fd
Lint fixes
BatPio 07c2300
Screenshot test fixes
BatPio 212240a
CR fixes
BatPio dbf48f0
Update app/src/main/java/com/nextcloud/client/database/entity/SyncedF…
BatPio ed7397e
Licence update
BatPio 60208db
Fixes
BatPio ee71275
@Suppress("TooManyFunctions")
BatPio c5d1853
Merged with main
BatPio 17da386
Fix(l10n): Update translations from Transifex
nextcloud-bot 077101e
Fix(l10n): Update translations from Transifex
nextcloud-bot 1c7534e
Fix(l10n): Update translations from Transifex
nextcloud-bot c512805
Fix(l10n): Update translations from Transifex
nextcloud-bot c231a84
revert removing verification
tobiasKaminsky ea9663d
bump lib
tobiasKaminsky 281bc60
re-add lint check for translation
tobiasKaminsky ac35fcf
fix(deps): update dependency com.android.tools.build:gradle to v8.8.0
renovate[bot] 3b6eb91
Merge remote-tracking branch 'origin/feature/7815/delayed-synchroniza…
BatPio 8e51872
Fixes after CR
BatPio 4408147
DB automigration
BatPio 0fb4570
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 7778a5c
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 5d0af28
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 017e6d1
Merge remote-tracking branch 'origin/feature/7815/delayed-synchroniza…
BatPio ccafc2b
Master merge fixes
BatPio 831a557
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio c1e057a
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 0f23102
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio d5e22e8
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio d4090a5
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 72163ed
Update app/src/main/java/com/owncloud/android/ui/dialog/DurationPicke…
BatPio 5eda49c
Update app/src/main/java/com/owncloud/android/ui/dialog/DurationPicke…
BatPio e5a71e1
Update app/src/main/res/layout/duration_picker.xml
BatPio 09aa0e1
Update app/src/main/res/layout/duration_picker.xml
BatPio 3f57658
Update app/src/main/res/layout/duration_picker.xml
BatPio dc792f6
Update app/src/main/java/com/owncloud/android/datamodel/FilesystemDat…
BatPio 40470e3
Using kotlin Duration instead of TimeUtils
BatPio 19c140c
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio aca4708
DurationPicker layout fixes
BatPio 8e16f9a
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 71230f5
DurationPicker layout fixes
BatPio bae2736
DurationPicker labels
BatPio 905f08b
DurationPicker labels
BatPio c587d47
Renamed to Min file age
BatPio 56a11f5
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio f5797bb
Merge with master
BatPio cae6fc0
Renamed to Min file Age fixes
BatPio f91158e
Renamed to Min file Age fixes
BatPio f743734
DurationPicker replaced with singleChoiceItem dialog
BatPio cc60e52
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 16c1dbd
Duration singleChoiceItem dialog values tuning
BatPio 3758f1d
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 3d1bf97
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 676524a
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio d462b6a
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 3d73c5e
Master merge fixes
BatPio 1e38504
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 3fe67c9
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 2b84b20
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 886fbf1
Master merge fixes
BatPio 839e942
Master merge fixes
BatPio 7d1efc1
Merge branch 'master' into feature/7815/delayed-synchronization-fixes
BatPio c9b9614
Master merge fixes
BatPio 79ff670
Merge branch 'master' into feature/7815/delayed-synchronization-fixes
BatPio 153c4a1
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio a5cae1b
ModificationDate fix
BatPio ac56636
Merge fixes
BatPio a9fc846
Merge fixes
BatPio 4d393e7
Merge fixes
BatPio 8d72c3b
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio ef89906
Merge branch 'refs/heads/master' into feature/7815/delayed-synchroniz…
BatPio 17dad7e
Merge fixes
BatPio 18c5c35
Merge fixes
BatPio 7b83c4b
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 43112de
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 3e698ae
Merge fixes
BatPio 09a3617
Merge branch 'master' into feature/7815/delayed-synchronization-simpl…
BatPio 492940c
Merge fixes
BatPio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1,136 changes: 1,136 additions & 0 deletions
1,136
app/schemas/com.nextcloud.client.database.NextcloudDatabase/68.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+2.14 KB
(110%)
...y/debug/com.nextcloud.client.SyncedFoldersActivityIT_testSyncedFolderDialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.6 KB
...ndroid.ui.dialog.DurationPickerDialogFragmentIT_showSyncDelayDurationDialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/src/androidTest/java/com/owncloud/android/ui/dialog/DurationPickerDialogFragmentIT.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package com.owncloud.android.ui.dialog | ||
|
|
||
| import androidx.test.espresso.intent.rule.IntentsTestRule | ||
| import com.nextcloud.test.TestActivity | ||
| import com.owncloud.android.AbstractIT | ||
| import org.junit.Rule | ||
| import org.junit.Test | ||
| import java.util.concurrent.TimeUnit.DAYS | ||
| import java.util.concurrent.TimeUnit.HOURS | ||
| import java.util.concurrent.TimeUnit.MINUTES | ||
|
|
||
| class DurationPickerDialogFragmentIT : AbstractIT() { | ||
|
|
||
| @get:Rule | ||
| val testActivityRule = IntentsTestRule(TestActivity::class.java, true, false) | ||
|
BatPio marked this conversation as resolved.
Outdated
|
||
|
|
||
| @Test | ||
| fun showSyncDelayDurationDialog() { | ||
| val initialDuration = DAYS.toMillis(2) + HOURS.toMillis(8) + MINUTES.toMillis(15) | ||
| val activity = testActivityRule.launchActivity(null) | ||
|
|
||
| val fm = activity.supportFragmentManager | ||
| val ft = fm.beginTransaction() | ||
| ft.addToBackStack(null) | ||
|
|
||
| val dialog = DurationPickerDialogFragment.newInstance( | ||
| initialDuration, | ||
| "Dialog title", | ||
| "Hint message" | ||
| ) | ||
| dialog.show(ft, "DURATION_DIALOG") | ||
|
|
||
| waitForIdleSync() | ||
| screenshot(dialog.requireDialog().window!!.decorView) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
app/src/androidTest/java/com/owncloud/android/utils/TimeUtilsTest.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package com.owncloud.android.utils | ||
|
AlvaroBrey marked this conversation as resolved.
Outdated
|
||
|
|
||
| import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
| import com.owncloud.android.utils.TimeUtils.getDurationParts | ||
| import org.junit.Assert.assertEquals | ||
| import org.junit.Test | ||
| import org.junit.runner.RunWith | ||
| import java.util.concurrent.TimeUnit | ||
|
|
||
| @RunWith(AndroidJUnit4::class) | ||
| class TimeUtilsTest { | ||
|
|
||
| @Test | ||
| fun shouldGetDurationParts() { | ||
| val days = 5 | ||
| val hours = 10 | ||
| val minutes = 30 | ||
| val duration = TimeUnit.DAYS.toMillis(days.toLong()) + | ||
| TimeUnit.HOURS.toMillis(hours.toLong()) + | ||
| TimeUnit.MINUTES.toMillis(minutes.toLong()) | ||
|
|
||
| val durationParts = getDurationParts(duration) | ||
|
|
||
| assertEquals(days, durationParts.days) | ||
| assertEquals(hours, durationParts.hours) | ||
| assertEquals(minutes, durationParts.minutes) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.