From 833dff81ea60b27a432f76f5baa308ac8f731500 Mon Sep 17 00:00:00 2001 From: Quan Nguyen <86090707+qu8n@users.noreply.github.com> Date: Fri, 27 Sep 2024 19:20:50 +0000 Subject: [PATCH] Increase sample polling interval from 2s to 5s and move investigatorSampleId column to the front --- frontend/src/components/SamplesList.tsx | 2 +- frontend/src/shared/helpers.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/SamplesList.tsx b/frontend/src/components/SamplesList.tsx index 4ba8b9c..5db1fb6 100644 --- a/frontend/src/components/SamplesList.tsx +++ b/frontend/src/components/SamplesList.tsx @@ -28,7 +28,7 @@ import { useParams } from "react-router-dom"; import { DataName } from "../shared/types"; import { parseUserSearchVal } from "../utils/parseSearchQueries"; -const POLLING_INTERVAL = 2000; +const POLLING_INTERVAL = 5000; // 5s const MAX_ROWS_TABLE = 500; const MAX_ROWS_EXPORT = 5000; const MAX_ROWS_SCROLLED_ALERT = diff --git a/frontend/src/shared/helpers.tsx b/frontend/src/shared/helpers.tsx index 8d932c2..95facb2 100644 --- a/frontend/src/shared/helpers.tsx +++ b/frontend/src/shared/helpers.tsx @@ -662,6 +662,10 @@ export const WesSampleDetailsColumns: ColDef[] = [ field: "cmoSampleName", headerName: "CMO Sample Name", }, + { + field: "investigatorSampleId", + headerName: "Investigator Sample ID", + }, { field: "initialPipelineRunDate", headerName: "Initial Pipeline Run Date", @@ -783,10 +787,6 @@ export const WesSampleDetailsColumns: ColDef[] = [ field: "cancerTypeDetailed", headerName: "Cancer Type Detailed", }, - { - field: "investigatorSampleId", - headerName: "Investigator Sample ID", - }, ]; export const ReadOnlyCohortSampleDetailsColumns = _.cloneDeep(