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: filtered deleted entities from user favourite events #6764

Merged
merged 1 commit into from Jan 22, 2020

Conversation

codedsun
Copy link
Contributor

Fixes #6762

Short description of what this resolves:

fix: filtered deleted events from user favourite events

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.

@auto-label auto-label bot added the fix label Jan 22, 2020
@codecov
Copy link

codecov bot commented Jan 22, 2020

Codecov Report

Merging #6764 into development will decrease coverage by <.01%.
The diff coverage is 25%.

Impacted file tree graph

@@              Coverage Diff               @@
##           development   #6764      +/-   ##
==============================================
- Coverage         65.4%   65.4%   -0.01%     
==============================================
  Files              302     302              
  Lines            15364   15366       +2     
==============================================
+ Hits             10049   10050       +1     
- Misses            5315    5316       +1
Impacted Files Coverage Δ
app/api/user_favourite_events.py 59.64% <25%> (-0.36%) ⬇️

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 494608c...25d4ad0. Read the comment docs.

@codedsun codedsun changed the title fix: filtered deleted events from user favourite events fix: filtered deleted entities from user favourite events Jan 22, 2020
@codedsun
Copy link
Contributor Author

@iamareebjamal - REVIEW!

user=current_user, event_id=view_kwargs['id']).first()
user_favourite_event = UserFavouriteEvent.query.filter_by(deleted_at=None,
user=current_user,
event_id=view_kwargs['id']).first()
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate logic

@codedsun
Copy link
Contributor Author

@iamareebjamal - Done

@iamareebjamal iamareebjamal merged commit 1c71c6d into fossasia:development Jan 22, 2020
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.

Unable to like/dislike some events
2 participants