Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(opensearch_client): remove un-needed fields from response indices (#664)

Will Hutchinson2d1054a5832b
diff --git a/rust/cloud-storage/opensearch_client/src/search/chats.rs b/rust/cloud-storage/opensearch_client/src/search/chats.rs
index 20629c7d85..afe48bf265 100644
--- a/rust/cloud-storage/opensearch_client/src/search/chats.rs
+++ b/rust/cloud-storage/opensearch_client/src/search/chats.rs
@@ -26,7 +26,6 @@ pub(crate) struct ChatIndex {
pub chat_message_id: uuid::Uuid,
pub user_id: String,
pub role: String,
- pub updated_at_seconds: i64,
pub title: String,
pub content: String,
}
diff --git a/rust/cloud-storage/opensearch_client/src/search/documents.rs b/rust/cloud-storage/opensearch_client/src/search/documents.rs
index 89ab9e8120..b6817eb62c 100644
--- a/rust/cloud-storage/opensearch_client/src/search/documents.rs
+++ b/rust/cloud-storage/opensearch_client/src/search/documents.rs
@@ -92,7 +92,6 @@ pub(crate) struct DocumentIndex {
pub content: String,
pub owner_id: String,
pub file_type: String,
- pub updated_at_seconds: i64,
}
#[derive(Debug, serde::Serialize, serde::Deserialize)]
diff --git a/rust/cloud-storage/opensearch_client/src/search/emails.rs b/rust/cloud-storage/opensearch_client/src/search/emails.rs
index e4bac6d547..008fdf697b 100644
--- a/rust/cloud-storage/opensearch_client/src/search/emails.rs
+++ b/rust/cloud-storage/opensearch_client/src/search/emails.rs
@@ -188,8 +188,6 @@ pub(crate) struct EmailIndex {
pub link_id: String,
/// The user id of the email message
pub user_id: String,
- /// The updated at time of the email message
- pub updated_at_seconds: i64,
/// The subject of the email message
pub subject: Option<String>,
/// The sent at time of the email message
diff --git a/rust/cloud-storage/opensearch_client/src/search/projects.rs b/rust/cloud-storage/opensearch_client/src/search/projects.rs
index c1efbb10e9..8f98015901 100644
--- a/rust/cloud-storage/opensearch_client/src/search/projects.rs
+++ b/rust/cloud-storage/opensearch_client/src/search/projects.rs
@@ -86,8 +86,6 @@ pub struct ProjectIndex {
pub user_id: String,
pub parent_project_id: Option<uuid::Uuid>,
pub project_name: String,
- pub created_at_seconds: i64,
- pub updated_at_seconds: i64,
}
#[derive(Debug, Default)]