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

Improve error reports to the user for spotify imports #423

Merged
merged 6 commits into from Jul 2, 2018

Conversation

paramsingh
Copy link
Collaborator

@paramsingh paramsingh commented Jul 2, 2018

Summary

  • This is an Improvement.

Problem

  • JIRA ticket (optional):

We saved error messages for users in the db but didn't display them.

Solution

Improve error reporting and information given to user.

  • Tell the user if their account is inactive i.e we aren't
    importing their listens.
  • Show errors that occured during their imports.
  • Show times when listens were imported last.

* Tell the user if their account is inactive i.e we aren't
importing their listens.
* Show errors that occured during their imports.
* Show times when listens were imported last.
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

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

Apply two nit-pick fixes and merge!


{% if account.error_message %}
<h3>Import Errors</h3>
<p>There was an error while importing listens from your Spotify account.</p>
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: use a colon here.

{% endif %}

{% if not account.last_updated %}
<p>We haven't gotten around to importing your listens yet, please come back later!</p>
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: please check back later.

{% if not account.last_updated %}
<p>We haven't gotten around to importing your listens yet, please come back later!</p>
{% else %}
<p>We imported your listens <abbr class="timeago" title="{{last_updated}}">{{last_updated}}</abbr> and the last song we imported was listened to <abbr class="timeago" title="{{latest_listened_at}}">{{latest_listened_at}}</abbr>.</p>
Copy link
Member

Choose a reason for hiding this comment

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

That is great!

@paramsingh paramsingh merged commit cd6affa into metabrainz:master Jul 2, 2018
@paramsingh paramsingh deleted the spotify-messages branch July 2, 2018 15:23
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