feat: add slug to v1/listPermissions and v1/getPermission#3466
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
📝 WalkthroughWalkthroughThe changes add a Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
participant DB
Client->>API: GET /v1/permissions.listPermissions
API->>DB: Fetch all permissions
DB-->>API: Permissions (id, name, description, slug)
API-->>Client: JSON response (includes slug for each permission)
Client->>API: GET /v1/permissions.getPermission?id=X
API->>DB: Fetch permission by id
DB-->>API: Permission (id, name, description, slug)
API-->>Client: JSON response (includes slug)
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
🔇 Additional comments (2)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
What does this PR do?
Fixes #3452
Type of change
How should this be tested?
Automated tests included
Test 1
Test 2
Checklist
Required
pnpm buildpnpm fmtconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit
New Features
slug, to the API responses for permission details and permission lists. This field is now visible in the returned data and documented in the API schema.Tests
slugfield in API responses.