From 48d932f6e81e2b9fbf76e606e7da34647d6a453e Mon Sep 17 00:00:00 2001 From: Haven Date: Mon, 2 Dec 2024 14:12:45 -0800 Subject: [PATCH] chore(flags, activity): show $feature_flag_payload as official PostHog evt property (#26497) --- ee/hogai/taxonomy.py | 5 +++++ frontend/src/lib/taxonomy.tsx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ee/hogai/taxonomy.py b/ee/hogai/taxonomy.py index a213dbfb75c0d..5c7feccbd1af5 100644 --- a/ee/hogai/taxonomy.py +++ b/ee/hogai/taxonomy.py @@ -761,6 +761,11 @@ class CoreFilterDefinition(TypedDict): "description": "What the call to feature flag responded with.", "examples": ["true", "false"], }, + "$feature_flag_payload": { + "label": "Feature Flag Response Payload", + "description": "The JSON payload that the call to feature flag responded with (if any)", + "examples": ['{"variant": "test"}'], + }, "$feature_flag": { "label": "Feature Flag", "description": 'The feature flag that was called.\n\nWarning! This only works in combination with the $feature_flag_called event. If you want to filter other events, try "Active Feature Flags".', diff --git a/frontend/src/lib/taxonomy.tsx b/frontend/src/lib/taxonomy.tsx index 79b1284b72a1f..3d5f3f308349e 100644 --- a/frontend/src/lib/taxonomy.tsx +++ b/frontend/src/lib/taxonomy.tsx @@ -934,6 +934,11 @@ export const CORE_FILTER_DEFINITIONS_BY_GROUP = { description: 'What the call to feature flag responded with.', examples: ['true', 'false'], }, + $feature_flag_payload: { + label: 'Feature Flag Response Payload', + description: 'The JSON payload that the call to feature flag responded with (if any)', + examples: ['{"variant": "test"}'], + }, $feature_flag: { label: 'Feature Flag', description: (