Skip to content

feat: expose topic-update manifests in updates list responses - #22

Merged
eatradish merged 2 commits into
masterfrom
feat/tum-support
Aug 28, 2026
Merged

feat: expose topic-update manifests in updates list responses#22
eatradish merged 2 commits into
masterfrom
feat/tum-support

Conversation

@eatradish

@eatradish eatradish commented Aug 25, 2026

Copy link
Copy Markdown
Member

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

@MingcongBai

Copy link
Copy Markdown
Member

Functionality tested good with plasma-aosc-update (10893c445f93d20da515533bf0a316316e9a5d97):

图片 图片

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 MingcongBai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with revised commit messages.

@MingcongBai MingcongBai changed the title feat: surface topic-update manifests in updates list responses feat: expose topic-update manifests in updates list responses Aug 28, 2026
@eatradish
eatradish merged commit 4029470 into master Aug 28, 2026
@eatradish
eatradish deleted the feat/tum-support branch August 28, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants