Repository navigation
Conversation
…eation - POST assessments/<id>/preview/: what calculating would freeze now, written nowhere (no row, audit, lock or state). Partial and tentative answers are counted and the open questions, missing customer, blocking reasons and pending checks are named. With every answer present its calculation is exactly the calculation. Same capability, reach and editable states as calculate; own rate (admin_trade_in_preview). - stage/stage_label/stage_detail: the owner's eight stages derived from the assessment and its current quote revision (trade_in_stage), no new state; progress (answered/total) on detail payloads. - Optional Idempotency-Key on POST checks/: a retry of the same request by the same person within 24 h answers the original check (200, replayed); the key on another request is a 409. Only the key's keyed digest is kept, in the creation audit. Without a key the behaviour is unchanged. No migration, no frontend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…row queries - preview: answers that differ from the saved ones return unsaved_changes and keep the result provisional even when complete (calculate reads only saved answers). - quote list: the current revision's status, validity and eligibility are annotated, so a superseded row's stage costs no query. - stage docstring records the departure from the ADR: calculated but pending verification is PENDIENTE DE INSPECCION. - questions carry their group's closed kind (group_kind) so the guided assessment can place each question by kind, never by the group's name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hard weights Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # 02_ESTADO_ACTUAL.md # 07_CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué agrega (Trade-In v2, PR B, ADR #501)
Sólo backend, sin migración y sin cambios en el frontend. La valoración sigue siendo referencial; las pruebas que vigilan esa regla siguen intactas.
1. Vista previa de la valoración
POST assessments/<id>/preview/.2. Estado derivado
stage,stage_labelyprogressen la valoración y en la cotización. Representan los 8 estados del propietario, de BORRADOR a CANCELADO, a partir de los datos que ya existen, sin agregar estados nuevos. En los listados no se agrega ninguna consulta por fila.3. Doble envío de las comprobaciones
Idempotency-Keyopcional enPOST checks/:replayed: true).Pruebas
store.test_trade_in_preview: 26 pruebas.store.test_trade_in_check_idempotency: 13 pruebas, incluida concurrencia real.makemigrations --checklimpio.El despliegue necesita un GO propio.
🤖 Generated with Claude Code