Cache preview and thumbnail images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Invalid
|
Undecided
|
Jussi Pakkanen | ||
unity8 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently the Dash always reloads preview images. This includes both web results such as those from Amazon or local files such as images. It should cache those to reduce networks and battery usage. It should follow appropriate standards such as the freedesktop.org thumbnailing standard or the Media Art storage standard.
There should be only one centralised location where thumbnails are fetched and stored and that should be in the dash. This is because we want to do load images lazily, and the dash is the one piece that shows images to the user.
An example data flow would go like this:
- mediascanner scans the user's music files
- it looks up album art download addresses from last.fm
- it stores the address somewhere
- user types a music query
- the music scope returns results whose metadata list the download address
- dash loads the actual images as necessary and stores them in the cache
Related branches
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Florian Boucault: Pending requested
-
Diff: 123 lines (+77/-2)4 files modifiedsrc/CMakeLists.txt (+1/-0)
src/CachingNetworkManagerFactory.cpp (+34/-0)
src/CachingNetworkManagerFactory.h (+37/-0)
src/main.cpp (+5/-2)
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Michał Sawicz: Approve
- Florian Boucault: Pending requested
-
Diff: 165 lines (+118/-2)4 files modifiedsrc/CMakeLists.txt (+1/-0)
src/CachingNetworkManagerFactory.cpp (+62/-0)
src/CachingNetworkManagerFactory.h (+50/-0)
src/main.cpp (+5/-2)
Changed in unity8: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → Albert Astals Cid (aacid) |
Changed in unity8: | |
status: | Confirmed → Triaged |
Changed in unity8 (Ubuntu): | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Jussi Pakkanen (jpakkane) |
Changed in unity8: | |
assignee: | Albert Astals Cid (aacid) → nobody |
tags: | added: elopio qa-new |
Changed in unity8 (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in unity8: | |
status: | Triaged → Fix Released |
Changed in ubuntu-ui-toolkit: | |
status: | New → Invalid |
Changed in unity8 (Ubuntu): | |
importance: | Undecided → Medium |
no longer affects: | unity8 |
A few notes from saviq and me about what should the service do ideally:
• driven from dash
• driven by the media scanner (additional)
• ability to cancel requests
• consider power connection (do more on AC, less on battery)
• continue with cancelled requests?
• ultimately a system service
• ageing mechanism