Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Return only accepted session and public speaker call by default #6328

Merged

Conversation

prateekj117
Copy link
Member

Fixes #5998

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

app/api/sessions.py Outdated Show resolved Hide resolved
@@ -86,20 +86,29 @@ def before_get_object(self, view_kwargs):
"""
if view_kwargs.get('event_identifier'):
try:
event = self.session.query(Event).filter_by(identifier=view_kwargs['event_identifier']).one()
event = self.session.query(Event).filter_by(identifier=view_kwargs['event_identifier'],
privacy='public').one()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public and accepted

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamareebjamal Speaker calls are an invitation to submit a proposal for being a speaker at the event. They are either private or public. I didn't get the context of accepted here. Did you mean making changes for speakers to only return accepted speakers?

@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

Merging #6328 into development will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6328      +/-   ##
===============================================
- Coverage        65.24%   65.22%   -0.03%     
===============================================
  Files              287      287              
  Lines            14731    14736       +5     
===============================================
  Hits              9611     9611              
- Misses            5120     5125       +5
Impacted Files Coverage Δ
app/api/sessions.py 41.32% <0%> (ø) ⬆️
app/api/speakers_calls.py 43.07% <0%> (-3.59%) ⬇️

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 7b4ba3a...d5a7160. Read the comment docs.

@fossasia fossasia deleted a comment Aug 8, 2019
@prateekj117 prateekj117 changed the title [WIP] fix: Return only accepted session and public speaker call by default fix: Return only accepted session and public speaker call by default Aug 8, 2019
@auto-label auto-label bot added the fix label Aug 8, 2019
@fossasia fossasia deleted a comment Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetching featured speakers, accepted sessions, public call for speaker by default
2 participants