Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subject id search #4881

Merged
merged 7 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Log users' activity to file by specifying `USERS_ACTIVITY_LOG_PATH` parameter in app config
- `Mean MT coverage`, `Mean chrom 14 coverage` and `Estimated mtDNA copy number` on MT coverage file from chanjo2 if available
- In ClinVar multistep form, preselect ACMG criteria according to the variant's ACMG classification, if available
- Subject id search from caseS page (supporting multiple sample types e.g.) - adding indexes to speed up caseS queries
### Changed
- Documentation for OMICS variants and updating a case
- Include both creation and deletion dates in gene panels pages
Expand Down
1 change: 1 addition & 0 deletions scout/adapter/mongo/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def _set_case_name_query(self, query: Dict[str, Any], query_term: str):
query["$or"] = [
{"display_name": case_name_regex},
{"individuals.display_name": case_name_regex},
{"individuals.subject_id": case_name_regex},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change, really.

{"_id": case_name_regex},
]

Expand Down
9 changes: 8 additions & 1 deletion scout/constants/indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,18 @@
"case": [
IndexModel([("synopsis", TEXT)], default_language="english", name="synopsis_text"),
IndexModel([("causatives", ASCENDING)], name="causatives"),
IndexModel([("suspects", ASCENDING)], name="suspects"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed this one missing in passing.

IndexModel(
[("collaborators", ASCENDING), ("status", ASCENDING), ("updated_at", ASCENDING)],
name="collaborators_status_updated_at",
),
IndexModel([("owner", ASCENDING), ("display_name", ASCENDING)], name="owner_display_name"),
IndexModel(
[
("owner", ASCENDING),
("display_name", ASCENDING),
],
name="owner_display_name",
),
],
"managed_variant": [
IndexModel(
Expand Down
Loading