-
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
removing old sample and order models pt 1 #4097
Conversation
@@ -7,6 +7,7 @@ | |||
def is_sample_missing_capture_kit(sample: BalsamicSample, store: Store) -> bool: | |||
application: Application = store.get_application_by_tag(sample.application) | |||
return ( | |||
application.prep_category == SeqLibraryPrepCategory.TARGETED_GENOME_SEQUENCING | |||
application |
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.
this fixes a bg in the validation, if the application does not exists, the validation breaks
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/order_validation_service/workflows/balsamic/utils.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Isak Ohlsson Ångnell <[email protected]>
Quality Gate passedIssues Measures |
Description
The old validation used pydantic models such as
OrderIn
, and samples for each ordertype that new ones have replaced, therefore they need to be deleted. They are still called in many tests set to fail. The tests are still kept as they need to be translated into the new validation. This PR attempts to remove the pydantic models and fix the tests. Many changes are involved, so I separated the PR with an incomplete working set of changes.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