Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace pgpolicy with crudpolicy #2499

Merged

Conversation

Copy link

vercel bot commented Nov 20, 2024

@dhanushreddy291 is attempting to deploy a commit to the neondatabase Team on Vercel.

A member of the Team first needs to authorize it.

@@ -257,51 +263,50 @@ export async function TodoList() {
```typescript shouldWrap
'use client';

import type { Todo } from '@/app/schema';
Copy link
Contributor Author

@dhanushreddy291 dhanushreddy291 Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of these were just proper indentation changes

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
neon-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 1:51pm

@@ -141,16 +141,18 @@ Now that you’ve integrated Auth0 with Neon Authorize, you can securely pass JW

### 1. Add Row-Level Security policies

Below are examples of RLS policies for a **todos** table, designed to restrict access so that users can only create, view, update, or delete their own todos.
Here's how to implement RLS policies for a **todos** table using a `crudPolicy`. This policy ensure users can only access and modify their own todos.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the language explaining these are examples only. We don't want people thinking they need to copy-paste these samples as part of the mandatory setup. Also, the drizzle tab is using crudPolicy, but the SQL tab is still using granular RLS.

"Here are examples of implementing RLS policies for a todos table – the Drizzle example leverages the simplified crudPolicy function, while the SQL example demonstrates the use of individual RLS policies."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@bgrenon
Copy link
Collaborator

bgrenon commented Nov 20, 2024

@davidgomes can you review the change to crudPolicy for the Drizzle tabs on these quickstart pages?

@dhanushreddy291 dhanushreddy291 force-pushed the update-docs/use-crud-policy branch 2 times, most recently from b153dbb to 8c00266 Compare November 20, 2024 15:33
@bgrenon bgrenon merged commit f8327b0 into neondatabase:main Nov 25, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants