Skip to content

Commit

Permalink
fix: disable dashboard insights refresh chaining (#24057)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai authored Jul 29, 2024
1 parent a29f408 commit fb0608b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions posthog/api/dashboards/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from posthog.api.routing import TeamAndOrgViewSetMixin
from posthog.api.shared import UserBasicSerializer
from posthog.api.tagged_item import TaggedItemSerializerMixin, TaggedItemViewSetMixin
from posthog.clickhouse.client.async_task_chain import task_chain_context
from posthog.event_usage import report_user_action
from posthog.helpers import create_dashboard_from_template
from posthog.helpers.dashboard_templates import create_from_template
Expand Down Expand Up @@ -458,9 +457,8 @@ def retrieve(self, request: Request, *args: Any, **kwargs: Any) -> Response:
dashboard = get_object_or_404(queryset, pk=pk)
dashboard.last_accessed_at = now()
dashboard.save(update_fields=["last_accessed_at"])
with task_chain_context():
serializer = DashboardSerializer(dashboard, context={"view": self, "request": request})
return Response(serializer.data)
serializer = DashboardSerializer(dashboard, context={"view": self, "request": request})
return Response(serializer.data)

@action(methods=["PATCH"], detail=True)
def move_tile(self, request: Request, *args: Any, **kwargs: Any) -> Response:
Expand Down

0 comments on commit fb0608b

Please sign in to comment.