: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(api): Remove org scoped API (#108160)
Tomás Farías Santana517d08821173
diff --git a/frontend/src/scenes/max/maxBillingContextLogic.test.ts b/frontend/src/scenes/max/maxBillingContextLogic.test.tsindex f21a104c5811..e9670f2e6383 100644--- a/frontend/src/scenes/max/maxBillingContextLogic.test.ts+++ b/frontend/src/scenes/max/maxBillingContextLogic.test.ts@@ -281,7 +281,6 @@ describe('maxBillingContextLogic', () => {'/api/environments/:team_id/pipeline-destinations': { results: mockDestinations },'/api/environments/:team_id/plugin_configs': { results: [] },'/api/organizations/:organization_id/plugins': { results: [] },- '/api/organizations/:organization_id/batch_exports': { results: [] },'/api/projects/:project_id/pipeline_destination_configs/': { results: [] },'/api/environments/:team_id/batch_exports/': { results: [] },},diff --git a/products/batch_exports/backend/api/batch_export.py b/products/batch_exports/backend/api/batch_export.pyindex 6433b91e80d1..f734095e1ca7 100644--- a/products/batch_exports/backend/api/batch_export.py+++ b/products/batch_exports/backend/api/batch_export.py@@ -2118,10 +2118,6 @@ class BatchExportViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, viewsets.ModelVireturn response.Response(result.as_dict())-class BatchExportOrganizationViewSet(BatchExportViewSet):- filter_rewrite_rules = {"organization_id": "team__organization_id"}--@dataclassclass BatchExportBackfillProgress:"""Progress information for a batch export backfill."""diff --git a/products/batch_exports/backend/routes.py b/products/batch_exports/backend/routes.pyindex 1c06cbe9f4d7..6dbcf7db4335 100644--- a/products/batch_exports/backend/routes.py+++ b/products/batch_exports/backend/routes.py@@ -28,10 +28,3 @@ def register_routes(routers: RouterRegistry) -> None:"project_batch_export_backfills",["team_id", "batch_export_id"],)-- routers.organizations.register(- r"batch_exports",- batch_exports.BatchExportOrganizationViewSet,- "batch_exports",- ["organization_id"],- )diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 054fcf09c3fc..50a8f8e6c0fe 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -107181,49 +107181,6 @@ export namespace Schemas {Ocsf: 'ocsf',} as const;- export type OrgOrganizationsBatchExportsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-- export type OrgOrganizationsBatchExportsLogsRetrieveParams = {- /**- * Only return entries after this ISO 8601 timestamp. Defaults to 7 days ago; pass an explicit value to read further back.- */- after?: string;- /**- * Only return entries before this ISO 8601 timestamp.- */- before?: string;- /**- * Filter logs to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1- */- level?: string;- /**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500- */- limit?: number;- /**- * Case-insensitive substring search across log messages.- * @minLength 1- */- search?: string;- };-export type BillingAlertsListParams = {/*** Number of results to return per page.