Repository navigation
Reinstate https://github.com/supabase/supabase/pull/45143 into latest master - #47433
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe RLS Policies page now routes through ChangesRLS Policies page relocation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 3
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/App/CommandMenu/CreateCommands.tsx (1)
120-195: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winMove
create-rls-policyinto the Database command group.The route now targets
/database/policies, but this command is still emitted fromauthCommands. That keeps it under the Auth section and hides it wheneverauthEnabledis false, which no longer matches the new Database IA or the migrated Database shortcut/nav ownership.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx` around lines 120 - 195, Move the create-rls-policy entry out of authCommands and into the Database command group so it appears under the Database section and is not gated by authEnabled. Update the command list construction in CreateCommands.tsx, keeping the existing route and id but relocating the object alongside the other Database shortcuts so the grouping matches the new navigation ownership.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/studio/components/interfaces/App/FeaturePreview/RLSTesterPreview.tsx`:
- Around line 30-32: The link text in RLSTesterPreview no longer matches the
destination after the move; update the InlineLink copy used with the existing
href in RLSTesterPreview so it refers to the Database Policies screen instead of
“Authentication Policies page.” Locate the label alongside the href in the
RLSTesterPreview component and keep the wording aligned with the current page
name.
In `@apps/studio/components/layouts/AuthLayout/Auth.Commands.tsx`:
- Around line 41-47: The Auth command palette still registers a duplicate
Policies entry that now overlaps with the Database command. Remove the
`nav-auth-policies` command from `Auth.Commands.tsx` entirely instead of
changing its route, since `nav-database-policies` already owns the `Database:
Policies (RLS)` entry and `/project/${ref}/database/policies`. Focus the cleanup
in `Auth.Commands.tsx` by dropping the Policies command object from the command
list.
In `@apps/studio/state/shortcuts/registry/database-nav.ts`:
- Line 28: The NAV_DATABASE_POLICIES shortcut is reusing the D + P chord, which
conflicts with SchemaGraph’s “Download schema as PNG” binding in DatabaseLayout.
Update the shortcut definition in the database-nav registry to use a different,
non-conflicting key chord for Policies, and verify it does not overlap with any
Schema Visualizer shortcuts.
---
Outside diff comments:
In `@apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx`:
- Around line 120-195: Move the create-rls-policy entry out of authCommands and
into the Database command group so it appears under the Database section and is
not gated by authEnabled. Update the command list construction in
CreateCommands.tsx, keeping the existing route and id but relocating the object
alongside the other Database shortcuts so the grouping matches the new
navigation ownership.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 723a2d59-45a8-47d7-b83f-1e00a662a3e5
📒 Files selected for processing (85)
apps/docs/content/guides/api/securing-your-api.mdxapps/docs/content/guides/auth/general-configuration.mdxapps/docs/content/guides/auth/oauth-server/token-security.mdxapps/docs/content/guides/deployment/going-into-prod.mdxapps/studio/.github/eslint-rule-baselines.jsonapps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsxapps/studio/components/interfaces/App/CommandMenu/PolicySearchResults.tsxapps/studio/components/interfaces/App/FeaturePreview/RLSTesterPreview.tsxapps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsxapps/studio/components/interfaces/Auth/RLSTester/RLSTableCard.tsxapps/studio/components/interfaces/Auth/RLSTester/RLSTester.types.tsapps/studio/components/interfaces/Auth/RLSTester/RLSTesterResults.tsxapps/studio/components/interfaces/Auth/RLSTester/RLSTesterSheet.tsxapps/studio/components/interfaces/Auth/RLSTester/__tests__/RLSTesterResults.test.tsxapps/studio/components/interfaces/Auth/RLSTester/__tests__/RLSTesterResults.utils.test.tsapps/studio/components/interfaces/Auth/RLSTester/__tests__/useTestQueryRLS.utils.test.tsapps/studio/components/interfaces/Auth/RLSTester/useTestQueryRLS.utils.tsapps/studio/components/interfaces/Database/Policies/Policies.constants.tsapps/studio/components/interfaces/Database/Policies/Policies.tsxapps/studio/components/interfaces/Database/Policies/Policies.types.tsapps/studio/components/interfaces/Database/Policies/Policies.utils.test.tsapps/studio/components/interfaces/Database/Policies/Policies.utils.tsapps/studio/components/interfaces/Database/Policies/PoliciesDataContext.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/PolicyAllowedOperation.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/PolicyDefinition.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/PolicyEditorFooter.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/PolicyName.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/PolicyRoles.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditor/index.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorModal/PolicyEditorModal.constants.tsapps/studio/components/interfaces/Database/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorModal/index.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/LockedQuerySection.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanel.utils.tsapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/QueryError.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/RLSCodeEditor.tsxapps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/index.tsxapps/studio/components/interfaces/Database/Policies/PolicyReview.tsxapps/studio/components/interfaces/Database/Policies/PolicySelection.tsxapps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsxapps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRow.types.tsapps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRow.utils.test.tsapps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRow.utils.tsapps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsxapps/studio/components/interfaces/Database/Policies/PolicyTableRow/index.tsxapps/studio/components/interfaces/Database/Policies/PolicyTemplates/PolicyTemplates.constants.tsapps/studio/components/interfaces/Database/Policies/PolicyTemplates/TemplatePreview.tsxapps/studio/components/interfaces/Database/Policies/PolicyTemplates/TemplatesList.tsxapps/studio/components/interfaces/Database/Policies/PolicyTemplates/index.tsxapps/studio/components/interfaces/Integrations/Queues/QueueTab.tsxapps/studio/components/interfaces/Linter/Linter.utils.tsxapps/studio/components/interfaces/Realtime/Policies.tsxapps/studio/components/interfaces/Storage/Storage.types.tsapps/studio/components/interfaces/Storage/Storage.utils.tsapps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicies.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketRow.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesEditor.tsxapps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxapps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.tsxapps/studio/components/interfaces/TableGridEditor/TableEntity.utils.test.tsapps/studio/components/interfaces/TableGridEditor/TableEntity.utils.tsapps/studio/components/layouts/AuthLayout/Auth.Commands.tsxapps/studio/components/layouts/AuthLayout/AuthLayout.utils.test.tsapps/studio/components/layouts/AuthLayout/AuthLayout.utils.tsapps/studio/components/layouts/DatabaseLayout/Database.Commands.tsxapps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsxapps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuring.test.tsxapps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuring.utils.test.tsapps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuring.utils.tsapps/studio/components/layouts/ProjectSettingsLayout/ProjectSettings.Commands.tsxapps/studio/components/layouts/TableEditorLayout/EntityListItem.tsxapps/studio/components/ui/AIAssistantPanel/AIAssistant.utils.tsapps/studio/data/database-policies/database-policies-query.tsapps/studio/pages/project/[ref]/database/policies.tsxapps/studio/redirects.shared.tsapps/studio/state/shortcuts/registry/auth-nav.tsapps/studio/state/shortcuts/registry/database-nav.tse2e/studio/features/rls-policies.spec.tspackages/common/telemetry-constants.ts
💤 Files with no reviewable changes (1)
- apps/studio/state/shortcuts/registry/auth-nav.ts
🎭 Playwright Test ResultsDetails
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations › reverted cell edit clears the pending change Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Braintrust eval report
|
Context
Previous PR was here but it got stale with lots of conflicts so figured it'll be easier redo it off the latest master
Moves policies page from Auth to Database under an Access Control section along with Roles. This moves all existing files, applies redirects, and updates urls to point to the new route
To test
Summary by CodeRabbit