Skip to content

Commit

Permalink
Warning in case of truncated display (#641).
Browse files Browse the repository at this point in the history
Related-Issue: #641
Closes: #641
Projected-Results-Impact: none
  • Loading branch information
holtgrewe committed Aug 30, 2022
1 parent 007ee44 commit 210d669
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -49,6 +49,7 @@ End-User Summary
- Fixed smallvariant flags filter query (#502).
- Added flags `segregates`, `doesnt_segregate` and `no_disease_association` to file export (#502).
- Adding feature to enable and configure link-out to HGMD (#576).
- Warning in the case of truncated displayed results (#641).

Full Change List
================
Expand All @@ -74,6 +75,7 @@ Full Change List
- Added flags `segregates`, `doesnt_segregate` and `no_disease_association` to file export (#502).
- Converted not cooperative tooltip to standard title on Filter & Display button (#508).
- Adding feature to enable and configure link-out to HGMD (#576).
- Warning in the case of truncated displayed results (#641).

------
v1.2.0
Expand Down
22 changes: 21 additions & 1 deletion variants/templates/variants/filter_result/table.html
Expand Up @@ -149,6 +149,18 @@ <h2>
{% endif %}
</div>
{% endif %}
{% if result_rows|length < result_count %}
<div class="row alert alert-warning">
<h4>Caution!</h4>
<p>
Your result has been truncated!
Only the first {{ result_rows|length }} of a total of {{ result_count }} rows are displayed (sorted by coordinate).
When using prioritization, only these {{ result_rows|length }} rows are considered for prioritization.
You should consider increasing the maximal row count via:
&quot;More ...&quot; (form tab) &gt; &quot;Miscellaneous&quot; &gt; &quot;Result row limit&quot;
</p>
</div>
{% endif %}
<div class="form-inline pr-2 row">
<strong style="font-size: 140%;">Results</strong>
{% if compound_recessive_index %}
Expand Down Expand Up @@ -220,7 +232,15 @@ <h2>
<i class="text-warning iconify" data-icon="bi:exclamation-circle" data-toggle="tooltip"
title="{{ missed_records }} records not shown. This means that the access to the cases was restricted in the meantime."></i>
{% endif %}
First <strong>{{ result_rows|length }} of {{ result_count }}</strong> records
{% if result_rows|length >= result_count %}
<span class="text-success">
All {{ result_rows|length }} record
</span>
{% else %}
<span class="text-danger">
First <strong>{{ result_rows|length }} of {{ result_count }}</strong> records
</span>
{% endif %}
<i class="iconify" data-icon="fa-solid:info-circle" data-toggle="tooltip"
title="{% if case %}Case has a total of {{ case.num_small_vars|intcomma }} variants. {% endif %}Use the &quot;Result row limit&quot; to see more columns. Pro-tip: TSV/Excel/VCF file downloads will contain all all {{ result_count }} rows."></i>.
</div>
Expand Down

0 comments on commit 210d669

Please sign in to comment.