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

decouple genotype api #772

Merged
merged 21 commits into from Sep 29, 2020
Merged

decouple genotype api #772

merged 21 commits into from Sep 29, 2020

Conversation

moonso
Copy link
Contributor

@moonso moonso commented Sep 23, 2020

This PR decouples the genotype package from CG. From now on genotype will live in another conda environment and will be called on from the CLI.

How to prepare for test

  • ssh to hasta (depending on type of change)
  • Find a case whose samples are not in the genotype db
  • install on stage:
    bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-cg-stage.sh [THIS-BRANCH-NAME]

How to test

  • Upload the 'sequence' analysis for the case to genotype via CG

Expected test outcome

  • check that the command worked

  • check that the samples where added
    Skärmavbild 2020-09-28 kl  13 32 04

  • Take a screenshot and attach or copy/paste the output.

Skärmavbild 2020-09-28 kl  12 55 01

Review

  • code approved by @Mropat
  • tests executed by @moonso
  • "Merge and deploy" approved by @moonso
    Thanks for filling in who performed the code review and the test!

This version is a

  • MINOR - when you add functionality in a backwards compatible manner

@coveralls
Copy link
Collaborator

coveralls commented Sep 24, 2020

Coverage Status

Coverage increased (+0.5%) to 71.516% when pulling 8d08500 on decouple-genotype-api into 64d4bfd on master.

@moonso
Copy link
Contributor Author

moonso commented Sep 28, 2020

Hi @Mropat , this one is ready for review!

Copy link
Contributor

@patrikgrenfeldt patrikgrenfeldt left a comment

Choose a reason for hiding this comment

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

I have some comments

cg/cli/upload/genotype.py Outdated Show resolved Hide resolved
tests/apps/gt/test_gt_api.py Outdated Show resolved Hide resolved
cg/cli/upload/genotype.py Show resolved Hide resolved
tests/conftest.py Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Sep 29, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@moonso moonso merged commit ef7cb25 into master Sep 29, 2020
@moonso moonso deleted the decouple-genotype-api branch September 29, 2020 06:59
@moonso
Copy link
Contributor Author

moonso commented Sep 29, 2020

Skärmavbild 2020-09-29 kl  09 05 21

Merged and deployed on hasta

@patrikgrenfeldt
Copy link
Contributor

"code approved by" and ""Merge and deploy" approved by" is missing

@moonso
Copy link
Contributor Author

moonso commented Sep 29, 2020

"code approved by" and ""Merge and deploy" approved by" is missing

I see this all the time but we should get better on reminding each other.

When you did the review @patrikgrenfeldt you did not approve or requested changes. Was there any particular reason for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants