Skip to content

Commit

Permalink
Change the data to Data as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Jun 13, 2024
1 parent d08425e commit 91c0f32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion daily_read/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def __init__(self, env_file_path):
2: "Reception Control Finished",
3: "Library QC Finished",
4: "All Samples Sequenced",
5: "All Raw data Delivered",
5: "All Raw Data Delivered",
}
self.STATUS_PRIORITY_REV = {v: k for k, v in self.STATUS_PRIORITY.items()}
4 changes: 2 additions & 2 deletions daily_read/daily_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@


STATUS_ICONS = {
"All Raw data Delivered": "cloud-download",
"All Raw Data Delivered": "cloud-download",
"All Samples Sequenced": "body-text",
"Library QC Finished": "check2-all",
"Reception Control Finished": "check2",
"Samples Received": "box-seam",
}

STATUS_DESCRIPTIONS = {
"All Raw data Delivered": "The data has been made available through NGIs delivery system.",
"All Raw Data Delivered": "The data has been made available through NGIs delivery system.",
"All Samples Sequenced": "Sequencing (including potential resequencing) of all samples has been finished.",
"Library QC Finished": "Library QC is a quality control of the sequencing library produced either by NGI or supplied by you, depending on the type of project.",
"Reception Control Finished": "Reception Control consists of NGI staff measuring e.g. concentration and volume for the samples received.",
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"2023-06-15": ["Samples Received"],
"2023-06-28": ["Reception Control Finished", "Library QC Finished"],
"2023-07-28": ["All Samples Sequenced"],
"2023-07-29": ["All Raw data Delivered"],
"2023-07-29": ["All Raw Data Delivered"],
},
"internal_id": "P123455",
"internal_name": "D.Dummysson_23_02",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_order_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_get_and_process_orders_closed(data_repo_full, mock_project_data_record,

assert op.all_orders[1]["identifier"] == order_id
modified_orders = op.process_orders(config_values.STATUS_PRIORITY_REV)
assert modified_orders[orderer]["delete_report_for"]["All Raw data Delivered"][0] == data_master.data[order_id]
assert modified_orders[orderer]["delete_report_for"]["All Raw Data Delivered"][0] == data_master.data[order_id]


def test_get_and_process_orders_mult_reports(data_repo_full, mock_project_data_record, get_env_file_path):
Expand Down

0 comments on commit 91c0f32

Please sign in to comment.