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

intent: a transition guard cannot refuse on a count of related rows - a month with draft entries can be closed

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

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

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

評価

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

調査の方向性

Start by tracing how transitions: guards and when: are parsed and evaluated, then inspect the FiscalPeriod close transition and the related-row lookup path. The issue gives no file or test names, so first locate the transition implementation and its integration tests. Done means tests show a close is refused with the count message and unchanged status when draft entries fall within the period, and succeeds when none do.

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

説明

Why (verified on master 4e82eb1677 / 14.95.0, 2026-10-21)

A transitions: guard can only test one of the record's own fields (when: "<Field> ==|!= <n>"). A month must not be closed while it still holds DRAFT automatic journal entries - they cannot be posted inside a CLOSED period afterwards (BusinessIntents/base-journal#113). The entries are not linked to the period by a foreign key: they belong to it by date window (immutableInPeriod), so no roll-up can carry the count either, and a status-filtered roll-up would not recompute on the entries' Post transition anyway (#7942).

Wanted

A transition refusal over related rows, evaluated at the click:

transitions:
  - name: ClosePeriod
    forEntity: FiscalPeriod
    from: [1]
    setStatus: 2
    refuseWhen:
      - count: { entity: JournalEntry, where: ["Status == 1", "date >= fromDate", "date <= toDate"] }
        gt: 0
        message: "{count} draft entries are dated in this period - post or delete them before closing it"

409 with the message; the button stays offered (or shows the message). Combines with when:.

Proof

An IT that closes a period holding a DRAFT entry dated inside it (409, the message, status unchanged) and one holding none (200, CLOSED).

Downstream: BusinessIntents/base-journal#113.

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

環境構築

はじめの一歩

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

eclipse-dirigible/dirigible のほかの issue

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

似ている issue

Java の issue をもっと見る

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

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