Skip to content

chore: improve permissions checking for endpoints

1ac14b3
Select commit
Loading
Failed to load commit list.
Open

feature: implement groups #168

chore: improve permissions checking for endpoints
1ac14b3
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 7, 2025 in 0s

49.07% (target 45.00%)

View this Pull Request on Codecov

49.07% (target 45.00%)

Details

Codecov Report

Attention: Patch coverage is 81.18280% with 70 lines in your changes missing coverage. Please review.

Project coverage is 49.07%. Comparing base (786b55b) to head (1ac14b3).

Files with missing lines Patch % Lines
internal/api/users/groups_patch_handler.go 46.66% 21 Missing and 3 partials ⚠️
internal/api/users/groups_list_handler.go 57.89% 14 Missing and 2 partials ⚠️
internal/api/helpers/security.go 27.77% 13 Missing ⚠️
internal/api/helpers/permission.go 0.00% 12 Missing ⚠️
internal/notifications/notifier.go 16.66% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
+ Coverage   48.91%   49.07%   +0.16%     
==========================================
  Files         135      141       +6     
  Lines        5052     5119      +67     
==========================================
+ Hits         2471     2512      +41     
- Misses       2495     2517      +22     
- Partials       86       90       +4     
Files with missing lines Coverage Δ
internal/api/clients/create_handler.go 100.00% <100.00%> (ø)
internal/api/clients/credentials_handler.go 100.00% <100.00%> (ø)
internal/api/clients/endpoints.go 100.00% <100.00%> (ø)
internal/api/clients/list_handler.go 100.00% <100.00%> (ø)
internal/api/clients/profile_handler.go 100.00% <100.00%> (ø)
internal/api/endpoints.go 100.00% <100.00%> (ø)
internal/api/health_check/endpoints.go 100.00% <100.00%> (ø)
internal/api/health_check/handler.go 36.36% <100.00%> (ø)
internal/api/self/admin_handler.go 100.00% <100.00%> (ø)
internal/api/self/emails_create_handler.go 100.00% <100.00%> (ø)
... and 31 more

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.