feat(api): a machine's history, its parts' scans newest first (#1026)

GET /api/v1/projects/{id}/scan-changes merges the last scans of the
machine's parts, newest first, each with its part and what it changed
(new and gone CVEs, components added, updated and removed), as a
target's own history; a target's history moves into a helper both use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-17 12:35:08 +01:00
1 parent 0ed4e510b9
commit 1f2ccdb336
5 files changed
+148 -12

No files matched your search

+5 -1
View File
@@ -523,7 +523,11 @@ advisories. `GET /api/v1/projects/{id}/cves` lists the machine's open CVEs
grouped by component across its parts, with each alert naming its part
(`repo_id`). A component in two parts is one group. Whether it affects the
machine is still stated per part, because the vulnerable code may be reached
in one part and not in the other.
in one part and not in the other. `GET /api/v1/projects/{id}/scan-changes`
is the machine's history: the last scans of its parts, newest first, each
naming its part (`part`) and what it changed, as in a target's history. A
supplier's new version shows as its product updated (`from` → `to`) in a
part bought in.
## VEX: the status of each vulnerability