Skip to content

Hide workspaces resource from API scopes#3901

Open
steven-tey wants to merge 1 commit into
mainfrom
update-scopes
Open

Hide workspaces resource from API scopes#3901
steven-tey wants to merge 1 commit into
mainfrom
update-scopes

Conversation

@steven-tey
Copy link
Copy Markdown
Collaborator

@steven-tey steven-tey commented May 13, 2026

Summary by CodeRabbit

  • Changes
    • Removed the workspaces resource from system configuration.

Review Change Stack

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dub Ready Ready Preview May 13, 2026 8:40pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e5189d5d-4a62-4fc6-a0e0-a346a6b41894

📥 Commits

Reviewing files that changed from the base of the PR and between 0834e7f and b5c6b23.

📒 Files selected for processing (1)
  • apps/web/lib/api/rbac/resources.ts
💤 Files with no reviewable changes (1)
  • apps/web/lib/api/rbac/resources.ts

📝 Walkthrough

Walkthrough

The RESOURCES array in the RBAC configuration file is updated to remove the Workspaces resource entry that previously appeared between analytics and domains. The change eliminates five lines from the exported constant.

Changes

Workspaces Resource Removal

Layer / File(s) Summary
Remove Workspaces from RBAC resources
apps/web/lib/api/rbac/resources.ts
The Workspaces resource object is removed from the RESOURCES array, leaving analytics followed directly by domains.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Workspaces once lived in the RBAC array,
Between analytics and domains, they'd stay,
But now they're removed with a gentle sweep,
The resources list is far more lean and neat!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing the 'workspaces' resource from the RESOURCES array to hide it from API scopes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-scopes

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant