huskies: merge 517_story_remove_filesystem_shadow_fallback_paths_from_lifecycle_rs_finish_the_migration_to_crdt_only

This commit is contained in:
dave
2026-04-10 12:56:16 +00:00
parent fe405e81c6
commit 31388da609
12 changed files with 171 additions and 170 deletions
+13 -9
View File
@@ -1172,8 +1172,11 @@ mod tests {
setup_git_repo_in(tmp.path());
let backlog_dir = tmp.path().join(".huskies/work/1_backlog");
std::fs::create_dir_all(&backlog_dir).unwrap();
let bug_file = backlog_dir.join("1_bug_crash.md");
std::fs::write(&bug_file, "# Bug 1: Crash\n").unwrap();
let bug_file = backlog_dir.join("9901_bug_crash.md");
let content = "# Bug 9901: Crash\n";
std::fs::write(&bug_file, content).unwrap();
crate::db::ensure_content_store();
crate::db::write_content("9901_bug_crash", content);
// Stage the file so it's tracked
std::process::Command::new("git")
.args(["add", "."])
@@ -1187,13 +1190,11 @@ mod tests {
.unwrap();
let ctx = test_ctx(tmp.path());
let result = tool_close_bug(&json!({"bug_id": "1_bug_crash"}), &ctx).unwrap();
assert!(result.contains("1_bug_crash"));
assert!(!bug_file.exists());
let result = tool_close_bug(&json!({"bug_id": "9901_bug_crash"}), &ctx).unwrap();
assert!(result.contains("9901_bug_crash"));
assert!(
tmp.path()
.join(".huskies/work/5_done/1_bug_crash.md")
.exists()
crate::db::read_content("9901_bug_crash").is_some(),
"content store should have the bug after close"
);
}
@@ -1537,11 +1538,14 @@ mod tests {
// Create story file in current/ (no feature branch).
let current_dir = tmp.path().join(".huskies/work/2_current");
std::fs::create_dir_all(&current_dir).unwrap();
let content = "---\nname: No Branch\n---\n";
std::fs::write(
current_dir.join("51_story_no_branch.md"),
"---\nname: No Branch\n---\n",
content,
)
.unwrap();
crate::db::ensure_content_store();
crate::db::write_content("51_story_no_branch", content);
let ctx = test_ctx(tmp.path());
let result = tool_accept_story(&json!({"story_id": "51_story_no_branch"}), &ctx);