pycontw / pycon.tw

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

Schedule API #1014

Closed alice6373 closed 3 years ago

alice6373 commented 3 years ago

Types of changes

Description

  1. Add ScheduleAPIView based on src/events/views.py:95 : ScheduleView

    • schedule_html : Indicate latest schedule_html
    • schedule_day : settings.EVENTS_DAY_NAMES.items()
  2. Document: https://hackmd.io/pio2HdWXRZiMPKXOANe-FQ

    Steps to Test This Pull Request

  3. Log in to 'http://127.0.0.1:8000/admin'

  4. Add test data to events/Schedule

  5. Check 'http://127.0.0.1:8000/api/events/schedule/' for outcome

Outcome

image

codecov-commenter commented 3 years ago

Codecov Report

Merging #1014 (f42d727) into master (2b375b6) will decrease coverage by 0.09%. The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1014      +/-   ##
==========================================
- Coverage   70.21%   70.11%   -0.10%     
==========================================
  Files          81       81              
  Lines        3132     3142      +10     
==========================================
+ Hits         2199     2203       +4     
- Misses        933      939       +6     
Impacted Files Coverage Δ
src/events/api/urls.py 100.00% <ø> (ø)
src/events/api/views.py 62.50% <40.00%> (-37.50%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2b375b6...f42d727. Read the comment docs.