refactor: remove org key dead code and update stale comments#320
refactor: remove org key dead code and update stale comments#320sweetmantech wants to merge 1 commit intotestfrom
Conversation
- Delete lib/keys/org/ directory (createOrgApiKeysHandler, getOrgApiKeysHandler, onlyOrgAccounts) - Simplify createApiKeyHandler and getApiKeysHandler to remove org delegation branches - Simplify deleteApiKeyHandler to only allow deleting own keys (removed org membership check) - Remove organizationId field from validateCreateApiKeyBody schema - Update ~60 stale "org key" / "personal key" comments across handlers, validators, and test descriptions to reflect that all keys are now personal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (44)
📒 Files selected for processing (98)
📝 WalkthroughWalkthroughThis pull request transitions the API's authorization model from organization API keys to an access-control system based on shared organization membership. Changes include removing organization-scoped API key handlers, updating authorization documentation throughout the codebase, and adding JSDoc parameter annotations across numerous functions. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Summary
lib/keys/org/(createOrgApiKeysHandler, getOrgApiKeysHandler, onlyOrgAccounts)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Bug Fixes