feat: expose topic-update manifests in updates list responses - #22
Merged
Conversation
Member
Expose Topic Update Manifest information via oma-tum. This feature will be used by amo's client frontends, such as plasma-aosc-update. Entries are sorted security-first. Manifests that fail to load will be logged and skipped (instead of failing the call).
- Drop the `important` field from `TumEntry`: it was always equal to `security` and no consumer read it. - Source `package_count` from `TopicUpdateEntryRef::count_packages()` instead of reimplementing the v1/v2 selection and cumulative aggregation locally. - Expand tests to cover v2 packages, cumulative aggregation, sorting (security first), and the `has_important_updates` aggregate. Note that oma-tum's v2 matching evaluates the manifests' version expression (packages-v2) against the old (currently installed) package version, so the v2 test uses an explicit `>= 2.0`, testing with version 2.0 before update and 2.5 as an available update.
MingcongBai
force-pushed
the
feat/tum-support
branch
from
August 28, 2026 09:00
dc8113b to
867fc23
Compare
MingcongBai
approved these changes
Aug 28, 2026
MingcongBai
left a comment
Member
There was a problem hiding this comment.
LGTM with revised commit messages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Expose Topic Update Manifest information via oma-tum. This feature will be used by amo's client frontends, such as plasma-aosc-update.