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

raystack / frontier / 24444825715
42%
main: 42%

Build:
Build:
LAST BUILD BRANCH: feat/membership-set-org-member-role
DEFAULT BRANCH: main
Ran 15 Apr 2026 08:43AM UTC
Jobs 1
Files 275
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

15 Apr 2026 08:33AM UTC coverage: 41.679% (-0.05%) from 41.727%
24444825715

Pull #1541

github

whoAbhishekSah
feat: move SetOrganizationMemberRole to membership package

Moves SetMemberRole logic from organization service into the
membership package as SetOrganizationMemberRole, with relation
cleanup added (fixes the known leak where demoting owner to viewer
left the org#owner relation in place).

- New: membership.SetOrganizationMemberRole with validateMinOwnerConstraint,
  replacePolicy, replaceRelation
- Removed from organization service: SetMemberRole,
  validateSetMemberRoleRequest, getUserOrgPolicies,
  validateMinOwnerConstraint, replaceUserOrgPolicies
- Handler rewired from orgService.SetMemberRole to
  membershipService.SetOrganizationMemberRole
- Added 6 unit tests covering skip-unchanged, last-owner constraint,
  owner->viewer demotion (with relation swap), viewer->owner promotion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pull Request #1541: feat: move SetOrganizationMemberRole to membership package

100 of 128 new or added lines in 2 files covered. (78.13%)

4 existing lines in 1 file now uncovered.

15261 of 36616 relevant lines covered (41.68%)

11.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
26
86.45
-7.34% core/membership/service.go
2
60.68
-0.22% internal/api/v1beta1connect/organization.go

Coverage Regressions

Lines Coverage ∆ File
4
37.87
-13.42% core/organization/service.go
Jobs
ID Job ID Ran Files Coverage
1 24444825715.1 15 Apr 2026 08:43AM UTC 275
41.68
GitHub Action Run
Source Files on build 24444825715
  • Tree
  • List 275
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1541
  • PR Base - main (#24439574956)
  • 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