-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improve av. offline performance #4354
Conversation
ac5eee0
to
867bcde
Compare
867bcde
to
34621e4
Compare
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.
Some changes here to avoid code repetition @Aitorbp
owncloudData/src/main/java/com/owncloud/android/data/files/repository/OCFileRepository.kt
Outdated
Show resolved
Hide resolved
owncloudData/src/main/java/com/owncloud/android/data/files/repository/OCFileRepository.kt
Outdated
Show resolved
Hide resolved
507729a
to
93b2c3d
Compare
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 now
c05fdf5
to
d86367b
Compare
QA checks: Feature:
Regressive sync use cases
|
(1) [FIXED]Check the following steps out. We are losing the sync condition in the basic av. offline case.
Current: not posible to preview Expected: file displayed. It is available offline, so the preview must be always available. When the folder was set as av. offline in step 2. all content inside had to be synced. It doesn't Pixel 2 Android 11 |
With the change of refresh functionality, from now on only files that have been modified will be returned. This means that the local etag and the server etag are different. With this known, we are presented with the case discovered by @jesmrec. This means if we delete the local copy and we want to make a set available offline, it will compare between two equal etags, as the file on the server has not changed and the local etag has remained as it was before deleting it. So the condition has not detected that there was a change if we make the files available offline after deleting the content of the folder locally. This means that the download is not done even if it is available offline. If we take the connection offline and enter a file it will not be available. So to solve this we must set the |
55082d0
to
b1cad6f
Compare
(2) [FIXED]may be related with (1)
Current: file not opened Expected: file should be opened. Pull to refresh action should trigger a sync in the av. offline folder because the etag changed after new item was added inside. Pixel 2 Android 11 |
owncloudData/src/main/java/com/owncloud/android/data/files/repository/OCFileRepository.kt
Outdated
Show resolved
Hide resolved
(3) [FIXED]
Current: changes are not synced back to the server. Even pulling to refresh, changes not pushed Expected: just entering the to the containing folder, changes are synced back to the server (checked current Pixel 2 Android 11 |
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
Go ahead with this! approved. |
b4377ce
to
5f3759d
Compare
5f3759d
to
1baca2c
Compare
Related Issues
App: #4197
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (if required)QA
Checks:
Reports: