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

raystack / frontier / 25849580212 / 1
42%
main: 42%

Build:
Build:
LAST BUILD BRANCH: fix/sanitize-internal-error-responses
DEFAULT BRANCH: main
Ran 14 May 2026 08:20AM UTC
Files 276
Run time 16s
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.1

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

15950 of 37651 relevant lines covered (42.36%)

11.89 hits per line

Source Files on job 25849580212.1
  • Tree
  • List 276
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25849580212
  • d4efb418 on github
  • Prev Job for on refactor/removegroupuser-via-membership (#25845717351.1)
  • 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