Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

intent: a transitions: button cannot ask for input - Void needs a mandatory reason and date stamped with the move

Aperta
#7,909 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, yaml
Ambito
api, backend

Direzione di ricerca

Start by reading the transition handling for TransitionIntent and compare it with the generates: prompt implementation referenced as issue #6685. Trace how status moves write fields and how immutableWhen and requiredWhen are enforced. Done means a transition can collect and validate its own field values in the same write as the status change, with missing required answers rejected without moving the record.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happens

transitions: (TransitionIntent: name, forEntity, from, setStatus, when, label, icon, order, notify on v14.88.0 and v14.90.0) is a one-click status move. A move that the law requires to carry data has no way to collect it:

  • BG annulment of an issued invoice (ЗДДС чл. 116, reviewer Q56/Q57): Void must record a reason (mandatory) and the date of the annulment, optionally the replacing invoice. The invoice is immutableWhen-locked from APPROVED, so the clerk cannot type the reason on the record before pressing Void either - the lock (correctly) refuses the edit.
  • generates: has prompt: (#6685) for exactly this kind of "ask, then act", but a prompt writes the TARGET of a create-from, not the record being moved.

BusinessIntents base-sales-invoices#92 parts 2 (reason + date) and 3 (ReplacedBy) wait on this.

Ask

prompt: on a transition, the same grammar as the generates prompt, writing the record's OWN fields in the same targeted write as the status move (so immutableWhen does not refuse it, and a gated requiredWhen on the target status can enforce the reason):

transitions:
  - name: VoidSalesInvoice
    forEntity: SalesInvoice
    from: [3, 4]
    setStatus: 9
    prompt:
      - { field: voidReason, required: true }
      - { field: voidedOn, default: now }
      - { field: ReplacedBy }          # optional to-one

Fields named by prompt: are written only through the transition (readOnly in the form otherwise). A missing required prompt answer is a 400 with the field named, and the move does not happen.

Filed from BusinessIntents base-sales-invoices#92 (pre-train wave 2026-10-17).

Lingua principale
Java
Stelle
278
Fork
97
Merge medio
18h 57m
PR unite (30g)
249

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-dirigible/dirigible

Tutte le issue di eclipse-dirigible/dirigible

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.