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
chore(service_url): remove unused and dead service urls (#6126)
Will Hutchinsona354ec32c716
diff --git a/crates/macro_service_urls/src/lib.rs b/crates/macro_service_urls/src/lib.rsindex 1c33213314..9ded44ead0 100644--- a/crates/macro_service_urls/src/lib.rs+++ b/crates/macro_service_urls/src/lib.rs@@ -506,44 +506,18 @@ service_url! {dev: "https://auth-service-dev.macro.com",prod: "https://auth-service.macro.com",},- /// PDF rendering service API URL.- pub PdfServiceUrl {- local: "http://localhost:4567",- dev: "https://pdf-service-dev.macro.com",- prod: "https://pdf-service.macro.com",- },/// Document storage service API URL.pub DocumentStorageServiceUrl {local: "http://localhost:8086",dev: "https://dev-gateway.macro.com/dss",prod: "https://gateway.macro.com/dss",},- /// WebSocket service URL.- pub WebsocketServiceUrl {- local: "ws://localhost:6969",- dev: "wss://services-dev.macro.com",- prod: "wss://services.macro.com",- },/// Connection gateway HTTP API URL.pub ConnectionGatewayUrl {local: "http://localhost:8082",dev: "https://connection-gateway-dev.macro.com",prod: "https://connection-gateway.macro.com",},- /// Connection gateway WebSocket URL.- pub ConnectionGatewayWebsocketUrl {- local: "ws://localhost:8082",- dev: "wss://connection-gateway-dev.macro.com",- prod: "wss://connection-gateway.macro.com",- },- /// Agent proxy WebSocket URL (the shared runtime endpoint external- /// agent runtimes dial). Unused: its service is gone, and the URL- /// stays only until the deployed stack behind it is torn down.- pub AgentProxyWebsocketUrl {- local: "ws://localhost:8091",- dev: "wss://agent-proxy-dev.macro.com",- prod: "wss://agent-proxy.macro.com",- },/// Document cognition service API URL.pub DocumentCognitionServiceUrl {local: "http://localhost:8085",diff --git a/crates/macro_service_urls/src/test.rs b/crates/macro_service_urls/src/test.rsindex 49c8c858d4..2f6cf0bfb0 100644--- a/crates/macro_service_urls/src/test.rs+++ b/crates/macro_service_urls/src/test.rs@@ -30,31 +30,16 @@ fn auth_service_url_parses() {assert_parses_for_all_environments(AuthServiceUrl::default_for_environment);}-#[test]-fn pdf_service_url_parses() {- assert_parses_for_all_environments(PdfServiceUrl::default_for_environment);-}-#[test]fn document_storage_service_url_parses() {assert_parses_for_all_environments(DocumentStorageServiceUrl::default_for_environment);}-#[test]-fn websocket_service_url_parses() {- assert_parses_for_all_environments(WebsocketServiceUrl::default_for_environment);-}-#[test]fn connection_gateway_url_parses() {assert_parses_for_all_environments(ConnectionGatewayUrl::default_for_environment);}-#[test]-fn connection_gateway_websocket_url_parses() {- assert_parses_for_all_environments(ConnectionGatewayWebsocketUrl::default_for_environment);-}-#[test]fn document_cognition_service_url_parses() {assert_parses_for_all_environments(DocumentCognitionServiceUrl::default_for_environment);@@ -254,26 +239,14 @@ fn exported_service_urls_match_local_values() {service_urls.auth_service_url.as_ref(),"http://localhost:8080");- assert_eq!(- service_urls.pdf_service_url.as_ref(),- "http://localhost:4567"- );assert_eq!(service_urls.document_storage_service_url.as_ref(),"http://localhost:8086",);- assert_eq!(- service_urls.websocket_service_url.as_ref(),- "ws://localhost:6969"- );assert_eq!(service_urls.connection_gateway_url.as_ref(),"http://localhost:8082",);- assert_eq!(- service_urls.connection_gateway_websocket_url.as_ref(),- "ws://localhost:8082",- );assert_eq!(service_urls.document_cognition_service_url.as_ref(),"http://localhost:8085",@@ -324,26 +297,14 @@ fn exported_service_urls_match_dev_values() {service_urls.auth_service_url.as_ref(),"https://auth-service-dev.macro.com",);- assert_eq!(- service_urls.pdf_service_url.as_ref(),- "https://pdf-service-dev.macro.com",- );assert_eq!(service_urls.document_storage_service_url.as_ref(),"https://dev-gateway.macro.com/dss",);- assert_eq!(- service_urls.websocket_service_url.as_ref(),- "wss://services-dev.macro.com",- );assert_eq!(service_urls.connection_gateway_url.as_ref(),"https://connection-gateway-dev.macro.com",);- assert_eq!(- service_urls.connection_gateway_websocket_url.as_ref(),- "wss://connection-gateway-dev.macro.com",- );assert_eq!(service_urls.document_cognition_service_url.as_ref(),"https://document-cognition-dev.macro.com",@@ -391,26 +352,14 @@ fn exported_service_urls_match_prod_values() {service_urls.auth_service_url.as_ref(),"https://auth-service.macro.com",);- assert_eq!(- service_urls.pdf_service_url.as_ref(),- "https://pdf-service.macro.com",- );assert_eq!(service_urls.document_storage_service_url.as_ref(),"https://gateway.macro.com/dss",);- assert_eq!(- service_urls.websocket_service_url.as_ref(),- "wss://services.macro.com",- );assert_eq!(service_urls.connection_gateway_url.as_ref(),"https://connection-gateway.macro.com",);- assert_eq!(- service_urls.connection_gateway_websocket_url.as_ref(),- "wss://connection-gateway.macro.com",- );assert_eq!(service_urls.document_cognition_service_url.as_ref(),"https://document-cognition.macro.com",@@ -459,26 +408,14 @@ fn exported_service_url_override_names_are_derived_from_env_var_names() {AuthServiceUrl::local().override_env_var_name(),"OVERRIDE_AUTH_SERVICE_URL",);- assert_eq!(- PdfServiceUrl::local().override_env_var_name(),- "OVERRIDE_PDF_SERVICE_URL",- );assert_eq!(DocumentStorageServiceUrl::local().override_env_var_name(),"OVERRIDE_DOCUMENT_STORAGE_SERVICE_URL",);- assert_eq!(- WebsocketServiceUrl::local().override_env_var_name(),- "OVERRIDE_WEBSOCKET_SERVICE_URL",- );assert_eq!(ConnectionGatewayUrl::local().override_env_var_name(),"OVERRIDE_CONNECTION_GATEWAY_URL",);- assert_eq!(- ConnectionGatewayWebsocketUrl::local().override_env_var_name(),- "OVERRIDE_CONNECTION_GATEWAY_WEBSOCKET_URL",- );assert_eq!(DocumentCognitionServiceUrl::local().override_env_var_name(),"OVERRIDE_DOCUMENT_COGNITION_SERVICE_URL",