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

raystack / frontier / 26841972627
43%
main: 43%

Build:
Build:
LAST BUILD BRANCH: fix/docker-run-as-nonroot
DEFAULT BRANCH: main
Ran 02 Jun 2026 07:12PM 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

02 Jun 2026 07:05PM UTC coverage: 43.15% (-0.04%) from 43.193%
26841972627

Pull #1668

github

AmanGIT07
feat(userpat): route policy writes through membership; enforce 1 role per scope

userpat now uses the membership package for all policy operations rather
than calling policy service directly:

- createPolicies routes each scope to SetOrganizationMemberRole,
  SetPATAllProjectsRole, or SetProjectMemberRole based on scope shape
- Delete and Update wipe existing policies via RemoveAllPATPolicies
- enrichWithScope reads policies via ListPoliciesByPrincipal
- PolicyService interface removed from userpat (replaced by
  MembershipService)
- New ErrDuplicateScope rejects more than one role per resource type
  (org or project) in a single request
- Update guards on PAT expiry upfront with ErrExpired so the membership
  layer never sees an expired PAT
- mapPATError handles the two new errors

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #1668: feat(userpat): route policy writes through membership; enforce 1 role per scope

22 of 26 new or added lines in 3 files covered. (84.62%)

1 existing line in 1 file now uncovered.

16396 of 37998 relevant lines covered (43.15%)

12.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
88.79
-0.66% core/userpat/service.go
1
0.0
0.0% cmd/serve.go

Coverage Regressions

Lines Coverage ∆ File
1
88.79
-0.66% core/userpat/service.go
Jobs
ID Job ID Ran Files Coverage
1 26841972627.1 02 Jun 2026 07:12PM UTC 276
43.15
GitHub Action Run
Source Files on build 26841972627
  • Tree
  • List 276
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1668
  • PR Base - feat/membership-accept-pat-principal (#26841762955)
  • 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