Bug 434936 - Discover sometimes doesn't say from which version it is updating
Summary: Discover sometimes doesn't say from which version it is updating
Status: REPORTED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (interactive) (show other bugs)
Version: 5.20.5
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-03-25 14:38 UTC by David
Modified: 2022-11-25 17:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
discover_lacking_versions (56.07 KB, image/png)
2021-03-26 18:12 UTC, David
Details
discover_no_version_from (26.24 KB, image/png)
2022-11-25 17:02 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-03-25 14:38:53 UTC
SUMMARY
Oftentimes, when I open discover and if offers updates for a few packages only, it will not show me in the GUI from which to which version it is updating them, only the final version to which they will update. I am not sure when exactly does it fail to show the current version or what are the exact steps to reproduce.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-03-25 20:19:39 UTC
1. Can you provide a screenshot?
2. Does it work if you resize the window to be wider?
3. Does it work if you leave the Updates page after all the available updates have been loaded, then then return to it?
Comment 2 David 2021-03-26 18:12:18 UTC
Created attachment 137091 [details]
discover_lacking_versions

Attached a screenshot. The problem does not go away if I resize the window, but it does go away if I go to e.g. "about" and then back to the updates page.
Comment 3 Nate Graham 2021-03-30 15:12:53 UTC
OK thanks. Looks like the old versions sometimes get loaded later but the UI isn't updated immediately. Can confirm that.
Comment 4 Dennis Schridde 2022-07-21 09:25:52 UTC
This might be related to bug #411186 or bug #448521, which also deal with wrong version information being displayed.
Comment 5 Nate Graham 2022-08-25 19:08:09 UTC
This bug is probably caused by the way we determine the update string. It does through a chain of logic to see what information is available and probably for a moment the currently-installed version is not available for some reason, and if the code runs in that moment, it shows you just the available version, and then doesn't update later. See https://invent.kde.org/plasma/discover/-/blob/master/libdiscover/resources/AbstractResource.cpp#L255
Comment 6 Nate Graham 2022-11-24 06:12:48 UTC
I believe this is fixed now in Plasma 5.26 after various fixes. Are you still able to reproduce the issue in Plasma 5.26 or later?
Comment 7 David 2022-11-24 16:18:59 UTC
(In reply to Nate Graham from comment #6)
> I believe this is fixed now in Plasma 5.26 after various fixes. Are you
> still able to reproduce the issue in Plasma 5.26 or later?

Still happening:

Operating System: Debian GNU/Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 6.0.0-4-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: Acer
Product Name: Predator PH517-61
System Version: V1.09
Comment 8 David 2022-11-24 16:19:36 UTC
Although, it now happens only for the entries listed as "Applications".
Comment 9 Nate Graham 2022-11-24 16:35:59 UTC
Can you share a new screenshot of how it looks now?
Comment 10 David 2022-11-25 17:02:58 UTC
Created attachment 154027 [details]
discover_no_version_from

Added a screenshot showing the problem in Discover 5.26.3.
Comment 11 Nate Graham 2022-11-25 17:04:24 UTC
Thanks.