GET /api/v1/supply-chain returns the workspace's supply chain as nodes and edges, for the dashboard to draw.
Projects:compliance_core::models::Project reads the registry's level (family, product, component) and parent_id. The registry has had them since tenant-registry 0020. Topic projects are not part of the graph.
Nodes:
suppliers, by the name in target.supplier, one node per supplier name;
targets;
product projects.
Every node has a stable key: supplier:<name>, target:<id>, project:<id>.
Edges:
supplier → target, with how its SBOM arrives: upload (with the date), invite (an active link from #1027), release (#1028, later), or ended. Each edge carries the last version and when it arrived;
target → project, for each entry in project_ids that is a product project;
project → parent project.
CVE state: each target node carries its open and critical CVE counts. A project carries the counts of its parts, each CVE counted once.
No registry (dev): without a registry, targets show without projects.
Done when: a workspace with shared components (one target in two products) gets a correct DAG with every node's counts, and the counts agree with the machine overview (#1037).
Part of #1050.
`GET /api/v1/supply-chain` returns the workspace's supply chain as nodes and edges, for the dashboard to draw.
- **Projects:** `compliance_core::models::Project` reads the registry's `level` (`family`, `product`, `component`) and `parent_id`. The registry has had them since tenant-registry 0020. Topic projects are not part of the graph.
- **Nodes:**
- suppliers, by the name in `target.supplier`, one node per supplier name;
- targets;
- product projects.
Every node has a stable key: `supplier:<name>`, `target:<id>`, `project:<id>`.
- **Edges:**
- supplier → target, with how its SBOM arrives: `upload` (with the date), `invite` (an active link from #1027), `release` (#1028, later), or `ended`. Each edge carries the last version and when it arrived;
- target → project, for each entry in `project_ids` that is a product project;
- project → parent project.
- **CVE state:** each target node carries its open and critical CVE counts. A project carries the counts of its parts, each CVE counted once.
- **No registry (dev):** without a registry, targets show without projects.
**Done when:** a workspace with shared components (one target in two products) gets a correct DAG with every node's counts, and the counts agree with the machine overview (#1037).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #1050.
GET /api/v1/supply-chainreturns the workspace's supply chain as nodes and edges, for the dashboard to draw.compliance_core::models::Projectreads the registry'slevel(family,product,component) andparent_id. The registry has had them since tenant-registry 0020. Topic projects are not part of the graph.target.supplier, one node per supplier name;Every node has a stable key:
supplier:<name>,target:<id>,project:<id>.upload(with the date),invite(an active link from #1027),release(#1028, later), orended. Each edge carries the last version and when it arrived;project_idsthat is a product project;Done when: a workspace with shared components (one target in two products) gets a correct DAG with every node's counts, and the counts agree with the machine overview (#1037).