pycontw / pycon.tw

PyCon TW Proposal System & Backend Server
https://tw.pycon.org/prs
MIT License
94 stars 107 forks source link

feat: add proposals api and view #1128

Closed baby230211 closed 1 year ago

baby230211 commented 1 year ago

Types of changes

Description

Steps to Test This Pull Request

Steps to reproduce the behavior:

  1. Go to 'http://localhost:8000/api/proposals/'

Expected behavior

response will be

  1. num_proposed
  2. num_stage_1_reviews
  3. num_stage_2_reviews

Related Issue

1127

mattwang44 commented 1 year ago
codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: +0.26 :tada:

Comparison is base (aeeaa7b) 69.46% compared to head (c076eb5) 69.72%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1128 +/- ## ========================================== + Coverage 69.46% 69.72% +0.26% ========================================== Files 82 84 +2 Lines 3357 3376 +19 ========================================== + Hits 2332 2354 +22 + Misses 1025 1022 -3 ``` | [Impacted Files](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw) | Coverage Δ | | |---|---|---| | [pycontw2016/urls.py](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw#diff-cHljb250dzIwMTYvdXJscy5weQ==) | `85.71% <0.00%> (ø)` | | | [proposals/api/urls.py](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw#diff-cHJvcG9zYWxzL2FwaS91cmxzLnB5) | `100.00% <0.00%> (ø)` | | | [proposals/api/views.py](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw#diff-cHJvcG9zYWxzL2FwaS92aWV3cy5weQ==) | `100.00% <0.00%> (ø)` | | | [proposals/management/commands/recent\_proposals.py](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw#diff-cHJvcG9zYWxzL21hbmFnZW1lbnQvY29tbWFuZHMvcmVjZW50X3Byb3Bvc2Fscy5weQ==) | `98.76% <0.00%> (+1.23%)` | :arrow_up: | | [reviews/models.py](https://codecov.io/gh/pycontw/pycon.tw/pull/1128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw#diff-cmV2aWV3cy9tb2RlbHMucHk=) | `86.66% <0.00%> (+2.66%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pycontw)

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