• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / frontier / 25849580212
42%
main: 42%

Build:
Build:
LAST BUILD BRANCH: fix/sanitize-internal-error-responses
DEFAULT BRANCH: main
Ran 14 May 2026 08:20AM 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

14 May 2026 08:14AM UTC coverage: 42.363% (+0.08%) from 42.286%
25849580212

Pull #1611

github

whoAbhishekSah
refactor(group): migrate RemoveGroupUser handler to membership

The RemoveGroupUser RPC handler now delegates to a new
membershipService.RemoveGroupMember, completing the symmetry with the
AddGroupUsers migration (#1608). The proto RPC is unchanged.

- Adds RemoveGroupMember to core/membership/service.go. Validates
  principal, enforces the min-owner constraint via the existing atomic
  DeleteWithMinRoleGuard, cleans up both group#owner and group#member
  relations, and emits an audit event.
- Moves the min-owner pre-check out of the handler. Previously the
  handler called userService.ListByGroup(group.AdminRole) and compared
  counts; that race-prone two-step is replaced by validateMinGroupOwner
  + the atomic guard pattern already used by SetGroupMemberRole.
- Adds the GroupMemberRemovedEvent audit constant.

groupService.RemoveUsers / removeUsers are intentionally kept — they
serve the user-cascade path (core/deleter and group.Delete), which must
bypass the min-owner constraint when the user is being destroyed
system-wide. Matches the org pattern where Service.RemoveUsers and
RemoveOrganizationMember coexist.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #1611: refactor(group): migrate RemoveGroupUser handler to membership

73 of 88 new or added lines in 2 files covered. (82.95%)

4 existing lines in 1 file now uncovered.

15950 of 37651 relevant lines covered (42.36%)

11.89 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
81.67
0.6% core/membership/service.go
4
75.78
-0.83% internal/api/v1beta1connect/group.go

Coverage Regressions

Lines Coverage ∆ File
4
75.78
-0.83% internal/api/v1beta1connect/group.go
Jobs
ID Job ID Ran Files Coverage
1 25849580212.1 14 May 2026 08:19AM UTC 276
42.36
GitHub Action Run
Source Files on build 25849580212
  • Tree
  • List 276
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1611
  • PR Base - main (#25845717351)
  • 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