Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(data-warehouse): clearer activity log for schema enable/disable (#60710)

Jovan Sakovic719b749a5ef2
diff --git a/products/data_warehouse/frontend/shared/components/activityDescriptions.tsx b/products/data_warehouse/frontend/shared/components/activityDescriptions.tsx
index 44f510f7275a..1c5c1bc1a36d 100644
--- a/products/data_warehouse/frontend/shared/components/activityDescriptions.tsx
+++ b/products/data_warehouse/frontend/shared/components/activityDescriptions.tsx
@@ -120,6 +120,19 @@ export function externalDataSourceActivityDescriber(
if (logItem.activity == 'updated') {
if (logItem.scope === ActivityScope.EXTERNAL_DATA_SCHEMA) {
+ const changes = logItem.detail?.changes ?? []
+ const enabledChange = changes.find((change) => change.field === 'enabled')
+ if (enabledChange && changes.length === 1) {
+ const verb = enabledChange.after ? 'enabled' : 'disabled'
+ return {
+ description: (
+ <>
+ <strong className="ph-no-capture">{userNameForLogItem(logItem)}</strong> {verb} schema{' '}
+ <strong>{displayName}</strong>
+ </>
+ ),
+ }
+ }
return {
description: (
<>