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(call): restore call import tests after the provider and event merges (#8467)

Wolf Mermelsteincc1e070eace5
diff --git a/crates/call/src/domain/imports/test.rs b/crates/call/src/domain/imports/test.rs
index d733d5d322..a7f7570850 100644
--- a/crates/call/src/domain/imports/test.rs
+++ b/crates/call/src/domain/imports/test.rs
@@ -1,6 +1,6 @@
use super::*;
use crate::domain::events::CallTopicEvent;
-use crate::domain::records::CallProvider;
+use crate::domain::records::{CallProvider, ExternalCallId};
use macro_event_broker::{EventBrokerError, MacroEvent};
use std::sync::{Arc, Mutex};
@@ -55,7 +55,7 @@ fn snapshot(namespace: &str) -> ImportedCall {
namespace: namespace.into(),
provider: CallProvider::Granola,
object_type: "note".into(),
- external_id: "not_123456789abcde".to_owned().try_into().unwrap(),
+ external_id: ExternalCallId("not_123456789abcde".to_owned()),
external_url: None,
external_updated_at: None,
synced_at: None,
diff --git a/crates/call/src/outbound/pg_imported_call_repo/test.rs b/crates/call/src/outbound/pg_imported_call_repo/test.rs
index b036d33b99..4dfac48a0b 100644
--- a/crates/call/src/outbound/pg_imported_call_repo/test.rs
+++ b/crates/call/src/outbound/pg_imported_call_repo/test.rs
@@ -105,7 +105,10 @@ async fn imports_are_private_idempotent_owner_scoped_and_revision_ordered(pool:
fixtures(path = "../../../fixtures", scripts("import_users"))
)]
async fn imports_require_a_complete_source_identity(pool: PgPool) {
- let service = CallImportServiceImpl(PgImportedCallRepository::new(pool));
+ let service = CallImportServiceImpl(
+ PgImportedCallRepository::new(pool),
+ macro_event_broker::NoopMacroEventBroker,
+ );
let mut call = snapshot("import-a", Utc::now());
call.source.external_id = ExternalCallId(String::new());
assert!(service.ingest(call).await.is_err());