feat(offers): an open offer names the version accepting delivers (#1028) #1068

Merged
sharang merged 1 commits from feat/sbom-offer-latest into main 2026-11-19 21:56:05 +00:00
Owner

Part of #1028. This is what the customer's offer screen needs from the API (mockup RL3h, board "Prüfwerk, Kunde: angebotene Freigaben"). The screen itself follows in a stacked PR.

The version on offer. An open offer now carries offered_label and offered_components: the version that accepting delivers at once. When the supplier hasn't published anything yet, both are null.

  • They are set from the latest version when the release is created.
  • Each publication updates them while the offer stays open. That happens after the connection is checked, so an ended connection stops the updates.
  • Publishing still delivers only to accepted releases.

Why stamp the offer instead of reading the supplier's workspace when listing: listing stays one local query. The sidebar will count open offers on every page.

Doc fix. The delivered hash only stops the same version from being delivered twice. Each publication is its own document, with its own serial number and time, so a new version with unchanged components is still delivered and scanned. The module docs, a field doc and sbom.md said otherwise; they are corrected. The approved board says "keine Prüfung für eine unveränderte" (no scan for an unchanged version); the screen PR won't make that promise.

Tests

  • Integration: an_open_offer_learns_each_published_version (no version at first, then 1.5.0 announced and not delivered).
  • An offer created after 1.4.0 names 1.4.0 and its component count.
  • All 11 tests in connections.rs pass, and clippy 1.94 is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1028. This is what the customer's offer screen needs from the API (mockup RL3h, board "Prüfwerk, Kunde: angebotene Freigaben"). The screen itself follows in a stacked PR. **The version on offer.** An open offer now carries `offered_label` and `offered_components`: the version that accepting delivers at once. When the supplier hasn't published anything yet, both are `null`. - They are set from the latest version when the release is created. - Each publication updates them while the offer stays open. That happens after the connection is checked, so an ended connection stops the updates. - Publishing still delivers only to accepted releases. **Why stamp the offer instead of reading the supplier's workspace when listing:** listing stays one local query. The sidebar will count open offers on every page. **Doc fix.** The delivered hash only stops the same version from being delivered twice. Each publication is its own document, with its own serial number and time, so a new version with unchanged components is still delivered and scanned. The module docs, a field doc and `sbom.md` said otherwise; they are corrected. The approved board says "keine Prüfung für eine unveränderte" (no scan for an unchanged version); the screen PR won't make that promise. **Tests** - Integration: `an_open_offer_learns_each_published_version` (no version at first, then 1.5.0 announced and not delivered). - An offer created after 1.4.0 names 1.4.0 and its component count. - All 11 tests in `connections.rs` pass, and clippy 1.94 is clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-19 18:04:20 +00:00
feat(offers): an open offer names the version accepting delivers (#1028)
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 5m10s
CI / Check (pull_request) Successful in 21m51s
4c0b09f2f3
The customer's offer screen (mockup RL3h, "Prüfwerk, Kunde: angebotene
Freigaben") shows the version on the way and its component count before
accepting. The offer now carries them (offered_label,
offered_components): set from the latest version when the release is
created, and updated by each publication while the offer is open, after
the connection is checked. Listing offers stays one local query, so the
sidebar can count open offers on every page.

Doc fix: the delivered hash prevents delivering the same version twice;
it does not skip a new version with unchanged components (each document
has its own serial number and time).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 7478ff57df into main 2026-11-19 21:56:05 +00:00
sharang deleted branch feat/sbom-offer-latest 2026-11-19 21:56:05 +00:00
Sign in to join this conversation.