-
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
Use public preview api to retrieve thumbnails #3017
Conversation
owncloudApp/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
Outdated
Show resolved
Hide resolved
7b871e4
to
7204896
Compare
Let's QA this one |
(1)I've checked out the requests and they have the following form:
it contains also an
should we include also the |
(2) [DONE]@abelgardep as you commented me, this part of the code:
should be changed, since not only images contain a thumbnail. |
(3) [WONT FIX]
Current: Thumbnail does not change Same behaviour works fine with images Pixel 2 Android 11 |
(1) -> etag is sent fro mthe moment it is stored in the DB. |
b34f119
to
4ec916e
Compare
I think that |
About (2) and (3) Thumbnails of txt files are correctly updated only if the file is not downloaded, and with a browsing back and forth. That means, with steps:
Result: thumbnail not refreshed
Result: thumbnail is now refreshed
Result: thumbnail not refreshed
Result: thumbnail not refreshed Expected: refresh should realise on the new version. Downloaded files must refresh also the thumbnail NOTE: Updating an non-downloaded image, makes the thumbnail to upload with only a refresh. If the image is downloaded, it runs into another issue (#3021). The current report is oriented to txt files behaviour. Pixel 2 Android 11 |
That's the behaviour since the beginning. If the file is available locally, we extract the thumbnail from the local file. The problem here is that the local thumbnail extraction seems not to work with txt files. So, the thumbnail is not updated. |
So, we have two different issues regarding previews:
Any solution for this? getting rid of the local thumbnails and use only remote thumbnails, even when the file is locally downloaded? it will increase the number of request, but is any case we are going to request preview for every file. This will be addressed in a different ticket, for sure. Which are the expectations @michaelstingl? |
We only request thumbnails the first time and then if something changes in the server, but not always. If file is available locally we don't request for new thumbnails at the moment. |
yes, for this reason, a posible solution would be requesting always the remote thumbnails, so that the preview is always updated. But first, we have to know the expectations for this feature. |
After discussions and calls, the final conclusion is that thumbnail and preview updates will need more elaboration. It will be moved to another issue (#3024): Goals of the current PR:
|
4ec916e
to
79c3d73
Compare
Implements #2926 and #2927
QA
Bugs & improvements: