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

LB-406: Stops import if listen count is zero #485

Merged
merged 1 commit into from Jan 20, 2019

Conversation

vansika
Copy link
Member

@vansika vansika commented Jan 19, 2019

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other

Problem

Users who accidentally try to import their listens with zero listen count found that the imports stuck in an infinite loop until the page is refreshed.

  • JIRA ticket (optional): LB-406

Solution

Imports with listen count zero do not have 'listened_at" attribute. Imports were halted at a point because of key error. A simple check for length would do.

Copy link
Collaborator

@paramsingh paramsingh left a comment

Choose a reason for hiding this comment

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

Great catch! Thanks! 🥇

@paramsingh paramsingh merged commit 90c0550 into metabrainz:master Jan 20, 2019
@vansika
Copy link
Member Author

vansika commented Jan 20, 2019

😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants