• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

raystack / frontier / 35692027216
51%
main: 51%

Build:
Build:
LAST BUILD BRANCH: soft-delete-org-projects-reads
DEFAULT BRANCH: main
Ran 22 Sep 2026 05:51AM UTC
Jobs 1
Files 310
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

22 Sep 2026 05:44AM UTC coverage: 50.738% (+0.4%) from 50.306%
35692027216

Pull #1936

github

whoAbhishekSah
fix(store): review follow-ups on the policy, relation, and resource reads

The last-owner guard counted soft-deleted holders of the guarded role, so a
deleted owner policy would have let the last live owner be removed. The
locked CTE now counts live rows only, with a test that soft-deletes one of
the holders.

The lookups of organization, project, and group titles for the policy audit
record go back to the plain From. They only attribute the audit record, and
the trail must stay attributed after the parent is deleted.

The roles join in the policy list query only matches live roles.

The relation and resource tests list with no filter and compare counts, so
the check runs on real rows instead of an empty result.
Pull Request #1936: feat(store): policy, relation, and resource reads skip soft-deleted rows

17 of 19 new or added lines in 3 files covered. (89.47%)

5 existing lines in 2 files now uncovered.

20855 of 41103 relevant lines covered (50.74%)

16.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
74.16
11.48% internal/store/postgres/policy_repository.go
1
62.56
18.46% internal/store/postgres/relation_repository.go

Coverage Regressions

Lines Coverage ∆ File
4
93.28
27.71% internal/store/postgres/org_serviceuser_repository.go
1
0.0
0.0% core/aggregates/orgserviceuser/orgserviceuser.go
Jobs
ID Job ID Ran Files Coverage
1 35692027216.1 22 Sep 2026 05:51AM UTC 310
50.74
GitHub Action Run
Source Files on build 35692027216
  • Tree
  • List 310
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1936
  • PR Base - main (#35322714931)
  • 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