Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable dashboard insights refresh chaining #24057

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading