diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png index e3e93b3dd9678..b54d4facb0bfe 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--dark.png differ diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png index d4377362d9270..332ea24ce3084 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-detailed--light.png differ diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--dark.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--dark.png index fe89947c699ee..8ac461d15d0bb 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--dark.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--dark.png differ diff --git a/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--light.png b/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--light.png index b2c01e25a4548..bbb59b784ba62 100644 Binary files a/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--light.png and b/frontend/__snapshots__/exporter-exporter--trends-line-insight-legend--light.png differ diff --git a/frontend/src/scenes/pipeline/pipelineAccessLogic.tsx b/frontend/src/scenes/pipeline/pipelineAccessLogic.tsx index 50f4a35ec0108..5c658302553da 100644 --- a/frontend/src/scenes/pipeline/pipelineAccessLogic.tsx +++ b/frontend/src/scenes/pipeline/pipelineAccessLogic.tsx @@ -20,8 +20,7 @@ export const pipelineAccessLogic = kea([ canEnableNewDestinations: [ (s) => [s.user, s.hasAvailableFeature], (user, hasAvailableFeature) => - user?.is_impersonated || - (canConfigurePlugins(user?.organization) && hasAvailableFeature(AvailableFeature.DATA_PIPELINES)), + canConfigurePlugins(user?.organization) && hasAvailableFeature(AvailableFeature.DATA_PIPELINES), ], canEnableDestination: [ diff --git a/posthog/api/hog_function.py b/posthog/api/hog_function.py index d1dc2aca65860..881f6a79bd2b1 100644 --- a/posthog/api/hog_function.py +++ b/posthog/api/hog_function.py @@ -138,16 +138,6 @@ def validate(self, attrs): {"template_id": "The Data Pipelines addon is required for this template."} ) - if attrs.get("hog"): - raise serializers.ValidationError( - {"hog": "The Data Pipelines addon is required to create custom functions."} - ) - - if attrs.get("inputs_schema"): - raise serializers.ValidationError( - {"inputs_schema": "The Data Pipelines addon is required to create custom functions."} - ) - # Without the addon, they cannot deviate from the template attrs["inputs_schema"] = template.inputs_schema attrs["hog"] = template.hog diff --git a/posthog/api/test/test_hog_function.py b/posthog/api/test/test_hog_function.py index b848117c81ca5..0b845431b6591 100644 --- a/posthog/api/test/test_hog_function.py +++ b/posthog/api/test/test_hog_function.py @@ -102,9 +102,10 @@ def test_free_users_cannot_override_hog_or_schema(self): ], } ) - - assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json() - assert response.json()["detail"] == "The Data Pipelines addon is required to create custom functions." + new_response = response.json() + # These did not change + assert new_response["hog"] == template_slack.hog + assert new_response["inputs_schema"] == template_slack.inputs_schema def test_free_users_cannot_use_without_template(self): response = self._create_slack_function({"template_id": None})