Bug 1959066

Summary: Add API to expose update severity (low, medium, high, urgent)
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: PackageKitAssignee: Richard Hughes <rhughes>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dmach, gnome-sig, jmracek, jonathan, jrohel, mblaha, mcrha, pkratoch, rdieter, rhughes, rpm-software-management, smparrish
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-17 08:36:25 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 Neal Gompa 2021-05-10 16:36:59 UTC
Description of problem:
libdnf's advisory API for the context API lacks a method that returns the severity for an update advisory. This makes it impossible for PackageKit to give software centers the option to be smarter about requiring updates to be applied.

Version-Release number of selected component (if applicable):
0.62.0-1.fc34

Additional info:
See the linked Fedora Workstation ticket for details.

Comment 1 Milan Crha 2021-05-13 15:46:28 UTC
I noted this on the fedora-workstation issue (link above), the libdnf provides the information, it's PackageKit not providing it to the caller properly. I'm (slowly) working on the PackageKit side now. Let's close this bug (no need to keep it open on the PackageKit side).

Comment 2 Neal Gompa 2021-05-15 08:51:43 UTC
Where? I literally did not find an API in the dnf context API for it. Note that without an API through the dnf-context API, PackageKit can't use it.

Comment 3 Milan Crha 2021-05-17 08:36:25 UTC
dnf_advisory_get_severity().

Comment 4 Neal Gompa 2021-05-17 16:14:39 UTC
Hmm, okay then, I await your PR for PackageKit.

Comment 5 Milan Crha 2021-05-20 13:19:04 UTC
(In reply to Neal Gompa from comment #4)
> Hmm, okay then, I await your PR for PackageKit.

https://github.com/hughsie/PackageKit/pull/475