• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

raystack / frontier / 25780342597
42%
main: 44%

Build:
Build:
LAST BUILD BRANCH: feat/gitops-platform-users
DEFAULT BRANCH: main
Ran 13 May 2026 05:35AM UTC
Jobs 1
Files 276
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 May 2026 05:30AM UTC coverage: 42.288% (-0.003%) from 42.291%
25780342597

Pull #1603

github

whoAbhishekSah
refactor(membership): make SetGroupMemberRole an upsert

SetGroupMemberRole now adds a new member when the principal has no
existing group policy, and changes the role otherwise. New adds validate
that the principal is a member of the parent organization. The min-owner
constraint still applies to demotions.

This unifies add and role-change into one public RPC so the SDK can use a
single mutation for group membership writes, eliminating the need to
expose AddGroupMember as a proto RPC.

- Drops ErrNotMember from the SetGroupMemberRole path; ErrNotOrgMember
  surfaces instead when an upsert-add targets a non-org-member.
- Handler error mapping updated; new ErrNotOrgMember Connect mapping.
- New unit tests cover both upsert paths: add (with org-member check) and
  the existing change paths remain intact.

AddGroupMember (service-only) is unchanged and continues to be used
internally by OnGroupCreated, where the creator is always a fresh add.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #1603: refactor(membership): make SetGroupMemberRole an upsert

13 of 24 new or added lines in 2 files covered. (54.17%)

33 existing lines in 1 file now uncovered.

15883 of 37559 relevant lines covered (42.29%)

11.9 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
79.78
-0.77% core/membership/service.go

Coverage Regressions

Lines Coverage ∆ File
33
79.78
-0.77% core/membership/service.go
Jobs
ID Job ID Ran Files Coverage
1 25780342597.1 13 May 2026 05:35AM UTC 276
42.29
GitHub Action Run
Source Files on build 25780342597
  • Tree
  • List 276
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1603
  • PR Base - main (#25779921300)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc