feat(metering): new content starts a change-driven scan (t72)
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 / Agent integration (pull_request) Successful in 4m16s
CI / Check (pull_request) Successful in 16m34s

The contract counts change-driven Prüfungen on an included target as
free, and an upload is the customer's change. Until now the wizard's
first scan was a requested one (counted), and an upload to an existing
target started no scan at all.

- A new trigger, `new_content`: like a scheduled scan it runs only when
  something changed, and change detection attributes it as a change,
  so it is free on an included target and counted on an extra one.
- POST /api/v1/targets/{id}/scan takes `?reason=new_content`; without
  it the scan is a Prüfung the customer requests, as before. Support
  stays support.
- The wizard's first scan and an upload on the target page use it; the
  upload note says the scan starts, or that the next scheduled scan
  reads the file if it could not start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-06 16:25:05 +01:00
1 parent a7355ffdc8
commit 63ceba34d2
9 files changed
+114 -23

No files matched your search

+9 -2
View File
@@ -76,11 +76,18 @@ New findings appear on the target's page while the scan is still running.
Click **Prüfung starten** (Run scan), either in the row of the target in the
**Prüfobjekte** list or at the top of the target's page. The scan starts in the
background and the message "Prüfung gestartet. Den Fortschritt sehen Sie unter
Prüfläufe." appears. A new target is scanned once as soon as you create it in
the **Neues Prüfobjekt** wizard.
Prüfläufe." appears.
A manual scan always scans in full, even if nothing changed.
### Scan after new content
Creating a target in the wizard and uploading a file to a target start a scan
of the new content right away. Like a scheduled scan, it runs only when
something changed. Through the API, ask for it with
`POST /api/v1/targets/{id}/scan?reason=new_content`; without `reason`, the
scan is a Prüfung you request, which always runs in full.
### Scheduled Scans
Targets are scanned automatically on a recurring schedule: by default every 6