diff --git a/src/lib.rs b/src/lib.rs index e69de29..116b83c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -0,0 +1,2 @@ +// Mostr Library Crate +// Placeholder for tests to not include main.rs bulk \ No newline at end of file diff --git a/src/tasks.rs b/src/tasks.rs index 3436e67..69f5171 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -983,6 +983,7 @@ impl TasksRelay { fn history_from(&self, stamp: Timestamp) -> impl Iterator { self.history.get(&self.sender.pubkey()) .map(|hist| { + // TODO deduplicate - get earlier time for duplicated tracking? hist.values().rev().take_while_inclusive(move |e| e.created_at > stamp) }).into_iter().flatten() } @@ -1005,6 +1006,7 @@ impl TasksRelay { .and_then(|id| self.get_by_id(&id)) .is_some_and(|t| t.parent_id() == pos.as_ref()) { + // FIXME this triggers when moving up and into created task debug!("Flushing Tasks because of move beyond child"); self.sender.flush(); } diff --git a/src/tasks/tests.rs b/src/tasks/tests.rs index 5e46ad2..05b67ce 100644 --- a/src/tasks/tests.rs +++ b/src/tasks/tests.rs @@ -495,3 +495,5 @@ fn test_itertools() { assert_eq!("test toast".split(' ').collect_vec().len(), 3); assert_eq!("test toast".split_ascii_whitespace().collect_vec().len(), 2); } + +// TODO subtask of done task visible in quick access but not accessible \ No newline at end of file