jdabtieu / CTFOJ

Lightweight CTF judge platform for capture-the-flag (CTF) clubs
GNU Affero General Public License v3.0
10 stars 5 forks source link

Perms overhaul #225

Closed jdabtieu closed 1 year ago

jdabtieu commented 1 year ago

Addresses the first part of #222: global user permissions

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 90.96% and project coverage change: +0.39 :tada:

Comparison is base (a3f8c23) 87.64% compared to head (f10f718) 88.03%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #225 +/- ## ========================================== + Coverage 87.64% 88.03% +0.39% ========================================== Files 27 27 Lines 2347 2416 +69 ========================================== + Hits 2057 2127 +70 + Misses 290 289 -1 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `88.03% <90.96%> (+0.39%)` | :arrow_up: | 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=Jonathan+Wu#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu) | Coverage Δ | | |---|---|---| | [src/tests/test\_pages.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL3Rlc3RfcGFnZXMucHk=) | `100.00% <ø> (ø)` | | | [src/views/api.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3ZpZXdzL2FwaS5weQ==) | `55.49% <57.14%> (ø)` | | | [src/views/admin.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3ZpZXdzL2FkbWluLnB5) | `86.26% <83.63%> (+2.37%)` | :arrow_up: | | [src/helpers.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL2hlbHBlcnMucHk=) | `92.57% <93.33%> (-0.20%)` | :arrow_down: | | [src/application.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL2FwcGxpY2F0aW9uLnB5) | `90.80% <100.00%> (+0.21%)` | :arrow_up: | | [src/tests/conftest.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL2NvbmZ0ZXN0LnB5) | `100.00% <100.00%> (ø)` | | | [src/tests/test\_2fa.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL3Rlc3RfMmZhLnB5) | `100.00% <100.00%> (ø)` | | | [src/tests/test\_admin.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL3Rlc3RfYWRtaW4ucHk=) | `100.00% <100.00%> (ø)` | | | [src/tests/test\_api.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL3Rlc3RfYXBpLnB5) | `100.00% <100.00%> (ø)` | | | [src/tests/test\_contest.py](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu#diff-c3JjL3Rlc3RzL3Rlc3RfY29udGVzdC5weQ==) | `100.00% <100.00%> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/jdabtieu/CTFOJ/pull/225?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonathan+Wu) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

jdabtieu commented 1 year ago

Merged via 29ebaee6884bae7369ff7aa1dcc3588b7c243c97