Bug 1888404

Summary: Updates page hides ongoing updates on refresh
Product: Red Hat Enterprise Linux 8 Reporter: Owen Taylor <otaylor>
Component: gnome-softwareAssignee: Milan Crha <mcrha>
Status: CLOSED ERRATA QA Contact: Martin Krajnak <mkrajnak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: jkoten, klember, mkrajnak, rhughes, tpelka, tpopela
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnome-software-3.36.1-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:33:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Owen Taylor 2020-10-14 18:50:05 UTC
If you start a Flatpak update immediately after starting GNOME Software, then after a couple seconds the Update page switches to "Software is up to date" even though the update is continuing in the background.

The reason for this, as I understand it is:

 - The package-kit plugin causes a ::updates-changed notification on startup
 - This triggers gs_shell_reload_cb after a 5 second delay
 - gs_updates_page_reload() recreates the page from scratch, and doesn't handle in-progress updates correctly when doing that

I've only seen this when testing with 8.3.0 candidate packages but I don't think it's been fixed upstream since either.

Comment 1 Milan Crha 2021-02-16 17:36:03 UTC
That might be a stupid question, but how do I test this in a sane way, please? Am I able to downgrade a Flatpak application to some previous version? If so, how do I do that, please?

Comment 2 Martin Krajnak 2021-02-16 17:56:35 UTC
Hi Milan, 
you can downgrade flatpak but only those on flathub:

$ flatpak remote-info --log flathub org.gnome.Eolie

Eolie - Web browser

        ID: org.gnome.Eolie
       Ref: app/org.gnome.Eolie/x86_64/stable
      Arch: x86_64
    Branch: stable
   Version: 0.9.63
   License: GPL-3.0+
Collection: org.flathub.Stable
  Download: 12.9 MB
 Installed: 37.9 MB
   Runtime: org.gnome.Platform/x86_64/3.34
       Sdk: org.gnome.Sdk/x86_64/3.34

    Commit: 7181480e6c3b8ba8b2ed70c442cb5d0d99abf186a4317ef516a28d2e9ffbe27d
    Parent: a459779fdde9defdf18be8e9277a1d3f5ba13bbfc190f86a930fe4ad578b2d89
   Subject: Appdata: add a patch to fix it (974981c3)
      Date: 2019-09-13 15:18:14 +0000
   History: 

    Commit: a459779fdde9defdf18be8e9277a1d3f5ba13bbfc190f86a930fe4ad578b2d89
   Subject: Update to 0.9.60 (3f2020e6)
      Date: 2019-04-09 13:18:16 +0000



$ flatpak update -y --user --commit=a459779fdde9defdf18be8e9277a1d3f5ba13bbfc190f86a930fe4ad578b2d89 org.gnome.Eolie

Comment 3 Milan Crha 2021-02-16 18:21:52 UTC
Nice, thanks.

Comment 4 Milan Crha 2021-02-19 08:14:29 UTC
I filled this upstream:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1150
and I'll provide a fix for it too. IF approved there, it can be backported to RHEL.

Comment 9 Martin Krajnak 2021-06-02 10:52:14 UTC
gnome-software-3.36.1-8.el8.x86_64

Comment 11 errata-xmlrpc 2021-11-09 19:33:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: GNOME security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4381