Story: Hotfix: market_fixing entity carries audit columns absent from lean SQL schema
Table of Contents
This page documents a story in Sprint 21. It captures the goal, current status, acceptance criteria, and the tasks that compose it.
Goal
Restore the marketdata repository test suite by trimming
market_fixing's domain type, entity, mapper, generator, json_io,
handler and service down to the columns that actually exist on
ores_marketdata_market_fixings_tbl — the table intentionally has no
audit trail (version, modified_by, performed_by,
change_reason_code, change_commentary) because fixing volume makes
per-row audit impractical. party_id stays; it is a real column.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent sprint | Sprint 21 |
| Now | Nothing. |
| Waiting on | Nothing. |
| Next | Nothing. |
| Last touched | 2026-07-02 |
Acceptance
- market_fixing_entity matches ores_marketdata_market_fixings_tbl columns exactly.
- ores.marketdata.core repository tests pass (write/read market_fixings).
- Build is green.
Tasks
| Task | State | Start | End | Description |
|---|---|---|---|---|
| Scaffold story: Hotfix: market_fixing entity carries audit columns absent from lean SQL schema | DONE | 2026-07-02 | 2026-07-02 | Story scaffolding rides this task: documents, sprint wiring, and the scaffold PR. Close it before merging that PR. |
| Implement Hotfix: market_fixing entity carries audit columns absent from lean SQL schema | DONE | 2026-07-02 | Initial task for: Hotfix: market_fixing entity carries audit columns absent from lean SQL schema |
Decisions
Fixed the root cause in the codegen C++ templates (not just market_fixing's generated output) so no_audit_columns entities stay correct across future regenerations. Follow-up cleanup (dead legacy marketdata tables, market_observation's hand-written overrides) filed separately as Market data cleanup: retire dead duplicate tables and preserve hand-written overrides (Sprint 22) rather than folded into this hotfix.