-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for handling updates for requests and/or samples. (#594)
Added changes to addresses issues encountered when certain needs evolved related to the handling of requests and/or samples being updated. Mocked data has been updated as well. Signed-off-by: Divya Madala <[email protected]> Signed-off-by: Angelica Ochoa <[email protected]> Co-authored-by: divyamadala30 <[email protected]>
- Loading branch information
1 parent
bbdb78e
commit 6295d3f
Showing
23 changed files
with
924 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
service/src/test/java/org/mskcc/cmo/metadb/service/RequestDataFactoryUtilTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.mskcc.cmo.metadb.service; | ||
|
||
import java.util.Map; | ||
import org.junit.jupiter.api.Test; | ||
import org.mskcc.cmo.metadb.model.MetadbRequest; | ||
import org.mskcc.cmo.metadb.service.util.RequestDataFactory; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.context.annotation.Import; | ||
|
||
/** | ||
* | ||
* @author ochoaa | ||
*/ | ||
@SpringBootTest | ||
@Import(MockDataUtils.class) | ||
public class RequestDataFactoryUtilTest { | ||
@Autowired | ||
private MockDataUtils mockDataUtils; | ||
|
||
/** | ||
* Tests that deserialization of igo sample jsons succeeds and that the sample | ||
* data factory can convert the igo sample into an instance of SampleMetadata. | ||
* @throws Exception | ||
*/ | ||
@Test | ||
public void testResearchSamplesAndRequestDataLoading() throws Exception { | ||
for (Map.Entry<String, MockJsonTestData> entry : mockDataUtils.mockedRequestJsonDataMap.entrySet()) { | ||
if (!entry.getKey().startsWith("mockIncoming")) { | ||
continue; | ||
} | ||
String jsonString = entry.getValue().getJsonString(); | ||
MetadbRequest request = RequestDataFactory.buildNewLimsRequestFromJson(jsonString); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../src/test/resources/data/other_mocked_data/outgoing_mocked_request1_updated_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"metaDbRequestId": "6cc9f987-875a-11eb-ada3-acde48001122", | ||
"igoRequestId": "MOCKREQUEST1_B", | ||
"genePanel": "GENESET101_BAITS_NEWNAME", | ||
"projectManagerName": "Bar, Foo", | ||
"piEmail": "[email protected]", | ||
"labHeadName": "Foo Bar", | ||
"labHeadEmail": "[email protected]", | ||
"investigatorName": "John Smith", | ||
"investigatorEmail": "[email protected]", | ||
"dataAnalystName": "Poin Dexter", | ||
"dataAnalystEmail": "[email protected]", | ||
"otherContactEmails": "[email protected]", | ||
"dataAccessEmails": "", | ||
"qcAccessEmails": "", | ||
"isCmoRequest": true, | ||
"bicAnalysis": false, | ||
"pooledNormals": [ | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FFPEPOOLEDNORMAL_IGO_GENESET101_TAGCTTGA/FFPEPOOLEDNORMAL_IGO_GENESET101_TAGCTTGA_S23_R1_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FFPEPOOLEDNORMAL_IGO_GENESET101_TAGCTTGA/FFPEPOOLEDNORMAL_IGO_GENESET101_TAGCTTGA_S23_R2_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_AMBIGUOUS_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_AMBIGUOUS_TTAGGCTG_S86_R1_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_AMBIGUOUS_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_AMBIGUOUS_TTAGGCTG_S86_R2_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_HEMESET_v1_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_HEMESET_v1_TTAGGCTG_S147_R1_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_HEMESET_v1_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_HEMESET_v1_TTAGGCTG_S147_R2_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_GENESET101_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_GENESET101_TTAGGCTG_S196_R1_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_GENESET101_TTAGGCTG/FROZENPOOLEDNORMAL_IGO_GENESET101_TTAGGCTG_S196_R2_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_MOUSEPOOLEDNORMAL_IGO_AMBIGUOUS_GGCGTCAT/MOUSEPOOLEDNORMAL_IGO_AMBIGUOUS_GGCGTCAT_S61_R1_001.fastq.gz", | ||
"/FASTQ/Project_POOLEDNORMALS/Sample_MOUSEPOOLEDNORMAL_IGO_AMBIGUOUS_GGCGTCAT/MOUSEPOOLEDNORMAL_IGO_AMBIGUOUS_GGCGTCAT_S61_R2_001.fastq.gz" | ||
], | ||
"igoProjectId": "MOCKREQUEST1" | ||
} |
Oops, something went wrong.