fix(licenses): confirm a licence before its review; one row per package #571

Merged
sharang merged 1 commits from fix/licence-review-confirm into main 2026-10-15 15:09:59 +00:00
Owner

Fixes the 422 "confirm the licence first" on Freigeben in the licence check (#570).

  • A legal review can decide only about a confirmed licence or an SPDX licence the scan found. Components without a licence, or with one SPDX cannot read (a URL, as for EntityFramework), showed Freigeben/Ablehnen, and the agent refused them.
  • GET /api/v1/licenses/check now marks each row as decidable and says whether the requester may confirm licences (may_confirm, IT_ADMIN/USER).
  • The card shows Lizenz bestätigen (the licence editor from #569) on rows that can't be decided yet. LEGAL users see "Lizenz zuerst bestätigen (IT_ADMIN oder USER)" there instead. Approve/reject and the bulk checkbox appear only where a decision is possible.
  • The same package in several targets is now one row (with "in N Prüfobjekten"), since a confirmation and a review apply to the package. Before, there was one row per target (BouncyCastle 1.8.5 twice).

Test: only_a_confirmed_or_spdx_licence_can_be_decided.

🤖 Generated with Claude Code

Fixes the 422 "confirm the licence first" on **Freigeben** in the licence check (#570). - A legal review can decide only about a confirmed licence or an SPDX licence the scan found. Components without a licence, or with one SPDX cannot read (a URL, as for EntityFramework), showed Freigeben/Ablehnen, and the agent refused them. - `GET /api/v1/licenses/check` now marks each row as `decidable` and says whether the requester may confirm licences (`may_confirm`, IT_ADMIN/USER). - The card shows **Lizenz bestätigen** (the licence editor from #569) on rows that can't be decided yet. LEGAL users see "Lizenz zuerst bestätigen (IT_ADMIN oder USER)" there instead. Approve/reject and the bulk checkbox appear only where a decision is possible. - The same package in several targets is now **one row** (with "in N Prüfobjekten"), since a confirmation and a review apply to the package. Before, there was one row per target (BouncyCastle 1.8.5 twice). Test: `only_a_confirmed_or_spdx_licence_can_be_decided`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-10-15 14:58:38 +00:00
fix(licenses): confirm a licence before its review; one row per package
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 9m17s
20c5f8969c
A legal review decides about a confirmed licence or an SPDX licence the
scan found. Components with no licence, or one SPDX cannot read (a URL),
showed Freigeben/Ablehnen anyway and the agent refused them with 422
("confirm the licence first"). The licence check now says which rows can
be decided (`decidable`) and who may confirm (`may_confirm`); the card shows
"Lizenz bestätigen" (the licence editor) on the others and offers
approve/reject only where a decision is possible.

The same package in several targets was one row per target; a
confirmation and a review are made for the package, so it is one row now,
with the number of targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit ed71ced9b3 into main 2026-10-15 15:09:59 +00:00
sharang deleted branch fix/licence-review-confirm 2026-10-15 15:10:00 +00:00
Sign in to join this conversation.