Task: Codegen field mappers from entity models
This page documents a task in the Consolidate history dialogs onto HistoryDialogBase story. It captures the goal, current status, acceptance, and any notes or results.
Goal
Deferred: generate the per-entity field-string mappers from the entity org models, which already know field names, labels and types. Only after the hand-written currency shape is proven and the codegen org-model migration is complete.
Status
| Field | Value |
|---|---|
| State | ABANDONED |
| Parent story | Consolidate history dialogs onto HistoryDialogBase |
| Now | Nothing. |
| Waiting on | Nothing. |
| Next | Nothing. |
| Last touched | 2026-07-13 |
Acceptance
- Mappers generated for all entities with history support.
- Hand-written mappers retired.
- Zero-diff guardrails green.
Plan
- Add a mapper template to ores.codegen mirroring the hand-written currency mapper.
- Derive labels/formatting from model properties; extend models where display metadata is missing.
- Replace hand-written mappers with generated ones, zero-diff where the hand-written shape was followed.
Notes
PRs
| PR | Title |
|---|---|
Review
| Comment summary | File | Decision | Notes |
|---|---|---|---|
Result
Superseded by task Codegen per-entity history field mapper (DONE
2026-07-12): a dedicated ores.cpp.presentation codegen facet
(ores.cpp.presentation.history_field_mapper_header.org=/
=..._impl.org) generates render_{entity}_fields() for the 27 clean
ores.refdata entities, matching this task's acceptance criteria
verbatim (mappers generated from entity models, hand-written shape
retired). Found stale/duplicate while triaging the story's remaining
BACKLOG tasks; abandoning rather than re-doing already-shipped work.