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

goto / guardian / 19136755093
66%

Build:
DEFAULT BRANCH: main
Ran 06 Nov 2025 01:13PM UTC
Jobs 1
Files 112
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

06 Nov 2025 01:10PM UTC coverage: 67.567% (-0.2%) from 67.776%
19136755093

push

github

web-flow
feat: add summary support to ListAppeals apis & support bot user grant for guardian package (#238)

* Preload approvers in approval list query

Added Preload for 'Appeal.Approvals.Approvers' in the ListApprovals method to ensure approver data is loaded with approvals. This enables access to approver details when listing approvals.

* Add summary support to ListAppeals endpoints

Extended ListAppeals and ListUserAppeals handlers, filters, and proto definitions to support summary queries and results. Updated appeal service interface and mocks to include GenerateSummary, and refactored filter construction for more flexible querying. This enables clients to request grouped and unique summary data along with appeals.

* Fix incorrect request field mapping in appeal handlers

Corrects the mapping of ProviderTypes and ResourceTypes fields in ListUserAppeals and ListAppeals handlers to use the appropriate request getters. This ensures accurate filtering based on provider and resource types.

* Reorder GORM preload calls in ListApprovals

Changed the order of Preload calls in the ListApprovals method to preload Appeal.Resource before Appeal.Approvals and its Approvers. This may improve query efficiency or resolve data loading issues.

* Fix total count queries to omit pagination and ordering

Updated GetAppealsTotalCount, GetApprovalsTotalCount, and GetGrantsTotalCount to explicitly omit offset, size, and order_by from filters before counting. This ensures accurate total counts unaffected by pagination or ordering parameters.

* Refactor ValidateAppeal logic for package resources

Improves the ValidateAppeal method by restructuring logic for package-type resources and separating handling for bot and user account types. Adds a nil resource check and clarifies error handling for missing account information.

* Add docs

* Fix grant logic to use AccountType instead of Role

Replaces the switch statement in GetDependencyGrants to use g.AccountType instead of g.Rol... (continued)

159 of 231 new or added lines in 8 files covered. (68.83%)

2 existing lines in 2 files now uncovered.

11533 of 17069 relevant lines covered (67.57%)

4.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
82.17
0.0% internal/store/postgres/resource_repository.go
2
60.81
-0.24% internal/store/postgres/grant_repository.go
2
0.0
0.0% plugins/providers/maxcompute/provider.go
3
76.28
-0.16% core/appeal/service.go
8
90.53
-3.48% domain/appeal.go
13
78.49
-2.63% api/handler/v1beta1/appeal.go
43
74.44
-12.77% internal/store/postgres/appeal_repository.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
78.49
-2.63% api/handler/v1beta1/appeal.go
1
90.53
-3.48% domain/appeal.go
Jobs
ID Job ID Ran Files Coverage
1 19136755093.1 06 Nov 2025 01:13PM UTC 112
67.57
GitHub Action Run
Source Files on build 19136755093
  • Tree
  • List 112
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b66ed23f on github
  • Prev Build on main (#19070609885)
  • Next Build on main (#19159723599)
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

© 2025 Coveralls, Inc