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

raystack / frontier / 30536703296
47%
main: 47%

Build:
Build:
LAST BUILD BRANCH: feat/reconcile-billing-product
DEFAULT BRANCH: main
Ran 30 Jul 2026 11:02AM UTC
Jobs 1
Files 296
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

30 Jul 2026 10:57AM UTC coverage: 46.99% (-0.1%) from 47.138%
30536703296

Pull #1827

github

whoAbhishekSah
refactor(membership): deduplicate repeated patterns

Behavior unchanged; call sites and public signatures stay the same.

- One resourcePolicyFilter builds resource-scoped policy filters;
  the duplicate policyFilterForResource is gone. removeAllPolicies now
  goes through it and reuses removePoliciesByFilter, so its filter also
  pins resource_type (redundant with the per-type ID fields in SQL).
- validateOrgRole/validateProjectRole/validateGroupRole are one-line
  wrappers over a shared validateRoleForScope.
- validateMinOwnerConstraint/validateMinGroupOwnerConstraint are
  wrappers over a shared validateMinRoleConstraint.
- The five near-identical org/group audit helpers delegate to one
  auditMemberChange that writes both audit stores.
- hasExactlyRole names the repeated "already has exactly this role"
  check.
- principalKey struct replaces the \x00-joined string map keys, and
  ListPrincipalsByResource's role enrichment moves into its own
  function.
- listOrgsForPrincipal/listGroupsForPrincipal reuse policyResourceIDs
  instead of hand-rolled pluck loops.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #1827: refactor(membership): deduplicate repeated patterns

146 of 158 new or added lines in 6 files covered. (92.41%)

1 existing line in 1 file now uncovered.

18242 of 38821 relevant lines covered (46.99%)

14.58 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.31
4.55% core/membership/service.go
5
84.51
-1.11% core/membership/list.go
1
93.65
0.52% core/membership/audit.go

Coverage Regressions

Lines Coverage ∆ File
1
93.65
0.52% core/membership/audit.go
Jobs
ID Job ID Ran Files Coverage
1 30536703296.1 30 Jul 2026 11:02AM UTC 296
46.99
GitHub Action Run
Source Files on build 30536703296
  • Tree
  • List 296
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1827
  • PR Base - main (#30536660939)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc