Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(notif): deserialize (#836)
Sean Aye7c01dfbd8b71
diff --git a/infra/bun.lock b/infra/bun.lockindex 259f299367..b268e46f87 100644--- a/infra/bun.lock+++ b/infra/bun.lock@@ -1,5 +1,6 @@{"lockfileVersion": 1,+ "configVersion": 0,"workspaces": {"": {"name": "cloud-storage-infra",diff --git a/infra/stacks/cloud-storage-service/index.ts b/infra/stacks/cloud-storage-service/index.tsindex 7db199caa8..7b51d01ace 100644--- a/infra/stacks/cloud-storage-service/index.ts+++ b/infra/stacks/cloud-storage-service/index.ts@@ -250,7 +250,7 @@ const cloudStorageService = new CloudStorageService(},{name: 'RUST_LOG',- value: `document_storage_service=${+ value: `warn,document_storage_service=${stack === 'prod' ? 'debug' : 'trace'},tower_http=info,macro_share_permissions=${stack === 'prod' ? 'error' : 'trace'diff --git a/rust/cloud-storage/comms/src/outbound/http/user_repo.rs b/rust/cloud-storage/comms/src/outbound/http/user_repo.rsindex 1a2edd3849..a6b58bf30d 100644--- a/rust/cloud-storage/comms/src/outbound/http/user_repo.rs+++ b/rust/cloud-storage/comms/src/outbound/http/user_repo.rs@@ -47,12 +47,10 @@ impl UserRepo for UserRepoImpl {) -> Result<Vec<UserName>, rootcause::Report> {let body = PostGetNamesRequestBody { user_ids };- let res = self- .client- .post(format!("{}/internal/get_names", self.url))- .json(&body)- .send()- .await?;+ let mut url = self.url.as_ref().clone();+ url.set_path("/internal/get_names");++ let res = self.client.post(url).json(&body).send().await?;match res.status() {reqwest::StatusCode::OK => {diff --git a/rust/cloud-storage/model_notifications/src/metadata.rs b/rust/cloud-storage/model_notifications/src/metadata.rsindex 8442662e65..4f833c9e2e 100644--- a/rust/cloud-storage/model_notifications/src/metadata.rs+++ b/rust/cloud-storage/model_notifications/src/metadata.rs@@ -7,6 +7,7 @@ use utoipa::ToSchema;#[derive(Debug, Clone, Copy, ToSchema, Doppleganger, Serialize, Deserialize)]#[dg(backward = models_comms::channel::ChannelType)]+#[serde(rename_all = "snake_case")]pub enum ChannelType {Public,Organization,diff --git a/rust/cloud-storage/soup/src/domain/service.rs b/rust/cloud-storage/soup/src/domain/service.rsindex 5325b64e83..85f21616cb 100644--- a/rust/cloud-storage/soup/src/domain/service.rs+++ b/rust/cloud-storage/soup/src/domain/service.rs@@ -324,12 +324,15 @@ wherelet comms_soup_fut = self.handle_comms_request(req.user.copied());let (main_soup, email_soup, comms_soup) =- tokio::try_join!(main_soup_fut, email_soup_fut, comms_soup_fut)?;+ tokio::join!(main_soup_fut, email_soup_fut, comms_soup_fut);Ok(Either::Left(- main_soup- .chain(email_soup)- .chain(comms_soup)+ main_soup?+ .chain(email_soup?)+ .chain(match comms_soup {+ Ok(iter) => Either::Left(iter),+ Err(_) => Either::Right(None.into_iter()),+ }).paginate_on(limit.into(), sort_method).filter_on(paginate_filter).sort_desc()diff --git a/rust/cloud-storage/soup/src/inbound/axum_router.rs b/rust/cloud-storage/soup/src/inbound/axum_router.rsindex 123b44431d..676b08d333 100644--- a/rust/cloud-storage/soup/src/inbound/axum_router.rs+++ b/rust/cloud-storage/soup/src/inbound/axum_router.rs@@ -212,7 +212,7 @@ impl SoupApiItem {pub enum SoupHandlerErr {#[error("An internal server error has occurred")]Internal(#[from] SoupErr),- #[error("An internal server error has occurred")]+ #[error("An internal email server error has occurred")]EmailLinkErr(#[from] EmailLinkErr),#[error("Invalid filter arguments provided")]ExpandErr(#[from] ExpandErr),