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
chg(opensearch): drop unknown fields instead of auto-creating (#2690)
gbirman87165100c860
diff --git a/infra/stacks/opensearch/helpers/scripts/create_emails_v2.ts b/infra/stacks/opensearch/helpers/scripts/create_emails_v2.tsindex 849500bcba..1cdaf50d99 100644--- a/infra/stacks/opensearch/helpers/scripts/create_emails_v2.ts+++ b/infra/stacks/opensearch/helpers/scripts/create_emails_v2.ts@@ -6,6 +6,7 @@ import { IS_DRY_RUN, SHARD_SETTINGS } from '../constants';const EMAIL_INDEX_V2 = 'emails_v2';const EMAIL_MAPPINGS = {+ dynamic: 'false' as const,properties: {entity_id: { type: 'keyword' as const },message_id: { type: 'keyword' as const },diff --git a/infra/stacks/opensearch/helpers/scripts/create_indices.ts b/infra/stacks/opensearch/helpers/scripts/create_indices.tsindex 468e214224..1f9bf9be6d 100644--- a/infra/stacks/opensearch/helpers/scripts/create_indices.ts+++ b/infra/stacks/opensearch/helpers/scripts/create_indices.ts@@ -25,6 +25,7 @@ async function createChannelIndex(opensearchClient: Client) {refresh_interval: '1s',},mappings: {+ dynamic: 'false',properties: {// channel identity_id: {@@ -96,6 +97,7 @@ async function createDocumentIndex(opensearchClient: Client) {refresh_interval: '1s',},mappings: {+ dynamic: 'false',properties: {// The id of the documententity_id: {@@ -172,6 +174,7 @@ async function createChatIndex(opensearchClient: Client) {refresh_interval: '1s',},mappings: {+ dynamic: 'false',properties: {/* All chat messages are put into OpenSearch under a chat index and are associated by their chat_id, chat_message_id, user_id, role, updated_at, title and content. */// The id of the chat@@ -239,6 +242,7 @@ async function createEmailIndex(opensearchClient: Client) {refresh_interval: '2s', // We don't need emails to refresh often},mappings: {+ dynamic: 'false',properties: {// The thread id of the emailentity_id: {