Skip to content

Commit

Permalink
Fixing issue with cohort queries (#420)
Browse files Browse the repository at this point in the history
Related-Issue: #420
Closes: #420
Projected-Results-Impact: none
  • Loading branch information
holtgrewe committed Mar 30, 2022
1 parent e0b5f43 commit 9180312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -11,6 +11,7 @@ End-User Summary

- Fixing bug in XLSX export (#417)
- Fixing problem with multi-sample queries (#419)
- Fixing issue with cohort queries (#420)

Full Change List
================
Expand All @@ -23,6 +24,7 @@ Full Change List
- Fixing problem with multi-sample queries (#419).
This is done by rolling back adding the ``_ClosingWrapper`` class.
We will need a different approach for the queries than was previously attempted here.
- Fixing issue with cohort queries (#420)

------
v1.1.1
Expand Down
5 changes: 1 addition & 4 deletions variants/submit_filter.py
Expand Up @@ -146,10 +146,7 @@ class ProjectCasesFilter(FilterBase):
def _get_genomebuild(self):
if self.job.cohort:
cases = [
case
for case in self.project_or_cohort.get_accessible_cases_for_user(
self.job.bg_job.user
)
case for case in self.job.cohort.get_accessible_cases_for_user(self.job.bg_job.user)
]
else:
cases = [case for case in self.variant_query.project.case_set.all()]
Expand Down

0 comments on commit 9180312

Please sign in to comment.