Closed dnil closed 1 month ago
Attention: Patch coverage is 87.50000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 84.44%. Comparing base (
4dd74e1
) to head (47b912d
). Report is 1 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
scout/adapter/mongo/query.py | 75.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I'll just add the search-page filter part here as well I guess; it won't make sense without the index anyway. Draft again for now then.
This one is ready to merge I think!
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This PR adds a functionality or fixes a bug.
Fix #1179 - With mongodb 5.0 and higher it is possible to hold multiple partial indices on the same collection and keys, given that the partial criteria do not overlap. Use that to be able to set up a gene variantS search for the SV category as well. An initial test seemed decently quick, so maybe we will not need to filter on size, which is a bit complicated with inf and small sizes in the bag.
The hits may be a bit messy with large variants, so we will at least add a filter on category to the search page. A "length" filter could be considered as well; could be part of this PR or a later issue if it is needed.
Backgrounding is not needed with the new mongodb 7.0 indexing logic. They do a blocking lock during the start and finish of the indexing, but otherwise runs a very fast, but still read-write indexing. Neato!
We prepared for this during the db migration, and have a category-less version of this index in place on prod.
The stage collection built quickly, opting for the same style as on prod, ie one index for all variant categories. rankscore >= 5 effectively excludes most of cancer, Mei variants, etc that are not yet ranked.
Testing on cg-vm1 server (Clinical Genomics Stockholm)
**Prepare for testing** 1. Make sure the PR is pushed and available on [Docker Hub](https://hub.docker.com/repository/docker/clinicalgenomics/scout-server-stage) 1. Fist book your testing time using the Pax software available at [https://pax.scilifelab.se/](https://pax.scilifelab.se). The resource you are going to call dibs on is `scout-stage` and the server is `cg-vm1`. 1. `sshTesting on hasta server (Clinical Genomics Stockholm)
**Prepare for testing** 1. `sshHow to test:
Expected outcome: The functionality should be working Take a screenshot and attach or copy/paste the output.
Review: