huskies: merge 865
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Bug-item creation and listing operations.
|
||||
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use std::path::Path;
|
||||
|
||||
use super::super::{next_item_number, slugify_name, write_story_content};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! Refactor-item creation and listing operations.
|
||||
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use std::path::Path;
|
||||
|
||||
use super::super::{next_item_number, slugify_name, write_story_content};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use super::bug::{create_bug_file, extract_bug_name_from_content, list_bug_files};
|
||||
use super::refactor::{create_refactor_file, list_refactor_files};
|
||||
use super::spike::create_spike_file;
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use std::fs;
|
||||
|
||||
fn setup_git_repo(root: &std::path::Path) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Pipeline state — types and loading functions for the story pipeline.
|
||||
|
||||
use crate::agents::AgentStatus;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use crate::http::context::AppContext;
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use serde::Serialize;
|
||||
use std::collections::HashMap;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -80,7 +80,7 @@ pub fn create_story_file(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use std::fs;
|
||||
|
||||
#[allow(dead_code)]
|
||||
@@ -262,7 +262,7 @@ mod tests {
|
||||
create_story_file(tmp.path(), "Type Test Story", None, None, None, None, false)
|
||||
.unwrap();
|
||||
let content = crate::db::read_content(&story_id).expect("content must exist");
|
||||
let meta = crate::io::story_metadata::parse_front_matter(&content)
|
||||
let meta = crate::db::yaml_legacy::parse_front_matter(&content)
|
||||
.expect("front matter should be valid");
|
||||
assert_eq!(
|
||||
meta.item_type.as_deref(),
|
||||
|
||||
@@ -10,7 +10,7 @@ use super::super::{
|
||||
slugify_name, story_stage, write_story_content,
|
||||
};
|
||||
|
||||
use crate::io::story_metadata::set_front_matter_field;
|
||||
use crate::db::yaml_legacy::set_front_matter_field;
|
||||
|
||||
fn json_value_to_yaml_scalar(value: &Value) -> String {
|
||||
match value {
|
||||
@@ -114,7 +114,7 @@ pub fn update_story_in_file(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::io::story_metadata::parse_front_matter;
|
||||
use crate::db::yaml_legacy::parse_front_matter;
|
||||
use std::fs;
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//! Test result persistence — writes structured test results into story markdown files.
|
||||
use crate::io::story_metadata::set_front_matter_field;
|
||||
use crate::db::yaml_legacy::set_front_matter_field;
|
||||
use crate::workflow::{StoryTestResults, TestCaseResult, TestStatus};
|
||||
use std::path::Path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user