PythonFreeCourse / calendar

Apache License 2.0
34 stars 52 forks source link

feature/event privacy + fix eventview error #271

Closed imimouni closed 3 years ago

imimouni commented 3 years ago

3 levels of event privacy- 'Public' - can be shown by anyone 'Private' - for other users - The event start date end date and owner is shown all other details are 'private' or not shown 'Hidden' - can only be seen by owner, the event will not be shown to anyone other than the owner

small fix in eventview function - a '?' was missing between 'event_id' and 'messages=' in the routing link.

codecov-io commented 3 years ago

Codecov Report

Merging #271 (29c5173) into develop (44563e8) will increase coverage by 0.01%. The diff coverage is 96.22%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #271      +/-   ##
===========================================
+ Coverage    98.23%   98.25%   +0.01%     
===========================================
  Files           70       72       +2     
  Lines         3010     3155     +145     
===========================================
+ Hits          2957     3100     +143     
- Misses          53       55       +2     
Impacted Files Coverage Δ
app/routers/event.py 96.55% <95.23%> (-0.34%) :arrow_down:
app/database/models.py 96.80% <100.00%> (+0.03%) :arrow_up:
app/internal/calendar_privacy.py 100.00% <100.00%> (ø)
app/internal/privacy.py 100.00% <100.00%> (ø)
app/routers/profile.py 92.79% <100.00%> (+0.06%) :arrow_up:
app/internal/statistics.py 100.00% <0.00%> (ø)

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 44563e8...29c5173. Read the comment docs.