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

raystack / frontier / 30536703296 / 1
47%
main: 48%

Build:
Build:
LAST BUILD BRANCH: fix/list-plans-without-products
DEFAULT BRANCH: main
Ran 30 Jul 2026 11:02AM UTC
Files 296
Run time 10s
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.1

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

18242 of 38821 relevant lines covered (46.99%)

14.58 hits per line

Source Files on job 30536703296.1
  • Tree
  • List 296
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30536703296
  • 42a6da4b on github
  • Prev Job for on refactor/membership-dedupe (#30536660939.1)
  • 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