DMOJ / online-judge

A modern open-source online judge and contest platform system.
https://dmoj.ca
GNU Affero General Public License v3.0
951 stars 364 forks source link

Use decorator for admin display functions #2281

Closed int-y1 closed 1 year ago

int-y1 commented 1 year ago

This moves every short_description and admin_order_field into @admin.display

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.21% :warning:

Comparison is base (138ce7f) 47.05% compared to head (a6b41ac) 46.84%.

: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 #2281 +/- ## ========================================== - Coverage 47.05% 46.84% -0.21% ========================================== Files 249 249 Lines 13209 13158 -51 ========================================== - Hits 6215 6164 -51 Misses 6994 6994 ``` | [Files Changed](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ) | Coverage Δ | | |---|---|---| | [judge/admin/comments.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vY29tbWVudHMucHk=) | `68.29% <100.00%> (-2.17%)` | :arrow_down: | | [judge/admin/contest.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vY29udGVzdC5weQ==) | `40.70% <100.00%> (-2.52%)` | :arrow_down: | | [judge/admin/interface.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vaW50ZXJmYWNlLnB5) | `64.03% <100.00%> (-0.93%)` | :arrow_down: | | [judge/admin/organization.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vb3JnYW5pemF0aW9uLnB5) | `53.94% <100.00%> (-1.75%)` | :arrow_down: | | [judge/admin/problem.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vcHJvYmxlbS5weQ==) | `54.81% <100.00%> (-1.83%)` | :arrow_down: | | [judge/admin/profile.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vcHJvZmlsZS5weQ==) | `57.50% <100.00%> (-4.73%)` | :arrow_down: | | [judge/admin/submission.py](https://app.codecov.io/gh/DMOJ/online-judge/pull/2281?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DMOJ#diff-anVkZ2UvYWRtaW4vc3VibWlzc2lvbi5weQ==) | `40.00% <100.00%> (-4.62%)` | :arrow_down: |

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