-
Notifications
You must be signed in to change notification settings - Fork 4
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
[DUOS-1764][risk=no] Loop over all dataset ids instead of assuming the first #1677
Conversation
# Conflicts: # src/utils/DarCollectionUtils.js
In short, yes, I think this is expected. Longer answer ... when we In a future PR, when we stop splitting the DAR up on submission, then the |
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 to me!
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.
Changes looks good to me
Addresses
Partially addresses https://broadworkbench.atlassian.net/browse/DUOS-1764
See also: DataBiosphere/consent#1648
This PR refactors the outdated assumption that a submitted DAR will always have a single dataset id. In all cases where we looked for the first element of the
datasetIds
array indata
, first look in thedar
itself. This PR tries to maintain the same logical conditions but for the whole list instead of just the head of the array.Have you read Terra's Contributing Guide lately? If not, do that first.