Skip to content

Commit

Permalink
fix api naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 30, 2024
1 parent a293e27 commit f1e9905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion posthog/api/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get_decide(request: HttpRequest):
else:
response["featureFlags"] = {}

response["capture_dead_clicks"] = True if team.capture_dead_clicks else False
response["captureDeadClicks"] = True if team.capture_dead_clicks else False

capture_network_timing = True if team.capture_performance_opt_in else False
capture_web_vitals = True if team.autocapture_web_vitals_opt_in else False
Expand Down
4 changes: 2 additions & 2 deletions posthog/api/test/test_decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,12 @@ def test_user_heatmaps_opt_in(self, *args):
def test_user_capture_dead_clicks_opt_in(self, *args):
# :TRICKY: Test for regression around caching
response = self._post_decide().json()
self.assertEqual(response["capture_dead_clicks"], False)
self.assertEqual(response["captureDeadClicks"], False)

self._update_team({"capture_dead_clicks": True})

response = self._post_decide().json()
self.assertEqual(response["capture_dead_clicks"], True)
self.assertEqual(response["captureDeadClicks"], True)

def test_user_session_recording_allowed_when_no_permitted_domains_are_set(self, *args):
self._update_team({"session_recording_opt_in": True, "recording_domains": []})
Expand Down

0 comments on commit f1e9905

Please sign in to comment.