packages icon indicating copy to clipboard operation
packages copied to clipboard

Discover Testing: Most applications show "unknown" size

Open TraceyC77 opened this issue 1 year ago • 4 comments
trafficstars

Please confirm there isn't an existing open bug report

  • [X] I have searched open bugs for this issue

Summary

In the Discover UI, most applications shown to be updated have "unknown" instead of a disk usage size

Steps to reproduce

  1. Open Discover when the system has updates to install

Expected result

Every application shows a size

Actual result

Most entries have "unknown" for the update size From inspection, the ones affected are all sourced via eopkgs in our repo

Applications showing an update size: CudaText, Obsidian (both flatpaks)

Addons showing an update size: Ant-Dracula KDE (from KNewStuff)

About half the System Software entries show a size. Ex; Dell System Firmware (from Firmware Updates (lvfs)) Freedesktop Platform (flatpak)

Environment

  • [X] Is system up to date?

Repo

Unstable

Desktop Environment

Plasma

System details

Operating System: Solus 4.5 KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.6.22-281.current (64-bit) Graphics Platform: X11 Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz Memory: 62.5 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 Manufacturer: Dell Inc. Product Name: XPS 17 9710

Other comments

No response

TraceyC77 avatar Mar 23 '24 18:03 TraceyC77

This is a packagekit limitation as pkcon get-update-detail which is essentially what discover calls under the hood, doesn't report the size.

pkcon get-update-detail firefox
Resolving                               [=========================]         
Getting update details                  [=========================]         
Querying                                [=========================]         
Finished                                [=========================]         
Details about the update:
 Package: firefox-124.0-308.x86_64
 Updates: ['firefox;124.0-308;x86_64;Unstable']
 Vendor: https://www.mozilla.org/firefox/
 CVE: []
 Update text: firefox: Update to v124.0

Release notes available [here](https://www.mozilla.org/en-US/firefox/124.0/releasenotes/)

Signed-off-by: Reilly Brogan <[email protected]>
 Changes: 
 State: stable
 Issued: 
 Updated: 2024-03-18T00:00:00

I believe discover is going to stop reporting this for packagekit packages and only flatpak going forward but i can't find the MR right now.

joebonrichie avatar Mar 23 '24 18:03 joebonrichie

Oh really? Discover devs made a choice to not show the data for repo package updates?

Justinzobel avatar Apr 12 '24 00:04 Justinzobel

This is probably an upstream issue. We're tackling Discover issues in 4.7

TraceyC77 avatar Sep 27 '24 21:09 TraceyC77

Actually there is pk_backend_job_details_full() which also includes the download-size compared to pk_backend_job_details(), discover could potentially try calling that instead

joebonrichie avatar Sep 28 '24 09:09 joebonrichie