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

raystack / frontier / 25841154041 / 1
42%
main: 44%

Build:
Build:
LAST BUILD BRANCH: feat/gitops-platform-users
DEFAULT BRANCH: main
Ran 14 May 2026 04:15AM UTC
Files 276
Run time 5s
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 04:10AM UTC coverage: 42.268% (+0.02%) from 42.249%
25841154041.1

Pull #1608

github

whoAbhishekSah
fix(membership): atomic last-owner guard for SetGroupMemberRole

Applies the same TOCTOU fix from #1590 to the group path:

- validateMinGroupOwnerConstraint now returns the resolved group owner
  role ID alongside the error.
- SetGroupMemberRole passes that ID to replacePolicy so the owner-role
  delete uses DeleteWithMinRoleGuard (atomic in the DB) instead of a
  plain Delete after a stale read.
- replacePolicy returns the generic ErrLastOwnerRole on guard violation;
  SetGroupMemberRole converts it to ErrLastGroupOwnerRole so the handler
  error mapping and the user-facing message stay group-specific.

New unit test covers the race path: pre-check sees multiple owners, but
the DB guard reports the principal as the last owner at delete time.

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

15879 of 37567 relevant lines covered (42.27%)

11.88 hits per line

Source Files on job 25841154041.1
  • Tree
  • List 276
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25841154041
  • 28b1cac6 on github
  • Prev Job for on refactor/addgroupusers-via-membership (#25795537178.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