Bug 400527

Summary: Flatpak backend shows incorrect size of updates
Product: [Applications] Discover Reporter: Nibaldo G. <nibgonz>
Component: Flatpak BackendAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, jgrulich, nate, null
Priority: NOR Keywords: usability
Version First Reported In: 5.14.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Size of updates: Discover v/s "$ flatpak update"

Description Nibaldo G. 2018-10-31 20:21:04 UTC
Created attachment 116013 [details]
Size of updates: Discover v/s "$ flatpak update"

SUMMARY
Flatpak backend of Discover does not differentiate between the installation size and the update size of the Flatpak packages (installation size always shown).

For example, in the attached image, the "io.atom.Atom" package update is 35.3MB, but Discover shows that the update is 133.3MB. This is most noticeable in the Flatpak Runtime updates, where Discover shows updates of more than 700MB, when sometimes the download does not exceed 30MB.

This may be a problem for users who have an Internet connection with a traffic limit (mobile connections), since some users may refrain from updating their system when they see the big size of the updates in Discover, in Flatpak packages.

STEPS TO REPRODUCE
When there is an update of some Flatpak package, run "$ flatpak update" and compare the size of the update with the one that shows Discover.

OBSERVED RESULT
In the updates, Discover shows the installation size of the Flatpak packages, not the update size. The user is informed of an incorrect update download size (much bigger than the real one)

EXPECTED RESULT
Discover shows the real size to download in Flatpak package updates.

SOFTWARE VERSIONS
Discover: 5.14.2
KDE Plasma Version: 5.14.2
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2
Operating System: KDE Neon 5.14, Ubuntu 18.04

ADDITIONAL INFORMATION
n/a
Comment 1 Aleix Pol 2018-11-07 15:03:27 UTC
We don't the information, currently.
https://github.com/flatpak/flatpak/issues/2095
Comment 2 Nate Graham 2023-01-12 17:16:57 UTC
Tried this again today and they match except for expected conversion differences between MB and MiB (Flatpak CLI shows the sizes in MB, while Discover shows them in MiB).