Skip to content

Commit

Permalink
fixed bug when hiding variants
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Jul 22, 2024
1 parent 5976d9e commit 1dacb33
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ function create_td_form(text_content, url, params) {
new_input.classList.add("visually_hidden")
form.appendChild(new_input)

var tmp = document.createElement('div')
tmp.textContent = params['import_variant_queue_id']
form.appendChild(tmp)

var submit_button = document.createElement('button')
submit_button.classList.add("btn")
submit_button.classList.add("btn-outline-primary")
Expand Down
1 change: 1 addition & 0 deletions src/frontend_celery/webapp/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ <h4>Changelog</h4>
<ul>
<li>Fixed a bug that CrossMap could not be invoked when lifting between genome versions</li>
<li>Variant annotation would fail when the HerediCaRe API returned a bad status code</li>
<li>Fixed a bug where variants could not be hidden</li>
</ul>
</div>

Expand Down
1 change: 0 additions & 1 deletion src/frontend_celery/webapp/user/user_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ def variant_import_summary(import_queue_id):

if request.method == 'POST':
import_variant_queue_id = request.form.get('import_variant_queue_id')
print(import_variant_queue_id)
require_valid(import_variant_queue_id, 'import_variant_queue', conn)

tasks.retry_variant_import(import_variant_queue_id, session['user']['user_id'], session['user']['roles'], conn)
Expand Down
2 changes: 1 addition & 1 deletion src/frontend_celery/webapp/variant/variant_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def hide_variant(variant_id):
include_consensus = False,
include_user_classifications = False,
include_heredicare_classifications = False,
include_automatic_classifications = False,
include_automatic_classification = False,
include_clinvar = False,
include_consequences = False,
include_assays = False,
Expand Down

0 comments on commit 1dacb33

Please sign in to comment.