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

#141392693 New dashboard tab for failed jobs. #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wanjikum
Copy link
Contributor

@wanjikum wanjikum commented Apr 13, 2017

What does this PR do?

Adds a new dashboard tab for failed jobs

Description of Task to be completed?

Apart from the email notifications, the user also has a separate dashboard view of their failed jobs.

How should this be manually tested?

  • Logging into healthchecks.
  • Add checks.
  • Set the period(s) and grace time(s).
  • Ping checks by copy and pating them to a new browser tab.
  • Wait for the set period(s) and grace time(s) to elapse.
  • Navigate to failed jobs tab, and all failed jobs should appear there.

What are the relevant pivotal tracker stories?

#141392693

Screenshots (if appropriate)

healthchecks_bau_dashboard

@coveralls
Copy link

coveralls commented Apr 13, 2017

Coverage Status

Coverage decreased (-0.3%) to 79.498% when pulling ac13748 on ft-unresolved-stuff-dashboard-141392693 into 497b423 on master.

Copy link
Contributor

@tonerdo tonerdo left a comment

Choose a reason for hiding this comment

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

A simple change, please include a screenshot

@login_required
def reports(request):
checks = Check.objects.filter(user=request.team.user).order_by("created")
failed_checks = []
Copy link
Contributor

Choose a reason for hiding this comment

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

Use list comprehension:

failed_checks = [check for check in checks if check.get_status() == "down" and check.n_pings]

@coveralls
Copy link

coveralls commented Apr 13, 2017

Coverage Status

Coverage decreased (-0.2%) to 79.62% when pulling caf5ff1 on ft-unresolved-stuff-dashboard-141392693 into 497b423 on master.

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

Successfully merging this pull request may close these issues.

3 participants