Skip to content

dnf5daemon-server: provide a history list API #2538

@jelly

Description

@jelly

In Cockpit our software updates page has a history card with old transactions. The PackageKit API we use is quite straightforward and returns a timestamp of the transaction and the "action" with related packages. For reference the current implementation looks as following:

Image

So having something like org.rpm.dnf.v0.History.List which returns a list of transactions:

[{
  "start": <timestamp>,
  "end": <timestamp>,
 "removed": [],
 "upgraded": [],
 "installed": [],
  "downgraded": [],
}]

As Cockpit is a webui being able to pass a limit of maximum transactions returned would be welcome. (PackageKit only accepts a limit, unlike the recent_changes API which only has a since.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MEDIUMTriagedSomeone on the DNF 5 team has read the issue and determined the next steps to take

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions