pycontw / pycon.tw

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

Keynote view api #1025

Closed yuyanghh closed 3 years ago

yuyanghh commented 3 years ago

Types of changes

Description

Add KeynoteEventListAPIView and update KeynoteEvent model

- speaker: contains speaker name, bio, and photo
- session: contains keynote title, description, and slides
- social: links of speaker's social account,  contains Linkedin. Twitter, Github
- slido: slido link for the keynote

Steps to Test This Pull Request

  1. Log in to 'http://127.0.0.1:8000/admin'
  2. Add test data to events/Keynote
  3. Check 'http://127.0.0.1:8000/api/events/keynotes/' for outcome

Outcome

截圖 2021-06-27 下午6 28 42
mattwang44 commented 3 years ago

Keynote API

codecov-commenter commented 3 years ago

Codecov Report

Merging #1025 (bcee011) into master (ddec7ef) will increase coverage by 0.11%. The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1025      +/-   ##
==========================================
+ Coverage   70.39%   70.51%   +0.11%     
==========================================
  Files          81       88       +7     
  Lines        3192     3293     +101     
==========================================
+ Hits         2247     2322      +75     
- Misses        945      971      +26     
Impacted Files Coverage Δ
src/events/api/urls.py 100.00% <ø> (ø)
src/events/api/serializers.py 90.00% <78.57%> (-3.62%) :arrow_down:
src/events/models.py 84.71% <94.11%> (+1.14%) :arrow_up:
src/events/admin.py 95.28% <100.00%> (+0.04%) :arrow_up:
src/events/api/views.py 70.27% <100.00%> (+2.62%) :arrow_up:
src/events/translation.py 100.00% <100.00%> (ø)
src/pycontw2016/urls.py 85.71% <0.00%> (ø)
src/attendee/api/urls.py 100.00% <0.00%> (ø)
src/attendee/apps.py 0.00% <0.00%> (ø)
... and 4 more

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 ddec7ef...bcee011. Read the comment docs.