Update docs examples to use permission class#10707
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (203)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the ✨ 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 |
commit: |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
There was a problem hiding this comment.
Pull Request Overview
This pull request updates documentation examples across multiple programming languages and SDKs to use the new Permission and Role classes for defining permissions, replacing the legacy string-based format. The changes affect examples for databases, storage, and tablesdb services across 16 different SDK implementations (Swift, Ruby, Python, PHP, Node.js, Kotlin, Dart, .NET, Go, GraphQL, REST, CLI, Web, React Native, Flutter, Apple, and Android).
- Updated permission syntax from string format
["read("any")"]to class-based format[Permission.read(Role.any())] - Added necessary import statements for
PermissionandRoleclasses - Added new examples for Resend messaging provider (create and update operations)
Reviewed Changes
Copilot reviewed 202 out of 203 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| server-swift/examples/**/*.md | Updated Swift server examples with Permission/Role imports and usage |
| server-ruby/examples/**/*.md | Updated Ruby server examples with Permission/Role includes and usage |
| server-python/examples/**/*.md | Updated Python server examples with Permission/Role imports and usage |
| server-php/examples/**/*.md | Updated PHP server examples with Permission/Role use statements |
| server-kotlin/examples/**/*.md | Updated Kotlin/Java server examples with Permission/Role imports |
| server-dotnet/examples/**/*.md | Updated .NET server examples with Permission/Role using statements |
| server-dart/examples/**/*.md | Updated Dart server examples with Permission/Role imports |
| client-/examples/**/.md | Updated client SDK examples across web, mobile, and desktop platforms |
| server-nodejs/examples/messaging/*.md | Added Node.js examples for Resend provider |
| server-go/examples/messaging/*.md | Added Go examples for Resend provider |
| server-rest/examples/messaging/*.md | Added REST API examples for Resend provider |
| server-graphql/examples/messaging/*.md | Added GraphQL examples for Resend provider |
| console-/examples/**/.md | Updated console examples with Permission/Role syntax |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✨ Benchmark results
⚡ Benchmark Comparison
|
No description provided.