Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

intent: a roll-up balance against a capacity that is measured but not enforced (budget versus actual), or a computed report column

オープン
#7,904 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
backend, databases

調査の方向性

Read RollupIntentGenerator, especially the updateDerived to updateProperties path, and ReportIntentGenerator.addMeasure to see the current limits described in the issue. Trace how capacity, balance, and child-side guards are handled, then choose either the enforce: false roll-up behavior or computed report columns. Done means over-budget values are allowed, a null capacity produces a null balance, and the selected behavior is covered by a test.

索引モデルが issue の本文から書いたものです。

説明

Shape asked: a sum roll-up that keeps a remainder against a parent field and does NOT refuse. Two options; either one is enough:

rollups:
  - { name: projectActualHours, entity: ProjectTimesheet, via: Project, field: actualHours, op: sum, of: approvedHours,
      capacity: budgetHours, balance: remainingHours, enforce: false }   # measured, never guarded

or a report column computed from the row's own fields:

reports:
  - name: BudgetVsActual
    source: Project
    dimensions: [code, name, budgetHours, actualHours]
    columns: [{ name: remainingHours, expr: "budgetHours - actualHours" }, { name: consumedPercent, expr: "actualHours * 100 / budgetHours" }]

Why 14.88.0 cannot express it:

  • balance: requires capacity:, and capacity: always emits the child-side guard (#7448/#7542). A guard is right for money that must not be over-allocated. Booked hours over a project's budget are information, not an error. With the guard, the monthly schedule could not even create the next project-month of an over-budget project. guardAt: moves the guard, it does not remove it. A null capacity reads as 0 in the handler, so an unbudgeted project would refuse everything.
  • A stored remainingHours with calculatedOnUpdate: "BudgetHours - ActualHours" goes stale. The roll-up writes actualHours through updateDerived → updateProperties, which runs no calculated expression.
  • A report measure is aggregate(field) only (ReportIntentGenerator.addMeasure). 14.90.0 adds ledger, aging and statement shapes, but no computed column.

Case: BusinessIntents/base-projects (budget versus actual, GAP_ANALYSIS "app-projects"). Project.actualHours/actualRevenue are now roll-ups from base-timesheets (the foreign-parent direction of #6930, which works). remainingHours and the consumed % are what is left. The BudgetVsActual report shows budget and actual side by side until this lands.

enforce: false is the smaller change and also gives the remainder on the record page. When the capacity is null, the balance should be null, not -sum.

主要言語
Java
スター
278
フォーク
97
平均マージ
18時間 57分
マージ済み PR(30日)
249

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-dirigible/dirigible のほかの issue

eclipse-dirigible/dirigible の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。