Skip to content

Commit

Permalink
(Improve order flow) Remove old microbial validation (#4090) (patch)
Browse files Browse the repository at this point in the history
### Fixed

- Removed old microbial validation service
  • Loading branch information
islean authored Jan 15, 2025
1 parent 171bcaf commit 3a59e4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 115 deletions.

This file was deleted.

17 changes: 11 additions & 6 deletions tests/fixture_plugins/orders_fixtures/order_to_submit_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
from cg.services.order_validation_service.workflows.balsamic.models.order import BalsamicOrder
from cg.services.order_validation_service.workflows.fastq.models.order import FastqOrder
from cg.services.order_validation_service.workflows.metagenome.models.order import MetagenomeOrder
from cg.services.order_validation_service.workflows.microbial_fastq.models.order import (
MicrobialFastqOrder,
)
from cg.services.order_validation_service.workflows.microsalt.models.order import MicrosaltOrder
from cg.services.order_validation_service.workflows.mip_dna.models.order import MipDnaOrder
from cg.services.order_validation_service.workflows.mip_rna.models.order import MipRnaOrder
from cg.services.order_validation_service.workflows.mutant.models.order import MutantOrder
from cg.services.order_validation_service.workflows.pacbio_long_read.models.order import PacbioOrder


Expand Down Expand Up @@ -127,6 +132,7 @@ def all_orders_to_submit(
fluffy_order_to_submit: dict,
metagenome_order_to_submit: dict,
microbial_order_to_submit: dict,
microbial_fastq_order_to_submit: dict,
mip_dna_order_to_submit: dict,
mip_rna_order_to_submit: dict,
pacbio_order_to_submit: dict,
Expand All @@ -140,15 +146,14 @@ def all_orders_to_submit(
OrderType.FASTQ: FastqOrder.model_validate(fastq_order_to_submit),
# OrderType.FLUFFY: FluffyOrder.model_validate(rml_order_to_submit),
OrderType.METAGENOME: MetagenomeOrder.model_validate(metagenome_order_to_submit),
# OrderType.MICROSALT: OrderIn.parse_obj(
# microbial_order_to_submit, project=OrderType.MICROSALT
# ),
OrderType.MICROBIAL_FASTQ: MicrobialFastqOrder.model_validate(
microbial_fastq_order_to_submit
),
OrderType.MICROSALT: MicrosaltOrder.model_validate(microbial_order_to_submit),
OrderType.MIP_DNA: MipDnaOrder.model_validate(mip_dna_order_to_submit),
OrderType.MIP_RNA: MipRnaOrder.model_validate(mip_rna_order_to_submit),
OrderType.PACBIO_LONG_READ: PacbioOrder.model_validate(pacbio_order_to_submit),
# OrderType.RML: OrderIn.parse_obj(rml_order_to_submit, project=OrderType.RML),
# OrderType.RNAFUSION: RnaFusionOrder.model_validate(rnafusion_order_to_submit),
# OrderType.SARS_COV_2: OrderIn.parse_obj(
# sarscov2_order_to_submit, project=OrderType.SARS_COV_2
# ),
OrderType.SARS_COV_2: MutantOrder.model_validate(sarscov2_order_to_submit),
}

This file was deleted.

0 comments on commit 3a59e4c

Please sign in to comment.