-
Notifications
You must be signed in to change notification settings - Fork 2
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
patch - Concatenate Microbial fastq files #3958
Conversation
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Outdated
Show resolved
Hide resolved
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Outdated
Show resolved
Hide resolved
tests/services/file_delivery/delivery_file_service/test_service_builder.py
Outdated
Show resolved
Hide resolved
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Outdated
Show resolved
Hide resolved
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.
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Outdated
Show resolved
Hide resolved
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.
Added some comments! I think it makes sense to check apptags in statusdb since then we do not need to apply changes to the code when entries are changed. I also think we can clarify the intent of a method by changing its return type to bool
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Show resolved
Hide resolved
cg/services/deliver_files/deliver_files_service/deliver_files_service_factory.py
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Description
Addresses https://github.com/Clinical-Genomics/bug-reports/issues/17
The Microbial fastq orders currently behave in the backend as a normal fastq order, while in reality, they should have a hybrid functionality between Microsalt and fastq. This is, the raw data fastq files should be concatenated for a sample (the replicates in multiple lanes) as it is done in Microsalt, but no analysis should start, as in fastq orders.
This PR overwrites the Workflow of Microbial-fastq cases from Workflow.RAW_DATA to Workflow.MICROSALT just for the delivery service.
Added
_convert_workflow
inDeliveryServiceFactory
that patches the workflow of microbial fastq cases as MicrosaltChanged
build_delivery_service
fromDeliveryServiceFactory
to receive case and delivery_type instead of Workflow and delivery_typeFixed
build_delivery_service
with the new parametersbuild_delivery_service
How to prepare for test
us
paxa
How to test
cg -l DEBUG deliver ticket -t 1001074 --dry-run
Expected test outcome
home/proj/stage/customers/cust121
Review
Thanks for filling in who performed the code review and the test!
This version is a
Implementation Plan