Bug 403697

Summary: When trying to remove Flatpak repo, prompt to remove all apps from that repo rather than failing with a bad error message
Product: [Applications] Discover Reporter: Alexander Mentyu <notuxius>
Component: Flatpak BackendAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, jgrulich, nate
Priority: HI Keywords: usability
Version: 5.14.90   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.19.0

Description Alexander Mentyu 2019-01-28 15:35:06 UTC
STEPS TO REPRODUCE
1. Open 'Sources' page.
2. Try to remove any Flatpak repo with currently installed packages - for example - https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo

OBSERVED RESULT
'Failed to remove the source...'  popup error is shown.

EXPECTED RESULT
1. Remove currently installed Flatpak repo packages popup is shown.
2. After removing installed repo package - Flatpak repo itself is removed.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.2
Kernel Version: 4.15.0-42-generic
Comment 1 Nate Graham 2019-02-06 00:36:41 UTC
Confirmed. In this case, we should display a sheet with the following text and buttons:


This source has been used to install the following applications:
- App 1
- App 2
- App 3
- etc

Would you like to remove these applications as well, or just remove the source?


         [Remove source and apps]   [Just remove source]   [Cancel]
Comment 2 Nate Graham 2020-02-15 23:03:49 UTC
*** Bug 417581 has been marked as a duplicate of this bug. ***