intent: a transition guard cannot refuse on a count of related rows - a month with draft entries can be closed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-dirigible/dirigible のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eclipse-dirigible/dirigible#7958 ·
メンテナーはふだん 1 日以内に返信
-
intent: a create-from without fromStatus answers 200 on a missing or unknown source id (no 400/404)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-dirigible/dirigible#7945 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#7891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
eclipse-dirigible/dirigible#6538 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
eclipse-dirigible/dirigible#4812 ·
メンテナーはふだん 1 日以内に返信
eclipse-dirigible/dirigible の issue をすべて見る
似ている issue
-
Shaded google-api-client trust stores still include AAA Certificate Services (eMudhra CA compromise)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
snowflakedb/snowflake-jdbc#2763 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 79/100
java-native-access/jna#1746 ·
-
Pooled clients leak a connection per call: pipelines and transactions taken from UnifiedJedis are never closed対応中かも @ali-jawad が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
kind:bug state:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenLineage/OpenLineage#5100 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
adorsys/keycloak-config-cli#1709 ·
メンテナーはふだん 1 日以内に返信