Skip to main content

Module task_history

Module task_history 

Source
Expand description

Durable task history: one append-only row per status transition.

Read by the boardโ€™s worked-time computation and the retroโ€™s metrics; never rewritten. Keys carry project, task and the instant, so a read comes back grouped by task and ordered by time within each.

Re-exportsยง

use anyhow::Context; ๐Ÿ”’
use forge_primitives::tasks::TaskTransition; ๐Ÿ”’
use redb::ReadableTable; ๐Ÿ”’
use redb::TableDefinition; ๐Ÿ”’
use super::Db; ๐Ÿ”’

Constantsยง

TASK_HISTORY ๐Ÿ”’

Functionsยง

append
Append transitions; never rewrites what is there.
list_for_project
projectโ€™s transitions, grouped by task and ordered by time.
row_key ๐Ÿ”’
The row key for one transition: project, task, and the instant as zero-padded nanos, so a taskโ€™s rows read in the order they happened.