From 41dc411048b2c972a07d72b17882d9fdb944062c Mon Sep 17 00:00:00 2001 From: AASHISH MALIK Date: Mon, 2 Dec 2024 07:05:42 +0530 Subject: [PATCH] feat: posthog feature flag --- src/configurations/destinations/posthog/db-config.json | 6 ++++-- src/configurations/destinations/posthog/schema.json | 1 + src/configurations/destinations/posthog/ui-config.json | 10 ++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/configurations/destinations/posthog/db-config.json b/src/configurations/destinations/posthog/db-config.json index 0a214f6d2..c0dd106d4 100644 --- a/src/configurations/destinations/posthog/db-config.json +++ b/src/configurations/destinations/posthog/db-config.json @@ -18,7 +18,8 @@ "eventFilteringOption", "useV2Group", "consentManagement", - "ketchConsentPurposes" + "ketchConsentPurposes", + "flags" ], "transformAtV1": "processor", "saveDestinationResponse": true, @@ -76,7 +77,8 @@ "consentManagement", "connectionMode", "oneTrustCookieCategories", - "ketchConsentPurposes" + "ketchConsentPurposes", + "flags" ], "android": [ "connectionMode", diff --git a/src/configurations/destinations/posthog/schema.json b/src/configurations/destinations/posthog/schema.json index 1acf1a2c4..853962072 100644 --- a/src/configurations/destinations/posthog/schema.json +++ b/src/configurations/destinations/posthog/schema.json @@ -2,6 +2,7 @@ "configSchema": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "consentManagement": { "type": "object", diff --git a/src/configurations/destinations/posthog/ui-config.json b/src/configurations/destinations/posthog/ui-config.json index 56e74320d..87cbab046 100644 --- a/src/configurations/destinations/posthog/ui-config.json +++ b/src/configurations/destinations/posthog/ui-config.json @@ -99,6 +99,16 @@ "keyRight": "value", "value": "xhrHeaders" }, + { + "type": "dynamicForm", + "label": "Bootstrapping feature flags", + "note": "https://posthog.com/docs/feature-flags/bootstrapping", + "labelLeft": "Flag", + "labelRight": "Value", + "keyLeft": "flag", + "keyRight": "value", + "value": "flags" + }, { "type": "dynamicCustomForm", "value": "propertyBlackList",