-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor and document formatters #4014
refactor and document formatters #4014
Conversation
cg/services/deliver_files/deliver_files_service/deliver_files_service.py
Outdated
Show resolved
Hide resolved
@@ -2,15 +2,15 @@ | |||
from pathlib import Path |
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.
unused import
delivery_path: The path to deliver the files to | ||
""" | ||
LOG.debug("[FORMAT SERVICE] Formatting case files") | ||
"""Format the case files to deliver and return the formatted files.""" |
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.
repeated line
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.
👍
cg/services/deliver_files/file_formatter/component_files/case_service.py
Outdated
Show resolved
Hide resolved
|
Description
Refactors the formatter logic of the delivery services.
Adds Documentation to the formatter logic
The formatting logic was a bit unstructured and difficult to deal with. I tried to add some more logic to it by introducing same name space boundaries, reducing the amount of logic and hopefully a clearer build structure.
The formatting happens on three levels.
individual path names
path names bundled for certain components (case, sample, mutant)
destination (where files should be delivered to, i.e. a generic base path or a customer inbox)
A siimilar logic was applied to the Filemover service, i.e. CustomerInboxFileMover and BaseFileMover inherit from DestinationFileMover
Added
Changed
Fixed
How to prepare for test
us
paxa
How to test
Expected test outcome
Review
Thanks for filling in who performed the code review and the test!
This version is a
Implementation Plan