intent: sourceStatusOnRetire is refused for a cross-model target - a milestone/timesheet billed into another module's invoice can never be re-billed after a void
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with IntentParser.validateGeneratesReopen, which the issue names as refusing cross-model targets, and inspect how published .model data exposes owner status nomenclature and how CrossModelSupport reads it. Trace the generated reopen listener for local targets and its subscription to the target's -transitioned topic. Done means the example parses and voiding its generated invoice returns the milestone to REACHED, allowing a second Generate.
索引モデルが issue の本文から書いたものです。
説明
Problem
sourceStatusOnRetire (#6868, extended to button create-froms by #7647) is refused for a cross-model target at 14.93.0 (IntentParser.validateGeneratesReopen):
generates [invoice-from-milestone] cannot reopen for a cross-model target (uses [sales-invoices]) - what RETIRES a [SalesInvoice] is the
stage:classification of its status nomenclature, seeded in the owner model and not resolvable here
The commonest create-from in an ERP is exactly this shape: a document of one module is billed into another module's invoice. In BusinessIntents:
base-projectsinvoice-from-milestone(Milestone -> SalesInvoice,sourceStatus: 3INVOICED,fromStatus: [2]): when the invoice is voided, the milestone stays INVOICED, the from-status guard 409s the next Generate, andimmutableWhenlocks it. The milestone's amount can never be billed again (BusinessIntents/base-projects#30).base-timesheetsinvoice-from-timesheet(ProjectTimesheet -> SalesInvoice,sourceStatusINVOICED): same dead end for a voided month invoice.
The target module cannot author the reopen instead (it would need uses: back to the source module - the cycle).
Ask
Let sourceStatusOnRetire resolve the retiring statuses of a cross-model target from the owner's published .model: the owner already knows which seed rows of its EntityStatus nomenclature are stage: cancelled / stage: void. Emitting those ids into the owner .model (like the widget types CrossModelSupport already reads) would let the reopen listener be generated in the SOURCE module, subscribed to the target's -transitioned topic, exactly as for a local target.
Expected
generates:
- name: invoice-from-milestone
from: Milestone
to: SalesInvoice
uses: sales-invoices
fromStatus: [2]
sourceStatus: 3
sourceStatusOnRetire: 2 # voiding/cancelling the invoice returns the milestone to REACHED
generates without a parser issue; voiding the generated invoice returns the milestone to REACHED and a second Generate succeeds.
- 主要言語
- Java
- スター
- 278
- フォーク
- 97
- 平均マージ
- 16時間 46分
- マージ済み PR(30日)
- 265
環境構築
- 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
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
[Bug]: REST API URL starting with "http" but no scheme (e.g. httpbin.org/get) is not given an http:// prefix対応中かも @ItsDeadlyProgrammer が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
appsmithorg/appsmith#42471 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
code-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
carlos-emr/carlos#5258 ·
メンテナーはふだん 1 日以内に返信