Repository navigation
docs: improve discoverability of custom schemas documentation - #42634
ChrisChinchilla merged 3 commits into
Conversation
- Add cross-reference links in the database tables page pointing to the "Using Custom Schemas" and "Hardening the Data API" guides - Add "Using Custom Schemas" to the database navigation sidebar under "Access and security" so it's discoverable from the database section - Mention service_role in the hardening guide's schema grants, since the existing example only included anon and authenticated Closes supabase#39856
|
Thanks for contributing to Supabase! ❤️ Our team will review your PR. A few tips for a smoother review process:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@yogeshwaran-c is attempting to deploy a commit to the Supabase Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughDocumentation updates to improve guidance on custom schemas and Data API access permissions. A new navigation item directs users to the "Using Custom Schemas" guide, and existing database documentation is enhanced with admonitions and clarifications about exposing custom schemas and granting required permissions including service_role. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
🚥 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)
No actionable comments were generated in the recent review. 🎉 Comment |
# Conflicts: # apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts # apps/docs/content/guides/database/hardening-data-api.mdx
Braintrust eval report
|
What kind of change does this PR introduce?
Documentation improvement
What is the current behavior?
The documentation for using custom schemas is buried under the REST API section (
/guides/api/using-custom-schemas), making it hard for users to find when they first encounter schemas in the database documentation. Users who create custom schemas often don't realize they need to configure API access and grant permissions, leading to confusion.Closes #39856
What is the new behavior?
Three improvements to make custom schemas documentation more discoverable:
/guides/database/tableslinking to both the "Using Custom Schemas" guide and the "Hardening the Data API" guideservice_rolealongsideanonandauthenticated, since users with server-side access also need this grantAdditional context
The issue author spent hours debugging custom schema access because the documentation wasn't linked from where schemas are first introduced (the database tables page). These changes create a clear path from learning about schemas → configuring API access → security hardening.
Summary by CodeRabbit