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

DEV - Improve order flow main #3815

Draft
wants to merge 212 commits into
base: master
Choose a base branch
from
Draft

DEV - Improve order flow main #3815

wants to merge 212 commits into from

Conversation

islean
Copy link
Contributor

@islean islean commented Oct 7, 2024

Description

Added

Changed

Fixed

How to prepare for test

  • Ssh to relevant server (depending on type of change)
  • Use stage: us
  • Paxa the environment: paxa
  • Install on stage (example for Hasta):
    bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_cg -t cg -b [THIS-BRANCH-NAME] -a

How to test

  • Do ...

Expected test outcome

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

Review

  • Tests executed by
  • "Merge and deploy" approved by
    Thanks for filling in who performed the code review and the test!

This version is a

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Implementation Plan

  • Document in ...
  • Deploy this branch on ...
  • Inform to ...

islean and others added 30 commits July 5, 2024 15:09
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.
diitaz93 and others added 11 commits January 14, 2025 10:29
## 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
### Fixed

- Removed old ValidateFastqOrderService
Remove old pacbio validation
remove metagenome old validation
### Fixed

- Removed old microbial validation service
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 15, 2025 09:54 Inactive
diitaz93 and others added 11 commits January 15, 2025 11:40
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
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 17, 2025 10:23 Inactive
Move the service in cg/services/order_validation_service/ to cg/services/orders/validation/. Similarly done in the tests
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 17, 2025 12:56 Inactive
diitaz93 and others added 3 commits January 17, 2025 15:55
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
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.

Bug: Delivery of cases where case.name is the same as the sample.name
7 participants