-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BI-1923] Treatment factor missing from experimental ui #332
Conversation
src/views/import/Dataset.vue
Outdated
if(unit.additionalInfo && unit.additionalInfo.treatments && unit.additionalInfo.treatments && unit.additionalInfo.treatments[0]){ | ||
datasetTableRow.treatmentFactors = unit.additionalInfo.treatments[0].factor; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While treatment factors are stored for persistence to the brapi storage server, they are translated back to being in unit.treatments
in ObservationUnitDAO.java
. This code should reference that location in the ObservationUnit object rather than in additionalInfo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
…ity instead of ObservationUnit::additionalInfo
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "bi-web", | |||
"version": "v0.8.1+585", | |||
"version": "v0.9.0+589", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you rebased from the develop
branch. Can the two changes in the file be reverted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -34,7 +34,7 @@ export class ObservationUnit { | |||
observationUnitPosition?: ObservationUnitPosition; | |||
externalReferences?: ExternalReferences; | |||
additionalInfo?: any; | |||
treatments?: any; | |||
treatments?: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed to an array of strings instead of leaving it as any
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Changed.
Upon review of BrAPI, 'any' is the preferred type.
Re-opening because it "Closed with unmerged commits" |
Description
Story: BI-1923 - Treatment factor missing from experimental ui
Dependencies
bi-api: develop branch
Testing
Import an experiment with treatment factor.
Display it.
There should now be a Treatment Factors column in the Observation Dataset (with data)
Checklist: