Skip to content

Commit

Permalink
Fixing issue with multi-variant update (#419)
Browse files Browse the repository at this point in the history
Related-Issue: #419
Closes: #419
Projected-Results-Impact: none
  • Loading branch information
holtgrewe committed Mar 30, 2022
1 parent f592528 commit 253b7e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -13,6 +13,7 @@ End-User Summary
- Fixing problem with multi-sample queries (#419)
- Fixing issue with cohort queries (#420)
- Fixing issue with mutationtaster queries (#423)
- Fixing problem with multi-variant update (#419)

Full Change List
================
Expand All @@ -27,6 +28,7 @@ Full Change List
We will need a different approach for the queries than was previously attempted here.
- Fixing issue with cohort queries (#420)
- Fixing issue with mutationtaster queries (#423)
- Fixing problem with multi-variant update (#419)

------
v1.1.1
Expand Down
4 changes: 4 additions & 0 deletions variants/views.py
Expand Up @@ -4054,6 +4054,10 @@ class MultiSmallVariantFlagsAndCommentApiView(

def get(self, *_args, **_kwargs):
get_data = dict(self.request.GET)
if not get_data.get("variant_list"): # short-circuit
return JsonResponse(
{"flags": [], "flags_interfering": [], "variant_list": []}, UUIDEncoder
)
variant_list = json.loads(get_data.get("variant_list")[0])
flags_keys = [
"flag_bookmarked",
Expand Down

0 comments on commit 253b7e1

Please sign in to comment.