'List a project\'s processing issues.'

def get(self, request, project):

    num_issues = ProcessingIssue.objects.filter(project=project).count()
    last_seen = ProcessingIssue.objects.filter(project=project).order_by('-datetime').first()
    (resolveable_issues, has_more) = ProcessingIssue.objects.find_resolved(project_id=project.id)
    reprocessing_issues = ReprocessingReport.objects.filter(project_id=project.id).count()
    signed_link = None
    if (num_issues > 0):
        signed_link = generate_signed_link(request.user, 'sentry-api-0-project-fix-processing-issues', kwargs={'project_slug': project.slug, 'organization_slug': project.organization.slug})
    data = {'hasIssues': (num_issues > 0), 'numIssues': num_issues, 'lastSeen': ((last_seen and serialize(last_seen.datetime)) or None), 'resolveableIssues': len(resolveable_issues), 'hasMoreResolveableIssues': has_more, 'issuesProcessing': reprocessing_issues, 'signedLink': signed_link}
    if (request.GET.get('detailed') == '1'):
        q = ProcessingIssue.objects.with_num_events().filter(project=project).order_by('type', 'datetime')
        data['issues'] = [serialize(x, request.user) for x in q]
    return Response(serialize(data, request.user))
