Bug 432836

Summary: Multiple items that are part of the same package falsely suggest to the user that they can be independently removed, but they can't
Product: [Applications] Discover Reporter: Dan Dascalescu <ddascalescu+kde>
Component: PackageKitAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, nate
Priority: NOR Keywords: usability
Version: 5.18.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot
Why does Disocver want to remove sibling packages?
Plasma addon packages have confused other users, see the comment "Why is this installed by default" re. Comic Strip.

Description Dan Dascalescu 2021-02-12 09:14:39 UTC
Created attachment 135616 [details]
Screenshot

SUMMARY
I don't consume need most of the formats that Okular supports, so I wanted to remove them, but keep Okular itself and PDF.

However, when I tried to remove "Comic book" (for example) from Discover, it made me confirm that it would remove Okular completely, along with all other formats.
Comment 1 Dan Dascalescu 2021-02-12 10:15:14 UTC
Created attachment 135620 [details]
Why does Disocver want to remove sibling packages?
Comment 2 Nate Graham 2021-02-12 16:55:46 UTC
Discover is exposing a technical detail here: the fact that these different items are all part of the same underlying package. For example Okular includes the plugins, and Hunyango, Haenau, and the other items are all part of the same `kdeplasma-addons` package.

We're confusing you because we allow a multi-item package to display multiple items in the UI, which tricks you into thinking that they can be independently installed and removed, when in fact, they can't be.

It's kind of a tricky problem to solve though. In the case of the Okular plugins, they are all correctly marked as add-ons, so perhaps Discover could collapse them into the parent okular package. In the case of the kdeplasma-addons packages, maybe we need a more generic method to collapse items provided by a single package. Or maybe we need to fix a bug with those things not getitng marked as add-ons as they should 

Needs further investigation.
Comment 3 Dan Dascalescu 2021-02-14 09:20:26 UTC
Created attachment 135677 [details]
Plasma addon packages have confused other users, see the comment "Why is this installed by default" re. Comic Strip.
Comment 4 Nate Graham 2021-02-15 05:00:59 UTC
Heh, wow.