-
Notifications
You must be signed in to change notification settings - Fork 4
[DT-2755] Adds showing file name + errata #3239
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
[DT-2755] Adds showing file name + errata #3239
Conversation
…tes; fix model name to match backend API name
| description="If an Institutional Certification for this consent group exists, please upload it here" | ||
| id="nihInstitutionalCertificationFile" | ||
| defaultValue={current.nihInstitutionalCertificationFile} | ||
| id="addedNIHInstitutionalCertificationFile" |
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.
Renamed because there's a bit of a confusing state within consent. The object being sent to the backend should be a File and not a FileStorageObject.
In consent a Dataset calls the field nihInstitutionalCertificationFile and it contains FileStorageObject
When sending the consentGroup payload, this field should not be mutated. We should only ever set a file as the specific structure specified in the multipart form payload in DataSubmissionFormV2.buildMultiPartFormData
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.
@ncalvanese1 - We should catch up on your script. :-)
…lse; handle data cases from Nate's scripts that the backend allows.
|
|
||
| consentGroup.mor = !isEmpty(dataset.dataUse.publicationMoratorium) | ||
| consentGroup.morDate = dataset.dataUse.publicationMoratorium | ||
| if (isEmpty(dataset.dataUse.publicationMoratorium)) { |
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.
We can get an empty string from the backend.
| consentGroup.col = dataset.dataUse.collaboratorRequired | ||
| consentGroup.irb = dataset.dataUse.ethicsApprovalRequired | ||
| consentGroup.gs = dataset.dataUse.geographicalRestrictions | ||
| if (isEmpty(dataset.dataUse.geographicalRestrictions)) { |
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.
We are getting empty strings in cases for this value.
| consentGroup.diseaseSpecificUse = dataset.dataUse.diseaseRestrictions | ||
| consentGroup.poa = dataset.dataUse.populationOriginsAncestry | ||
| consentGroup.otherPrimary = dataset.dataUse.other | ||
| if (isEmpty(dataset.dataUse.other)) { |
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.
We are getting empty strings in cases for this value.
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.
We likely have a bug on the back end that sends empty strings.
| } | ||
| consentGroup.npu = dataset.dataUse.nonProfitUse | ||
| consentGroup.otherSecondary = dataset.dataUse.secondaryOther | ||
| if (consentGroup.otherSecondary && consentGroup.otherSecondary.length > 0) { |
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.
We can get an empty string from the backend.
| } | ||
| consentGroup.npu = dataset.dataUse.nonProfitUse | ||
| consentGroup.otherSecondary = dataset.dataUse.secondaryOther | ||
| if (isEmpty(consentGroup.otherSecondary)) { |
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.
We can get an empty string from the backend.
|
rushtong
left a comment
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 good 👍🏽
| consentGroup.diseaseSpecificUse = dataset.dataUse.diseaseRestrictions | ||
| consentGroup.poa = dataset.dataUse.populationOriginsAncestry | ||
| consentGroup.otherPrimary = dataset.dataUse.other | ||
| if (isEmpty(dataset.dataUse.other)) { |
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.
We likely have a bug on the back end that sends empty strings.



Addresses
https://broadworkbench.atlassian.net/browse/DT-2755
Summary
Have you read Terra's Contributing Guide lately? If not, do that first.