bcgov / met-public

Modern Engagement Tool ops
Apache License 2.0
6 stars 19 forks source link

[To Main] DESENG-557 - Add Superuser Role #2482

Closed NatSquared closed 4 months ago

NatSquared commented 4 months ago

Issue #: 🎟️ DESENG-557

🟢 This PR consists of changes from PRs #2478, #2479, and #2480, which have already been approved.

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 91.52542% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 75.69%. Comparing base (3f8e58a) to head (ead3d0f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2482 +/- ## ========================================== + Coverage 75.68% 75.69% +0.01% ========================================== Files 590 590 Lines 21066 21097 +31 Branches 1529 1530 +1 ========================================== + Hits 15943 15970 +27 - Misses 4877 4880 +3 - Partials 246 247 +1 ``` | [Flag](https://app.codecov.io/gh/bcgov/met-public/pull/2482/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov) | Coverage Δ | | |---|---|---| | [metapi](https://app.codecov.io/gh/bcgov/met-public/pull/2482/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov) | `87.87% <96.22%> (+0.02%)` | :arrow_up: | | [metweb](https://app.codecov.io/gh/bcgov/met-public/pull/2482/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov) | `63.46% <50.00%> (-0.02%)` | :arrow_down: | 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=bcgov#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/bcgov/met-public/pull/2482?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov) | Coverage Δ | | |---|---|---| | [met-api/src/met\_api/\_\_init\_\_.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS9fX2luaXRfXy5weQ==) | `90.90% <100.00%> (ø)` | | | [met-api/src/met\_api/models/staff\_user.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Fmodels%2Fstaff_user.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS9tb2RlbHMvc3RhZmZfdXNlci5weQ==) | `92.85% <100.00%> (+0.31%)` | :arrow_up: | | [...t-api/src/met\_api/resources/engagement\_metadata.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Fresources%2Fengagement_metadata.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS9yZXNvdXJjZXMvZW5nYWdlbWVudF9tZXRhZGF0YS5weQ==) | `83.33% <100.00%> (+0.14%)` | :arrow_up: | | [met-api/src/met\_api/resources/staff\_user.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Fresources%2Fstaff_user.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS9yZXNvdXJjZXMvc3RhZmZfdXNlci5weQ==) | `93.75% <100.00%> (ø)` | | | [met-api/src/met\_api/services/authorization.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Fservices%2Fauthorization.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS9zZXJ2aWNlcy9hdXRob3JpemF0aW9uLnB5) | `87.93% <100.00%> (-1.55%)` | :arrow_down: | | [met-api/src/met\_api/utils/roles.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Futils%2Froles.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS91dGlscy9yb2xlcy5weQ==) | `100.00% <100.00%> (ø)` | | | [met-api/src/met\_api/utils/user\_context.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Futils%2Fuser_context.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS91dGlscy91c2VyX2NvbnRleHQucHk=) | `83.58% <100.00%> (+1.49%)` | :arrow_up: | | [met-web/src/config.ts](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-web%2Fsrc%2Fconfig.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LXdlYi9zcmMvY29uZmlnLnRz) | `96.77% <100.00%> (ø)` | | | [met-web/src/services/userService/constants.ts](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-web%2Fsrc%2Fservices%2FuserService%2Fconstants.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LXdlYi9zcmMvc2VydmljZXMvdXNlclNlcnZpY2UvY29uc3RhbnRzLnRz) | `100.00% <ø> (ø)` | | | [met-api/src/met\_api/utils/tenant\_validator.py](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree&filepath=met-api%2Fsrc%2Fmet_api%2Futils%2Ftenant_validator.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov#diff-bWV0LWFwaS9zcmMvbWV0X2FwaS91dGlscy90ZW5hbnRfdmFsaWRhdG9yLnB5) | `80.95% <80.00%> (-9.05%)` | :arrow_down: | | ... and [1 more](https://app.codecov.io/gh/bcgov/met-public/pull/2482?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov) | | ... and [28 files with indirect coverage changes](https://app.codecov.io/gh/bcgov/met-public/pull/2482/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bcgov)
sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud