remove path_cache

This commit is contained in:
2025-10-17 17:42:20 +02:00
parent d003f0783d
commit 757536c277
4 changed files with 1 additions and 53 deletions
+1 -3
View File
@@ -16,7 +16,6 @@ struct FolderResponse {
struct FolderInfo {
id: Uuid,
name: String,
path_cache: Option<String>,
}
#[derive(Deserialize)]
@@ -287,7 +286,6 @@ async fn folder_rename_updates_name_and_child_paths() -> Result<()> {
.find(|f| f.id == parent.folder.id)
.expect("renamed folder present");
assert_eq!(renamed.name, "Archive");
assert_eq!(renamed.path_cache.as_deref(), Some("/Archive"));
let child_contents = app
.get(
@@ -299,7 +297,7 @@ async fn folder_rename_updates_name_and_child_paths() -> Result<()> {
let child_contents_body = body_to_vec(child_contents.into_body()).await?;
let child_details: FolderContents = serde_json::from_slice(&child_contents_body)?;
let child_folder = child_details.folder.expect("child folder info");
assert_eq!(child_folder.path_cache.as_deref(), Some("/Archive/Q1"));
assert_eq!(child_folder.name, "Q1");
app.cleanup().await?;
Ok(())