Revert "feat: folder search mvp (#4665)" (#4962)

This reverts commit c1006c18c3.
This commit is contained in:
Lucas.Xu
2024-03-22 14:15:38 +07:00
committed by GitHub
parent e2e38f72bb
commit 27ff5f07ab
123 changed files with 519 additions and 4011 deletions

View File

@ -12,7 +12,7 @@ flowy-encrypt = { workspace = true }
flowy-error = { workspace = true, features = ["impl_from_dispatch_error", "impl_from_sqlite", "impl_from_collab_folder", "impl_from_collab_persistence"] }
flowy-folder-pub = { workspace = true }
lib-infra = { workspace = true }
flowy-notification = { workspace = true }
flowy-notification = { workspace = true }
flowy-server-pub = { workspace = true }
lib-dispatch = { workspace = true }
collab-integrate = { workspace = true }
@ -43,7 +43,7 @@ validator = "0.16.0"
unicode-segmentation = "1.10"
fancy-regex = "0.11.0"
uuid.workspace = true
chrono = { workspace = true, default-features = false, features = ["clock"] }
chrono = { workspace = true, default-features = false, features = ["clock"] }
base64 = "^0.21"
tokio-stream = "0.1.14"

View File

@ -8,7 +8,6 @@ use flowy_error::{internal_error, ErrorCode, FlowyError, FlowyResult};
use flowy_sqlite::kv::StorePreferences;
use flowy_sqlite::DBConnection;
use flowy_user_pub::session::Session;
use std::path::PathBuf;
use std::sync::{Arc, Weak};
use tracing::{debug, error, info};
@ -73,11 +72,6 @@ impl AuthenticateUser {
self.database.get_connection(uid)
}
pub fn get_index_path(&self) -> PathBuf {
let uid = self.user_id().unwrap_or(0);
PathBuf::from(self.user_paths.user_data_dir(uid)).join("indexes")
}
pub fn close_db(&self) -> FlowyResult<()> {
let session = self.get_session()?;
info!("Close db for user: {}", session.user_id);