intent: a roll-up cannot read the injected file / audit columns of a function: Attachment child (latest StoragePath by CreatedAt -> 422)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the roll-up validation path and EdmIntentGenerator.attachmentProperties, which the issue identifies as injecting attachment metadata after authored fields are validated. Trace how the generator builds roll-ups and how audit columns are added, then check whether StoragePath and CreatedAt are recognized for a function: Attachment child. Done means the latest roll-up in the example is accepted and generated, or the print feeder resolves the documented extra relation hop.
索引モデルが issue の本文から書いたものです。
説明
The gap
A print template reaches a cross-model record one hop away ({{document.Company.<Field>}}, PrintFeederSupport: cross-model depth 1). A company's logo uploaded as a function: Attachment child (CompanyLogo) is therefore two hops from an invoice (document.Company.<logo row>.StoragePath) and cannot be printed. The natural declarative bridge is a roll-up that mirrors the newest upload's path onto the parent:
entities:
- name: Company
fields:
- { name: logo, type: string, length: 1000, readOnly: true }
- name: CompanyLogo
function: Attachment
relations:
- { name: Company, kind: manyToOne, to: Company, composition: true, required: true }
rollups:
- { name: latestLogo, entity: CompanyLogo, via: Company, field: logo, op: latest, of: StoragePath, by: CreatedAt }
On 14.93.0 the generate answers 422:
rollup [latestLogo] of [StoragePath] is not a field of [CompanyLogo]
rollup [latestLogo] by [CreatedAt] is not a field of [CompanyLogo]
The file-metadata columns (FileName, ContentType, FileSize, StoragePath, Uuid) and the implicit audit columns (CreatedAt, ...) of a function: Attachment child are injected by the EDM generator (EdmIntentGenerator.attachmentProperties), after the parser has validated the roll-up against the authored fields only.
Ask
Either of:
- The roll-up validation (and its generator) knows the injected columns of a file child (and the audit columns of an audited / file-child entity), so
op: latest, of: StoragePath, by: CreatedAtis accepted; or - the print feeder descends one more hop into a cross-model record's to-one relations / file children (the "documented follow-up" in
PrintFeederSupport), so{{document.Company.Logo.StoragePath}}resolves.
(1) is the smaller change and also serves "latest attachment" mirrors in general (a product's photo, an employee's signed contract).
Where it comes from
BusinessIntents billing: the issuer's logo on invoices / credit notes / debit notes / proformas (#7024 shipped the <image> resolver). Today the tenant has to place Templates/Company/<company id>/logo.png through the Documents perspective by hand; the module wants an upload on the Company record.
🤖 Generated with Claude Code
- 主要言語
- Java
- スター
- 278
- フォーク
- 97
- 平均マージ
- 19時間 30分
- マージ済み PR(30日)
- 242
環境構築
- 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
-
human-required sync-failed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Azure/osdu-spi-file#63 ·
メンテナーはふだん 1 日以内に返信
-
frontend quick win
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CodeForPhilly/benefit-decision-toolkit#571 ·
メンテナーはふだん 1 日以内に返信
-
approved
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
checkstyle/checkstyle#22129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Add Hardcharger JDBC driver対応中かも @prmoore77 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信