Bug 400527 - Flatpak backend shows incorrect size of updates
Summary: Flatpak backend shows incorrect size of updates
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 5.14.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2018-10-31 20:21 UTC by Nibaldo G.
Modified: 2023-01-12 17:16 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Size of updates: Discover v/s "$ flatpak update" (174.08 KB, image/png)
2018-10-31 20:21 UTC, Nibaldo G.
Details

Note You need to log in before you can comment on or make changes to this bug.
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).