blob: 57f73889958ed2988b18e6416c44c15d4815267e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{%extends "background-jobs/base.html"%}
{%from "cli-output.html" import cli_output%}
{%from "flash_messages.html" import flash_all_messages%}
{%block title%}Genotypes: Upload Errors{%endblock%}
{%block pagetitle%}Genotypes: Upload Errors{%endblock%}
{%block contents%}
{{flash_all_messages()}}
<div class="row">
<h2 class="heading">genotype upload: errors</h2>
<p>Job <strong>{{job.job_id}}</strong> failed.</p>
</div>
{%if structured%}
<div class="row">
<p>
The file could not be processed due to the following
{{errors|length}} error{{"" if errors|length == 1 else "s"}}.
Please fix the file and upload it again.
</p>
</div>
<div class="row" style="max-height: 25em; overflow: scroll;">
<table class="table table-responsive">
<thead style="position: sticky; top: 0; background: white;">
<tr>
<th>Row</th>
<th>Column</th>
<th>Value</th>
<th>Line</th>
<th>Message</th>
</tr>
</thead>
<tbody style="font-size: 0.9em;">
{%for error in errors%}
<tr>
<td>{{error.row}}</td>
<td>{{error.column}}</td>
<td>{{error.value}}</td>
<td>{{error.line}}</td>
<td>{{error.message}}</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
{%else%}
<div class="row">
<p>
No structured data errors were recorded for this job. Check the
diagnostics below. If the problem is with the file contents, fix the file
and upload it again. If the problem persists, contact the system
administrators with the job id and the output below.
</p>
</div>
{%endif%}
<div class="row">
{{cli_output(job, "stdout")}}
</div>
<div class="row">
{{cli_output(job, "stderr")}}
</div>
{%if job.metadata.species_id and job.metadata.population_id and job.metadata.dataset_id%}
<div class="row">
<a href="{{url_for('species.populations.genotypes.view_dataset',
species_id=job.metadata.species_id,
population_id=job.metadata.population_id,
dataset_id=job.metadata.dataset_id)}}"
class="btn btn-primary">back to dataset</a>
</div>
{%endif%}
{%endblock%}
|