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 199 commits into
base: master
Choose a base branch
from
Draft

DEV - Improve order flow main #3815

wants to merge 199 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.
### Fixed

- Response from StoreMicrobialFastqOrderService specifies project
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 9, 2025 15:42 Inactive
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 10, 2025 08:47 Inactive
diitaz93 and others added 4 commits January 10, 2025 11:29
Rework order fixtures
### Added

- Validation rules ensuring only one priority and application is allowed per pool.
### Changed

- The OrderSubmitterRegistry is a StoringServiceRegistry
- The OrderSubmitters are removed
- The OrdersAPI needs no Store in its init
- The OrdersAPI needs a StoringServiceRegistry instead of a SubmitterRegistry
- The OrdersAPI needs an OrderValidationService
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 13, 2025 08:53 Inactive
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 13, 2025 12:39 Inactive
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 13, 2025 15:13 Inactive
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 14, 2025 07:59 Inactive
@clingen-sthlm clingen-sthlm temporarily deployed to stage January 14, 2025 09:28 Inactive
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 2 commits January 15, 2025 11:40
remove pool old validation
### Fixed

- Removed old case order validation
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