:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(aio): scope the revision item list to its team and dataset (#130099)
posthog[bot]af67ca7d21a8
diff --git a/products/ai_observability/backend/api/datasets.py b/products/ai_observability/backend/api/datasets.pyindex 52227fdd85b7..4cf7bc87cd82 100644--- a/products/ai_observability/backend/api/datasets.py+++ b/products/ai_observability/backend/api/datasets.py@@ -1153,6 +1153,8 @@ class DatasetItemViewSet(TeamAndOrgViewSetMixin, GenericViewSet):archived=archived,).values("id")queryset = _item_version_queryset().filter(+ team_id=self.team.id,+ dataset_id=dataset.id,id__in=Subquery(version_ids),)