feat: Approve ai data processing in app for admins#2367
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
What T-Rex did
ArtifactsTargeted component test startup log
|
d7fda5b to
58fa0a9
Compare
446682a to
89b8708
Compare
58fa0a9 to
dad2dca
Compare
6cc0d57 to
3cf4284
Compare
0dad1de to
ef18623
Compare
3cf4284 to
10ef24e
Compare
ef18623 to
e957425
Compare
10ef24e to
00f8d97
Compare
e957425 to
7a7aba4
Compare
bbe83b1 to
cf0e2a9
Compare
7a7aba4 to
afbf542
Compare
cf0e2a9 to
16da428
Compare
afbf542 to
e48476c
Compare

Problem
The AI consent gate kicked admins out to the PostHog web app via
openExternalto approve AI data processing. The flow is jarring and unnecessary, sincePATCH /api/organizations/@current/works under the current OAuth scope.Changes
PostHogAPIClient.approveAiDataProcessing()that PATCHes/api/organizations/@current/useMutationcurrentUserquery family on success so the gate predicate re-evaluates and the screen unmounts automaticallyAI_CONSENT_GRANTED_INAPPanalytics event on successHow did you test this?
manually
Publish to changelog?
no