Repository navigation
Conversation
GridHeaderActions builds /auth/policies?search=...&schema=... by interpolating table.name and table.schema directly. A table name or schema containing &, =, +, or # corrupts the destination URL and routes to the wrong policies filter. Extracts the URL builder into getTablePoliciesUrl in TableEntity.utils with encodeURIComponent wraps, and replaces both inline interpolations. Mirrors the pattern from supabase#45385 (Linter.utils).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
@oniani1 is attempting to deploy a commit to the Supabase Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for contributing to Supabase! ❤️ Our team will review your PR. A few tips for a smoother review process:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR extracts RLS policy URL construction into a dedicated ChangesRLS Policy URL Encoding
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Braintrust eval report
|
Closes #45845.
Summary
GridHeaderActions.tsxinterpolatedtable.nameandtable.schemadirectly into the policies URL at two<Link href>builders. A table or schema containing&,=,+, or#corrupted the destination and routed users to the wrong policies filter.Extracts the URL into
getTablePoliciesUrlinTableEntity.utils.tswithencodeURIComponentwraps, and replaces both inline interpolations. Same pattern as #45385 (Linter shortcut links).Test plan
Added four
getTablePoliciesUrlcases inTableEntity.utils.test.ts: plain values, special chars in name, special chars in schema, special chars in both. Existing seven tests in the same file still pass.Summary by CodeRabbit
Refactor
Tests