Skip to content

feat: UpdateCurrentUserPAT RPC proto definition#450

Open
AmanGIT07 wants to merge 3 commits intomainfrom
feat/update-current-user-pat
Open

feat: UpdateCurrentUserPAT RPC proto definition#450
AmanGIT07 wants to merge 3 commits intomainfrom
feat/update-current-user-pat

Conversation

@AmanGIT07
Copy link
Contributor

@AmanGIT07 AmanGIT07 commented Mar 20, 2026

Summary by CodeRabbit

  • New Features
    • Added a new API endpoint enabling users to update Personal Access Tokens with configurable attributes including token titles, role assignments, project access settings, and custom metadata.

@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

📝 Walkthrough

Walkthrough

A new UpdateCurrentUserPAT RPC endpoint is added to the FrontierService protobuf, enabling clients to update Personal Access Token details including title, associated role IDs, and project IDs.

Changes

Cohort / File(s) Summary
PAT Update API
raystack/frontier/v1beta1/frontier.proto
Added UpdateCurrentUserPAT RPC method with new UpdateCurrentUserPATRequest (id, title, role_ids, project_ids, metadata fields) and UpdateCurrentUserPATResponse (returns updated PAT object). Includes validation: UUID id, non-empty title, and required non-empty role_ids array.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • whoAbhishekSah
  • rohilsurana

Poem

🐰 A PAT update hops into view,
Titles and roles get their refresh too,
With validation that's squeaky clean,
The finest API change we've seen! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately describes the main change: adding the UpdateCurrentUserPAT RPC proto definition. It is concise, specific, and clearly communicates the primary purpose of the 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 feat/update-current-user-pat
📝 Coding Plan
  • Generate coding plan for human review comments

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.

@AmanGIT07 AmanGIT07 changed the title feat: UpdateCurrentUserPATRequest RPC proto definition feat: UpdateCurrentUserPAT RPC proto definition Mar 20, 2026
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