From 7a9cd34b4e197a127bf9802538311dd9ed84c184 Mon Sep 17 00:00:00 2001 From: ao508 <15623749+ao508@users.noreply.github.com> Date: Wed, 15 May 2024 13:27:04 -0400 Subject: [PATCH] Change default value of custodianInformation on TEMPO node creation (#1160) Signed-off-by: Angelica Ochoa <15623749+ao508@users.noreply.github.com> --- .../java/org/mskcc/smile/service/impl/TempoServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/org/mskcc/smile/service/impl/TempoServiceImpl.java b/service/src/main/java/org/mskcc/smile/service/impl/TempoServiceImpl.java index 0471fa26..4cedad23 100644 --- a/service/src/main/java/org/mskcc/smile/service/impl/TempoServiceImpl.java +++ b/service/src/main/java/org/mskcc/smile/service/impl/TempoServiceImpl.java @@ -39,13 +39,13 @@ public Tempo saveTempoData(Tempo tempo) throws Exception { // custodian information and data access level SmileSample sample = tempo.getSmileSample(); SmileRequest request = requestService.getRequestBySample(sample); - String custodianInformation = Strings.isBlank(request.getPiEmail()) - ? request.getInvestigatorEmail() : request.getPiEmail(); + String custodianInformation = Strings.isBlank(request.getLabHeadName()) + ? request.getLabHeadName() : request.getInvestigatorName(); tempo.setCustodianInformation(custodianInformation); // if backfilling data then access level might already be present in incoming data if (Strings.isBlank(tempo.getAccessLevel())) { - tempo.setAccessLevel("MSKEmbargo"); + tempo.setAccessLevel("MSK Embargo"); } return tempoRepository.save(tempo);