From 601090511bde0cd39985f670d7d2acc895f2594c Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Fri, 20 Sep 2024 13:25:06 -0400 Subject: [PATCH] Remove `system_id` from all events but `editor_events` (#18154) Release Notes: - N/A --- crates/collab/src/api/events.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/collab/src/api/events.rs b/crates/collab/src/api/events.rs index 008c76e048b9d94288c1cd90819c36e87436fd21..f8ae53201304fb002784769b5ade68111fe9d836 100644 --- a/crates/collab/src/api/events.rs +++ b/crates/collab/src/api/events.rs @@ -905,7 +905,6 @@ impl AssistantEventRow { #[derive(Debug, clickhouse::Row, Serialize)] pub struct CpuEventRow { - system_id: Option, installation_id: Option, session_id: Option, is_staff: Option, @@ -944,7 +943,6 @@ impl CpuEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff, @@ -968,7 +966,6 @@ pub struct MemoryEventRow { os_version: String, // ClientEventBase - system_id: Option, installation_id: Option, session_id: Option, is_staff: Option, @@ -1000,7 +997,6 @@ impl MemoryEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff, @@ -1024,7 +1020,6 @@ pub struct AppEventRow { os_version: String, // ClientEventBase - system_id: Option, installation_id: Option, session_id: Option, is_staff: Option, @@ -1055,7 +1050,6 @@ impl AppEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff, @@ -1078,7 +1072,6 @@ pub struct SettingEventRow { os_version: String, // ClientEventBase - system_id: Option, installation_id: Option, session_id: Option, is_staff: Option, @@ -1109,7 +1102,6 @@ impl SettingEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff, @@ -1133,7 +1125,6 @@ pub struct ExtensionEventRow { os_version: String, // ClientEventBase - system_id: Option, installation_id: Option, session_id: Option, is_staff: Option, @@ -1169,7 +1160,6 @@ impl ExtensionEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff, @@ -1260,7 +1250,6 @@ pub struct EditEventRow { os_version: String, // ClientEventBase - system_id: Option, installation_id: Option, // Note: This column name has a typo in the ClickHouse table. #[serde(rename = "sesssion_id")] @@ -1298,7 +1287,6 @@ impl EditEventRow { release_channel: body.release_channel.clone().unwrap_or_default(), os_name: body.os_name.clone(), os_version: body.os_version.clone().unwrap_or_default(), - system_id: body.system_id.clone(), installation_id: body.installation_id.clone(), session_id: body.session_id.clone(), is_staff: body.is_staff,