feat(5.19): auto-send toggle per cont + tinere manuala randuri (held)
Comutator accounts.auto_send_enabled per cont: Auto OFF (default) tine randurile
la ingestie (submissions.held=1), worker-ul (claim_one AND held=0) le sare pana la
eliberare umana (per rand/bulk/auto-release OFF->ON). Snapshot held prin chokepoint
unic held_for_account pe toate caile de ingestie (API, import, reresolve, reactivare).
- schema/migrare: coloana held + index partial idx_submissions_held; auto_send_enabled
- API: echo onest held+motiv (US-010), ruta /prezentari/{id}/trimite-acum
- web: toggle header, modal confirmare tipata, buton Trimite per rand + Trimite toate,
banner coada tinuta imbatranita (L.142), contor "In asteptare (manual)"
- worker: expire_held (US-008, inchide gaura retentie PII), metrics held gauges
- ops: tools/carantina_held + runbook rollback (R4)
Nota review (/code-review high): re-snapshot held lipseste pe caile repune/corectie
(requeue_submission, post_corectie, bulk-fix) — de aliniat separat cu create_prezentari.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -216,6 +216,52 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Card: De ce nu ajunge la RAR? (PRD 5.19 US-010 — onestitate canal API) #}
|
||||
{# Un POST /v1/prezentari poate intoarce 200 dar randul sa NU plece la RAR. #}
|
||||
<div class="card" style="margin-bottom:16px;">
|
||||
<h3 style="margin:0 0 6px; font-size:15px;">De ce nu ajunge la RAR?</h3>
|
||||
<p class="muted" style="font-size:12px; margin:0 0 12px;">
|
||||
Un <code>POST /v1/prezentari</code> poate intoarce <strong>200</strong> cu
|
||||
<code>status: "queued"</code>, dar randul sa NU plece automat la RAR. Cele trei motive:
|
||||
</p>
|
||||
<div class="banner warn" role="note" style="margin:0 0 12px; font-size:12.5px;">
|
||||
<strong>Conturile noi pornesc cu Trimiterea automata OPRITA (Auto OFF).</strong>
|
||||
Primul <code>POST</code> da 200/<code>queued</code>, dar randul e tinut
|
||||
(<code>held=true</code>) si asteapta eliberare manuala. Verifica bifa
|
||||
<em>„Trimite automat la RAR"</em> din dashboard.
|
||||
</div>
|
||||
<div class="tablewrap">
|
||||
<table>
|
||||
<thead><tr>
|
||||
<th>Motiv</th>
|
||||
<th>Ce inseamna</th>
|
||||
<th>Cum deblochezi</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span class="pill">held</span> <span class="muted">(Auto OFF)</span></td>
|
||||
<td>Contul are Trimiterea automata OPRITA → randul e tinut
|
||||
(<code>held=true</code>), NU pleaca la RAR.</td>
|
||||
<td>Elibereaza manual din dashboard (butonul <em>Trimite</em> / <em>Trimite toate</em>)
|
||||
sau activeaza Trimiterea automata. Verifici cu
|
||||
<code>GET /v1/prezentari/{id}</code> (<code>held=true</code>).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="pill">needs_mapping</span></td>
|
||||
<td>Cod operatie fara mapare la un cod RAR din nomenclator.</td>
|
||||
<td>Intra in editorul de mapare din dashboard; la salvarea maparii randul
|
||||
se re-rezolva automat.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="pill">needs_data</span></td>
|
||||
<td>Validare de continut esuata (VIN / data prestatie / odometru).</td>
|
||||
<td>Corectezi datele si repui prezentarea.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# Card: Export & referinta #}
|
||||
<div class="card" style="margin-bottom:16px;">
|
||||
<h3 style="margin:0 0 12px; font-size:15px;">Export & referinta</h3>
|
||||
|
||||
Reference in New Issue
Block a user