: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(frontend): restore nosemgrep suppression on org switch call (#116586)
Georges-Antoine Assidf70733d138a
diff --git a/frontend/src/scenes/userLogic.ts b/frontend/src/scenes/userLogic.tsindex b17a1eb3730c..7a3cc627005b 100644--- a/frontend/src/scenes/userLogic.ts+++ b/frontend/src/scenes/userLogic.ts@@ -824,8 +824,8 @@ export const userLogic = kea<userLogicType>([return}await breakpoint(10)- // nosemgrep: prefer-codegen-api -- Legacy raw API call with a hand-written URL and an unchecked response type. Use usersPartialUpdate() from '~/generated/core/api' instead.try {+ // nosemgrep: prefer-codegen-api -- Legacy raw API call with a hand-written URL and an unchecked response type. Use usersPartialUpdate() from '~/generated/core/api' instead.await api.update('api/users/@me/', { set_current_organization: organizationId })} catch {actions.updateCurrentOrganizationFailure()