Bug 491328 - Discover Flatpak updates for applications are listed as "Refresh of version X"
Summary: Discover Flatpak updates for applications are listed as "Refresh of version X"
Status: REPORTED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 6.1.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-05 21:06 UTC by EpicTux123
Modified: 2024-08-14 02:12 UTC (History)
6 users (show)

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


Attachments
breeze gtk theme update from discover (14.24 KB, image/png)
2024-08-06 22:52 UTC, EpicTux123
Details
App versions on Discover (48.19 KB, image/png)
2024-08-14 02:12 UTC, EpicTux123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description EpicTux123 2024-08-05 21:06:23 UTC
Continuation of issue https://bugs.kde.org/show_bug.cgi?id=464128.

Updates to Flatpak applications are listed on Plasma Discover as "Refresh of version X", when they are, actually, normal updates and not just refresh of libraries/runtimes used to compile the Flatpak.

Example:
"Mahjong Game" from Flatpak needs the "cards library" ("libcards").
"Mahjong Game" is on version 1.0.
"libcards" is on version 1.1. Then it gets an update to version 1.2.
"Mahjong Game" itself does not get any new features, but the mantainer goes and update "libcards" to version 1.2.

In this situation, the word "refresh" would be appropriate, because the game was not updated, only the library used to compile the game was.
But I don't believe Discover can differentiate between an actual refresh vs. an actual update (with new features) from the game.

If "Mahjong Game" was updated to version 1.1, Discover would still show it as "Refresh of version X".
And I know it because most (if not all) updates to Flatpak applications I have downloaded are only called "Refresh of version X", even if it's an actual update.

In the linked issue, Nate asked me for a screenshot of the problem (showing Discover). I can't provide one currently since I don't have anything to update.

However, I can say it is the same content as the attachment present in the other issue (https://bugsfiles.kde.org/attachment.cgi?id=155202); the only difference are app names and versions.

I can attest an actual update shows "Refresh of version X" because today I updated OpenRCT2 (https://github.com/OpenRCT2/OpenRCT2) from Flathub and it showed "Refresh of version 0.4.12", when it was actually updating to version 0.4.13. Also, the command "flatpak history" shows "deploy update" (does not mention any "refresh" for any update from all of my history).

OpenRCT2 team released an update yesterday: https://github.com/OpenRCT2/OpenRCT2/releases/tag/v0.4.13
Flathub app was updated today: https://github.com/flathub/io.openrct2.OpenRCT2/commit/2e8e7429eccc45e2562acc3a293d9e2968845814

I believe the simplest solution would be just to rename "Refresh of version" to "Update to version", and also show the new version (as dictated by the manifest file from Flathub) instead of the current version.

So, for example, instead of getting "Refresh of version 0.4.12" for OpenRCT2, I would get "Update to vresion 0.4.13".

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Comment 1 Nate Graham 2024-08-05 21:36:20 UTC
Please attach your own screenshot.
Comment 2 EpicTux123 2024-08-05 22:12:10 UTC
Hello, I'll attach an screenshot next time I have an update.
Comment 3 Harald Sitter 2024-08-06 11:48:07 UTC
According to the code this only can happen if the available version and the installed version are already the same.
Comment 4 Nate Graham 2024-08-06 19:30:38 UTC
That's what I was getting at, yeah.
Comment 5 EpicTux123 2024-08-06 22:52:07 UTC
Created attachment 172362 [details]
breeze gtk theme update from discover

Hello. I had an update today for "Breeze GTK Theme". I have attached a screenshot from Discover.

"flatpak list" command before the update:
Breeze GTK theme                             org.gtk.Gtk3theme.Breeze                             6.1.3                          3.22              system

"flatpak list" command after the update:
Breeze GTK theme                             org.gtk.Gtk3theme.Breeze                             6.1.4                          3.22              system

"flatpak history" shows:
ago  6 19:45:49 deploy update  org.gtk.Gtk3theme.Breeze                       3.22        system       flathub

"Breeze GTK Theme" was updated today to version 6.1.4: https://github.com/flathub/org.gtk.Gtk3theme.Breeze/commits/master/
Comment 6 Harald Sitter 2024-08-06 23:31:22 UTC
Looks to me the appstream cache may only be reporting the installed version, not the candidate version.
Comment 7 EpicTux123 2024-08-14 02:12:12 UTC
Created attachment 172605 [details]
App versions on Discover

Interesting fact:

Some apps report as "Applications" instead of "System Software", and those correctly display the candidate version.