Repository navigation
Conversation
…inks The first-time security gate landing page builds /auth/policies?schema=...&search=... by interpolating table.schema and table.name directly. A table or schema name containing &, =, +, or # corrupts the destination link and routes the user to the wrong filter, which is especially bad on this onboarding surface. Extracts the URL builder into getTablePoliciesHref in ProjectNeedsSecuring.utils.ts with encodeURIComponent wraps, and replaces the inline interpolation. Same pattern as supabase#45385 (Linter shortcut links).
|
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)
📝 WalkthroughWalkthroughAdded ChangesProject Policies URL Encoding
🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 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)
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 #45847.
Summary
ProjectNeedsSecuringView.tsxbuilt theView policieshref on the first-time security gate by interpolatingtable.schemaandtable.namedirectly into the URL. A table or schema containing&,=,+, or#corrupted the destination and routed the user to the wrong policies filter on what is meant to be a guided onboarding flow.Extracts the URL into
getTablePoliciesHrefinProjectNeedsSecuring.utils.tswithencodeURIComponentwraps, and replaces the inline interpolation. Same pattern as #45385.Test plan
Added
ProjectNeedsSecuring.utils.test.tscoveringgetTablePoliciesHref(plain values, special chars in name, special chars in schema, both, undefined inputs) and pulling in the previously-untestedgetTableKey,formatRlsDescription,sortTables, andbuildSecurityPromptMarkdownutilities. Ten tests total.Summary by CodeRabbit
Tests
Refactor