ZHAW-PM4-Compass / compass

A time-, mood- and incident tracking application for Stadtmuur called Compass 🧭
https://stadtmuur.ch/
MIT License
0 stars 0 forks source link

Added backend checks for user role to incident and daysheet endpoints #156

Closed Cyrill87 closed 3 weeks ago

Cyrill87 commented 4 weeks ago

Added backend checks for user role to incident and daysheet endpoints accoridng to #143, Added tests for auth check of these endpoints

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 76.31579% with 9 lines in your changes missing coverage. Please review.

Project coverage is 25.70%. Comparing base (12b5044) to head (0f9fcb4). Report is 1 commits behind head on main.

Files Patch % Lines
...compass/backend/controller/DaySheetController.java 68.00% 0 Missing and 8 partials :warning:
...compass/backend/controller/IncidentController.java 92.30% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #156 +/- ## ============================================ + Coverage 25.09% 25.70% +0.60% - Complexity 298 312 +14 ============================================ Files 109 109 Lines 3024 3054 +30 Branches 507 510 +3 ============================================ + Hits 759 785 +26 Misses 2107 2107 - Partials 158 162 +4 ``` | [Flag](https://app.codecov.io/gh/ZHAW-PM4-Compass/compass/pull/156/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ZHAW-PM4-Compass) | Coverage Δ | | |---|---|---| | [backend](https://app.codecov.io/gh/ZHAW-PM4-Compass/compass/pull/156/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ZHAW-PM4-Compass) | `79.62% <76.31%> (+0.22%)` | :arrow_up: | | [frontend](https://app.codecov.io/gh/ZHAW-PM4-Compass/compass/pull/156/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ZHAW-PM4-Compass) | `0.52% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ZHAW-PM4-Compass#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 4 weeks ago

SonarQube Quality Gate Status: OK.

SonarQube Dashboard

github-actions[bot] commented 3 weeks ago

SonarQube Quality Gate Status: OK.

SonarQube Dashboard

github-actions[bot] commented 3 weeks ago

SonarQube Quality Gate Status: OK.

SonarQube Dashboard