[BI-1193] Associate phenotypes with experiment observation dataset#247
Merged
[BI-1193] Associate phenotypes with experiment observation dataset#247
Conversation
0413109 to
ba0ef08
Compare
4caa377 to
6ca12fd
Compare
timparsons
requested changes
Apr 27, 2023
| try { | ||
| response = api.listsListDbIdItemsPost(brAPIListDbId, data); | ||
| } catch (ApiException e) { | ||
| log.warn(Utilities.generateApiExceptionLogMessage(e)); |
Member
There was a problem hiding this comment.
This should probably be log.error
| // Do manually, it doesn't like List<Object> to List<BrAPIListNewRequest> for some reason | ||
| ApiResponse<BrAPIListResponse> response; | ||
| try { | ||
| response = api.listsListDbIdItemsPost(brAPIListDbId, data); |
Member
There was a problem hiding this comment.
This method should be changed to use PUT /lists/{listDbId} to allow for full replacement of the contents of the list
| } | ||
| } | ||
| addObsVarsToDatasetDetails(pio, referencedTraits); | ||
| obsVarDatasetByName.put(name, pio); |
Member
There was a problem hiding this comment.
I think this can be done in the else block
| return (T) body.getResult(); | ||
|
|
||
| } catch (ApiException e) { | ||
| log.warn(Utilities.generateApiExceptionLogMessage(e)); |
davedrp
requested changes
May 1, 2023
src/main/java/org/breedinginsight/brapps/importer/services/processors/ExperimentProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/breedinginsight/brapps/importer/services/processors/ExperimentProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/breedinginsight/brapps/importer/services/processors/ExperimentProcessor.java
Outdated
Show resolved
Hide resolved
src/test/java/org/breedinginsight/brapps/importer/ExperimentFileImportTest.java
Outdated
Show resolved
Hide resolved
davedrp
approved these changes
May 2, 2023
timparsons
approved these changes
May 8, 2023
Member
timparsons
left a comment
There was a problem hiding this comment.
Looks good! Approving assuming the commented out code is removed.
|
|
||
| private void processAndCacheTrial(BrAPITrial existingTrial, Program program, String trialRefSource, Map<String, PendingImportObject<BrAPITrial>> trialByNameNoScope) { | ||
| existingTrial.setTrialName(Utilities.removeProgramKey(existingTrial.getTrialName(), program.getKey())); | ||
| //existingTrial.setTrialName(Utilities.removeProgramKey(existingTrial.getTrialName(), program.getKey())); |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Story: BI-1193
Changes made to
ExperimentProcessor:obsVarDatasetByNameto hold a map for dataset pending import objectsTo handle the case when an import object needs to be updated the following were added:
ImportObjectState.MUTATEDBrAPIDAOUtil#putProcessorData#getMutationsByObjectIdFor updating Trials:
AdditionalInfoField.observationDatasetIdBrAPITrialDAO#updateBrAPITrialFor creating/updating Datasets
ExternalReferenceSource.DATASETExperimentObservation#contructDatasetDetailsBrAPIListDAO#updateBrAPIListDependencies
none
Testing
see acceptance criteria in the card
Checklist: