huskies: merge 946
This commit is contained in:
@@ -63,7 +63,7 @@ pub(super) fn handle_depends(ctx: &CommandContext) -> Option<String> {
|
||||
// Story name comes from the CRDT register, not the on-disk YAML
|
||||
// (story 929 — CRDT is the sole source of story metadata).
|
||||
let story_name = crate::crdt_state::read_item(&story_id)
|
||||
.and_then(|w| w.name().map(str::to_string))
|
||||
.map(|w| w.name().to_string())
|
||||
.unwrap_or_else(|| story_id.clone());
|
||||
|
||||
// Write depends_on to the typed CRDT register — single source of truth.
|
||||
@@ -183,7 +183,7 @@ mod tests {
|
||||
"1_backlog",
|
||||
"9910_story_foo.md",
|
||||
"---\nname: Foo\n---\n",
|
||||
None,
|
||||
Some("Foo"),
|
||||
);
|
||||
let output = depends_cmd_with_root(tmp.path(), "9910 477 478").unwrap();
|
||||
assert!(
|
||||
@@ -214,7 +214,7 @@ mod tests {
|
||||
"2_current",
|
||||
"9911_story_bar.md",
|
||||
"---\nname: Bar\n---\n",
|
||||
None,
|
||||
Some("Bar"),
|
||||
);
|
||||
// Pre-seed CRDT with deps so we can verify clearing.
|
||||
crate::crdt_state::set_depends_on("9911_story_bar", &[477]);
|
||||
@@ -251,7 +251,7 @@ mod tests {
|
||||
"1_backlog",
|
||||
"8790_story_chat_dep.md",
|
||||
"---\nname: Chat Dep\n---\n",
|
||||
None,
|
||||
Some("Chat Dep"),
|
||||
);
|
||||
|
||||
let out = depends_cmd_with_root(tmp.path(), "8790 500 501").unwrap();
|
||||
@@ -286,7 +286,7 @@ mod tests {
|
||||
"1_backlog",
|
||||
"9920_story_scr.md",
|
||||
"---\nname: SCR\n---\n",
|
||||
None,
|
||||
Some("SCR"),
|
||||
);
|
||||
|
||||
// Set to [1, 2, 3].
|
||||
|
||||
Reference in New Issue
Block a user