Repository navigation
remove tableCreateGeneratePolicies experiment (failed variant) - #43498
Conversation
The variation (RLSManagement AI policy generator) did not pass — remove all experiment scaffolding and make the control (standard RLS checkbox) permanent. Deletes the PostHog flag check, the feature hook, and the entire RLSManagement component directory. GROWTH-653
|
The latest updates on your projects. Learn more about Vercel for GitHub.
7 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis pull request removes the table creation policy generation feature from the Studio application. It deletes the feature flag hook ( Sequence Diagram(s)mermaid mermaid Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx (1)
379-547:⚠️ Potential issue | 🟡 MinorPrettier is still failing on this file.
CI is red on
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx, so this JSX block needs to be reformatted before merge.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx` around lines 379 - 547, Prettier formatting failed for the JSX in the TableEditor component (the SidePanel.Content / SidePanel.Separator blocks and nested components like Checkbox, Admonition, ColumnManagement, SpreadsheetImport, ConfirmationModal, ForeignKeysManagement, ApiAccessToggle); run Prettier on this file and reformat the JSX (or run eslint --fix / yarn prettier --write apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx) so opening/closing tags, props alignment, and indentation conform to project Prettier rules, then re-run CI to confirm the file passes formatting checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In
`@apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx`:
- Around line 379-547: Prettier formatting failed for the JSX in the TableEditor
component (the SidePanel.Content / SidePanel.Separator blocks and nested
components like Checkbox, Admonition, ColumnManagement, SpreadsheetImport,
ConfirmationModal, ForeignKeysManagement, ApiAccessToggle); run Prettier on this
file and reformat the JSX (or run eslint --fix / yarn prettier --write
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsx)
so opening/closing tags, props alignment, and indentation conform to project
Prettier rules, then re-run CI to confirm the file passes formatting checks.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Repository UI (inherited), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 53175c7d-b347-46ff-b6d0-d30923747fcc
📒 Files selected for processing (7)
apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/PolicyList.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/PolicyListEmptyState.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/RLSManagement.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/ToggleRLSButton.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/TableEditor.tsxapps/studio/hooks/misc/useTableCreateGeneratePolicies.ts
💤 Files with no reviewable changes (6)
- apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
- apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/PolicyListEmptyState.tsx
- apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/ToggleRLSButton.tsx
- apps/studio/hooks/misc/useTableCreateGeneratePolicies.ts
- apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/RLSManagement.tsx
- apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSManagement/PolicyList.tsx
🎭 Playwright Test ResultsDetails
Skipped testsFeatures › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected |
awaseem
left a comment
There was a problem hiding this comment.
LGTM you just need to format code. approving to unblock
Braintrust eval report
|
Problem
The
tableCreateGeneratePoliciesA/B experiment tested an AI-assisted policy generator (RLSManagement) as a variation in the table creation side panel. The variation didn't pass — control wins, so the standard RLS checkbox should be the permanent behavior.Changes
useTableCreateGeneratePolicieshook (PostHog flag + exposure tracking)RLSManagement/component directory (variation UI —RLSManagement,PolicyList,PolicyListEmptyState,ToggleRLSButton)TableEditor.tsx— RLS checkbox is now always rendered (was already the control)SidePanelEditor.tsxTesting
Verified
pnpm typecheckpasses clean. Table creation side panel renders the RLS checkbox unconditionally as it did in the control.GROWTH-653