Skip to content

feat(frontier): add SetProjectMemberRole RPC#456

Open
whoAbhishekSah wants to merge 1 commit intomainfrom
feat/set-project-member-role
Open

feat(frontier): add SetProjectMemberRole RPC#456
whoAbhishekSah wants to merge 1 commit intomainfrom
feat/set-project-member-role

Conversation

@whoAbhishekSah
Copy link
Copy Markdown
Member

@whoAbhishekSah whoAbhishekSah commented Mar 27, 2026

Summary

  • Add SetProjectMemberRole RPC for atomic role assignment on project members
  • Add request/response message definitions with UUID validation

Related: raystack/frontier#1461

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added API endpoint to set and manage project member roles, allowing administrators to assign or update roles for team members within projects.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 27, 2026

Warning

Rate limit exceeded

@whoAbhishekSah has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 3 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 3 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 52561782-aa78-49c5-bef4-28fb618b4add

📥 Commits

Reviewing files that changed from the base of the PR and between c0f7151 and f51485d.

📒 Files selected for processing (1)
  • raystack/frontier/v1beta1/frontier.proto
📝 Walkthrough

Walkthrough

Added a new RPC service method SetProjectMemberRole to the FrontierService in the frontier.proto file. This endpoint accepts a request containing project ID, user ID, and role ID (all validated as UUIDs) and returns an empty response, enabling role assignment for project members.

Changes

Cohort / File(s) Summary
Protobuf Service Definition
raystack/frontier/v1beta1/frontier.proto
Added SetProjectMemberRole RPC method to FrontierService with new request message containing validated UUID fields for project_id, user_id, and role_id, plus an empty response message.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • rsbh
  • AmanGIT07

Poem

🐰 With whiskers twitching, bright and keen,
A method new has swiftly been,
SetProjectMemberRole takes flight,
With UUIDs shining oh-so-bright!
New schema hops into the light. 🌟

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a new SetProjectMemberRole RPC endpoint to the frontier service.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/set-project-member-role

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.

Support user, service user, and group principals via principal_id
and principal_type fields.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@whoAbhishekSah whoAbhishekSah force-pushed the feat/set-project-member-role branch from 7657a80 to f51485d Compare March 27, 2026 05:30
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