Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
diitaz93 committed Dec 17, 2024
1 parent 9dbd51b commit d6d62f6
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import datetime

from cg.constants import DataDelivery, SexOptions, Workflow
from cg.models.orders.order import OrderIn
from cg.models.orders.sample_base import StatusEnum
from cg.services.order_validation_service.workflows.microbial_fastq.models.order import (
MicrobialFastqOrder,
Expand All @@ -23,7 +22,6 @@ def __init__(self, status_db: Store, lims_service: OrderLimsService):

def store_order(self, order: MicrobialFastqOrder) -> dict:
"""Store a Microbial FASTQ order in the database."""

project_data, lims_map = self.lims.process_lims(
samples=order.samples,
ticket=order.ticket_number,
Expand All @@ -36,30 +34,6 @@ def store_order(self, order: MicrobialFastqOrder) -> dict:
new_samples: list[Sample] = self.store_order_data_in_status_db(order=order)
return {"records": new_samples, "project_data": project_data}

# TODO: Remove this method and the tests
@staticmethod
def order_to_status(order: OrderIn) -> dict:
"""Convert order input for microbial samples."""
return {
"customer": order.customer,
"order": order.name,
"comment": order.comment,
"samples": [
{
"application": sample.application,
"comment": sample.comment,
"internal_id": sample.internal_id,
"data_analysis": sample.data_analysis,
"data_delivery": sample.data_delivery,
"name": sample.name,
"priority": sample.priority,
"volume": sample.volume,
"control": sample.control,
}
for sample in order.samples
],
}

def store_order_data_in_status_db(self, order: MicrobialFastqOrder) -> list[Sample]:
"""
Store order, cases, samples and relationships in the status database. Return the samples.
Expand Down

0 comments on commit d6d62f6

Please sign in to comment.