viewer: journal text for asset.acquisition_linked; a test that every event type the store writes has plain-language journal text
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
The acquisition link was added after the viewer's asset work and showed its raw event name in recent activity. The new test reads the event types from the store's replay arms, so the next new event without text fails it (checked: it fails without this fix). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
1 parent
ee7e205f5c
commit
2e14c702c0
3 files changed
+55
-9
No files matched your search
@@ -27,15 +27,10 @@ pub struct JournalLine {
|
||||
pub seq: u64,
|
||||
/// UTC timestamp, RFC 3339. Recorded, never trusted for ordering.
|
||||
pub ts: String,
|
||||
/// Event type: `account.added`, `entry.created`, `entry.line_added`,
|
||||
/// `entry.posted`, `entry.reversed`, `entry.line_class_set`,
|
||||
/// `receipt.attached`, `receipt.linked`, `receipt.unlinked`,
|
||||
/// `document.filed`, `attachment.withdrawn`,
|
||||
/// `asset.registered`, `asset.depreciation_posted`, `asset.disposed`,
|
||||
/// `period.created`, `period.closed`, `line.cleared`, `customer.added`,
|
||||
/// `vendor.added`, `invoice.created`, `bill.created`,
|
||||
/// `invoice.payment_received`, `bill.paid`, `fx.rate_set`,
|
||||
/// `payroll.run`, `class.added`, `store.created`.
|
||||
/// Event type, e.g. `account.added`, `entry.posted`, `asset.tagged`:
|
||||
/// every type the store writes has a replay arm in
|
||||
/// `replay_line_into_ledger` (an unknown type is refused as corrupt),
|
||||
/// and journal text in the viewer (`ledger-gui` tests check both).
|
||||
#[serde(rename = "type")]
|
||||
pub line_type: String,
|
||||
/// The full domain facts. Everything a replay needs.
|
||||
|
||||
Reference in new issue
Block a user