Bug 401971 - Almost all apps are deleted from Featured apps list after their batch installation/removal
Summary: Almost all apps are deleted from Featured apps list after their batch install...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.14.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-10 17:56 UTC by Alexander Mentyu
Modified: 2018-12-15 06:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.15.0


Attachments
List before batch installation (249.14 KB, image/png)
2018-12-10 17:57 UTC, Alexander Mentyu
Details
List after installation (130.22 KB, image/png)
2018-12-10 17:57 UTC, Alexander Mentyu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mentyu 2018-12-10 17:56:07 UTC
STEPS TO REPRODUCE
1. Install or remove multiple featured apps in batch mode (several at a time).
2. Watch featured apps list.

OBSERVED RESULT
Almost empty 'Featured' list - screenshot 2

EXPECTED RESULT
Featured apps stay in the list

SOFTWARE/OS VERSIONS
Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.14.80
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.2
Kernel Version: 4.15.0-42-generic
Comment 1 Alexander Mentyu 2018-12-10 17:57:35 UTC
Created attachment 116833 [details]
List before batch installation
Comment 2 Alexander Mentyu 2018-12-10 17:57:59 UTC
Created attachment 116834 [details]
List after installation
Comment 3 Nate Graham 2018-12-11 18:11:52 UTC
Strange. I notice that the number of reviews for Krita changes between the before and after screenshots, too. It looks like a backend might have stopped working or something. Do you have multiple backends installed?
Comment 4 Aleix Pol 2018-12-13 02:39:22 UTC
Git commit 012bd024d631332fa4a4fb7e0ff77374577f61fd by Aleix Pol.
Committed on 13/12/2018 at 02:39.
Pushed by apol into branch 'master'.

pk: change strategy for updating the installed package state

Use the information offered by the transaction instead of clearing the
package and resolving the packages again. PackageKit apt backend is
really slow and issues happen eventually.
Related: bug 401961

M  +12   -11   libdiscover/backends/PackageKitBackend/PKTransaction.cpp
M  +0    -8    libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
M  +0    -1    libdiscover/backends/PackageKitBackend/PackageKitBackend.h

https://commits.kde.org/discover/012bd024d631332fa4a4fb7e0ff77374577f61fd