-
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
DEV - Improve order flow main #3815
Draft
islean
wants to merge
212
commits into
master
Choose a base branch
from
improve-order-flow-main
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add parent models and Tomte models for the new validation flow.
Split logic into modules based on workflow
### Fixed - Some typing and a blueprint method for converting pydantic errors to our own custom errors.
### Added - Validation that the provided applications exist in the database
### Added - Check that the application provided is compatible with the chosen workflow.
### Added - Applications are validated not to be archived.
### Fixed - Standardised rule naming.
### Added - Added validation making sure that the gene panels exist in status db
### Added - Adds validation ensuring gene panels are not specified more than once.
### Added - Buffer validation for orders attempting to skip reception control
### Added - Validation ensuring that the subject id is not the same as the case name.
### Added - Validation ensuring that the sample name and subject id can not be the same.
### Added - Validation that the concentration is provided for all samples when skip reception control is attempted.
### Added - Container names are required when using well plates.
### Added - Validation that well position is filled in for samples in a well plate.
## Description Closes Clinical-Genomics/improve-order-flow#102 Fixes the sample name validation rule for Mutant orders to exclude control samples from the name check ### Added - Validation function `validate_non_control_sample_names_available` that verifies that sample names used in an order are not in the store excluding control samples - Utils function `get_sample_name_not_available_errors` used in new validation function - Mutant order fixture - aliases to group samples with organism and samples orders with control samples - tests for new validation functions ### Changed - Refactored validation function `validate_sample_names_available` to use the new utils function ### Fixed - Changed some balsamic structure in the order validation service - Reverted some deletions in json order fixtures from previous prs
### Added - Index sequences stored in backend ### Fixed - Index validation added
### Added - Tests for the order rules ### Fixed - connect_to_ticket removed from Order - user_id is made into a private attribute
## Description Closes Clinical-Genomics/improve-order-flow#119 Adds MAF cases to a fictitious MAF order
### Fixed - Removed old ValidateFastqOrderService
Remove old pacbio validation
remove metagenome old validation
### Fixed - Removed old microbial validation service
remove pool old validation
### Fixed - Removed old case order validation
### Added - One sample per case rule for RNA Fusion cases
## 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 - Fixtures for taxprofiler order - Store fixture for order integration tests (includes all application and a maf order. To be expanded with organisms and everything needed for the tests) ### Changed - Fixed integration tests for Balsamic, Fastq, Fuffy, and Metagenome ### Fixed - Removed completely unused models --------- Co-authored-by: Isak Ohlsson Ångnell <40887124+islean@users.noreply.github.com>
remove organism existence validation
### Added - Rule preventing more than two samples in any Balsamic case - Rule preventing a double tumour pair in any Balsamic case - Rule preventing a double normal pair in any Balsamic case
Fix MIP, PACBIO and RML integration ttests
### Fixed - Index sequence mismatch is not highlighted when the index sequenced is simply missing
Fix integration tests for RNAFUSION, TAXPROFILER and TOMTE
Remove OrderIn model and old tests
### Fixed - lab_code, original_lab_address and region code are set as in master - Länssjukhuset Sundsvall added to BE original labs
Move the service in cg/services/order_validation_service/ to cg/services/orders/validation/. Similarly done in the tests
Remove skipping from previously failing tests
### Added - Logging of the errors happening during submission
### Fixed - Default index sequence is set for RML and Fluffy orders
Quality Gate passedIssues Measures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
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