-
Notifications
You must be signed in to change notification settings - Fork 46
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
Allow document id variant API connect, and improve user cred check when accessing variants #4455
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4455 +/- ##
==========================================
- Coverage 84.69% 84.66% -0.03%
==========================================
Files 310 310
Lines 18507 18533 +26
==========================================
+ Hits 15674 15691 +17
- Misses 2833 2842 +9 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 👍🏻 I have some comments for improving the code
Co-authored-by: Chiara Rasi <[email protected]>
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
Quality Gate passedIssues Measures |
This PR adds a functionality or fixes a bug.
Prepare to fix Clinical-Genomics-Lund/gens#114 and to do Clinical-Genomics/gens#57 in the easiest way. Gens does not have any concept of institute. It cannot easily use the standard scout variant link endpoint (without resorting to more direct db reading or additional potential future api calls), or the recent pin variant api endpoint. The variant
document_id
uniquely identifies a variant (includes unique case_id
). Using it in the calls seems the most parsimonious, given that some extra safety measures are taken to ensure the current user really has access.En passant fix security issue with the existing variant api call.
Testing on cg-vm1 server (Clinical Genomics Stockholm)
Prepare for testing
scout-stage
and the server iscg-vm1
.ssh <USER.NAME>@cg-vm1.scilifelab.se
sudo -iu hiseq.clinical
ssh localhost
podman ps
systemctl --user stop scout.target
systemctl --user start scout@<this_branch>
systemctl --user status scout.target
scout-stage
) to be used for testing by other users.Testing on hasta server (Clinical Genomics Stockholm)
Prepare for testing
ssh <USER.NAME>@hasta.scilifelab.se
us; paxa -u <user> -s hasta -r scout-stage
. You can also use the WSGI Pax app available at https://pax.scilifelab.se/.conda activate S_scout; pip freeze | grep scout-browser
bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_scout -t scout -b <this_branch>
us; scout --version
paxa
procedure, which will release the allocated resource (scout-stage
) to be used for testing by other users.How to test:
Expected outcome:
The functionality should be working
Take a screenshot and attach or copy/paste the output.
Review: