File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 23
23
@click .group (invoke_without_command = True )
24
24
@click .pass_context
25
25
def mutant (context : click .Context ) -> None :
26
- """Covid analysis workflow"""
26
+ """Mutant analysis workflow"""
27
27
AnalysisAPI .get_help (context )
28
28
context .obj .meta_apis ["analysis_api" ] = MutantAnalysisAPI (
29
29
config = context .obj ,
Original file line number Diff line number Diff line change 1
1
import logging
2
2
3
3
from cg .store .api .find_basic_data import FindBasicDataHandler
4
- from cg .store .api .find_business_data import FindBusinessDataHandler
5
4
from cg .store .api .status import StatusHandler
6
5
from cg .store .crud .create import CreateHandler
7
6
from cg .store .crud .delete import DeleteDataHandler
7
+ from cg .store .crud .read import ReadHandler
8
8
from cg .store .crud .update import UpdateHandler
9
9
from cg .store .database import get_session
10
10
@@ -15,7 +15,7 @@ class CoreHandler(
15
15
CreateHandler ,
16
16
DeleteDataHandler ,
17
17
FindBasicDataHandler ,
18
- FindBusinessDataHandler ,
18
+ ReadHandler ,
19
19
StatusHandler ,
20
20
UpdateHandler ,
21
21
):
@@ -24,7 +24,7 @@ class CoreHandler(
24
24
def __init__ (self , session ):
25
25
DeleteDataHandler (session )
26
26
FindBasicDataHandler (session )
27
- FindBusinessDataHandler (session )
27
+ ReadHandler (session )
28
28
StatusHandler (session )
29
29
UpdateHandler (session )
30
30
Original file line number Diff line number Diff line change 1
- """Handler to find business data objects."""
1
+ """Handler to read data objects."""
2
2
import datetime as dt
3
3
import logging
4
4
from typing import Callable , Iterator
54
54
LOG = logging .getLogger (__name__ )
55
55
56
56
57
- class FindBusinessDataHandler (BaseHandler ):
58
- """Contains methods to find business data model instances ."""
57
+ class ReadHandler (BaseHandler ):
58
+ """Class for reading items in the database ."""
59
59
60
60
def __init__ (self , session : Session ):
61
61
super ().__init__ (session = session )
Original file line number Diff line number Diff line change 8
8
from cg .constants import DataDelivery , FlowCellStatus , Pipeline
9
9
from cg .models .cg_config import CGConfig
10
10
from cg .store import Store
11
- from cg .store .api . find_business_data import FindBusinessDataHandler
11
+ from cg .store .crud . read import ReadHandler
12
12
from cg .store .models import Case
13
13
from tests .store_helpers import StoreHelpers
14
14
@@ -239,5 +239,5 @@ def mock_analysis_flow_cell(mocker) -> None:
239
239
on disk."""
240
240
flow_cell = Mock ()
241
241
flow_cell .status = FlowCellStatus .ON_DISK
242
- mocker .patch .object (FindBusinessDataHandler , "get_flow_cells_by_case" )
243
- FindBusinessDataHandler .get_flow_cells_by_case .return_value = [flow_cell ]
242
+ mocker .patch .object (ReadHandler , "get_flow_cells_by_case" )
243
+ ReadHandler .get_flow_cells_by_case .return_value = [flow_cell ]
Original file line number Diff line number Diff line change 13
13
from cg .meta .workflow .mip_rna import MipRNAAnalysisAPI
14
14
from cg .meta .workflow .prepare_fastq import PrepareFastqAPI
15
15
from cg .models .cg_config import CGConfig
16
- from cg .store .api .find_business_data import FindBusinessDataHandler
17
16
from cg .store .api .status import StatusHandler
17
+ from cg .store .crud .read import ReadHandler
18
18
from cg .store .models import Case
19
19
from tests .store_helpers import StoreHelpers
20
20
@@ -197,5 +197,5 @@ def setup_mocks(
197
197
return_value = ["a str" ],
198
198
)
199
199
200
- mocker .patch .object (FindBusinessDataHandler , "are_all_flow_cells_on_disk" )
201
- FindBusinessDataHandler .are_all_flow_cells_on_disk .return_value = True
200
+ mocker .patch .object (ReadHandler , "are_all_flow_cells_on_disk" )
201
+ ReadHandler .are_all_flow_cells_on_disk .return_value = True
You can’t perform that action at this time.
0 commit comments