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

intent: a roll-up status: without statusWhenPartial (or statusWhenFull) generates uncompilable Java - the whole app 404s

Aperta
#7,941 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Read IntentParser and trace how it validates the roll-up status configuration; compare that with GlueIntentGenerator and RollupAggregates.appendStatus. Start by running the existing RollupAggregatesTest and identify coverage for only one of statusWhenFull and statusWhenPartial being set. Done means this configuration is rejected with the missing key named, or status emission handles the missing value, with a regression test confirming the behavior.

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

Descrizione

Problem

A sum roll-up that declares status: + statusWhenFull: but no statusWhenPartial: (or the reverse) passes the parser and generates Java that does not compile. Because one javac task compiles the whole client-Java batch, every controller of the app 404s, not just the roll-up.

Where (release commit 862f6d1a, 14.93.0)

  • GlueIntentGenerator writes the missing key as "": base.put("statusWhenPartial", withStatus && rollup.getStatusWhenPartial() != null ? ... : "") (GlueIntentGenerator.java ~L705-710).
  • RollupAggregates.appendStatus splices it in verbatim: java.util.Objects.equals(parent.Status, ) and parent.Status = sum.compareTo(capacity) >= 0 ? 7 : ; (RollupAggregates.java L186-L215). The same file already guards capacityField / balanceField with strOrEmpty for exactly this reason. The status pair has no such guard.
  • IntentParser checks only that status: is a to-one relation of the parent. It never requires both statusWhenFull and statusWhenPartial.
  • RollupAggregatesTest covers both-set and both-empty, but not one set with the other missing.

Expected

Either the parser refuses status: without both statusWhenFull and statusWhenPartial (naming the missing key), or the emission treats a missing one as "leave the status alone in that band". The refusal is the smaller fix.

Found on 14.88.0 by BusinessIntents (wave 2026-10-17, base-fixed-assets / base-cash-desk) and re-checked against the 14.93.0 source; still present.

🤖 Generated with Claude Code

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

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.