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.
Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/BIH-39
Fixing the tests for an edge case found in the BIH dictionary.
The tests run this data-simulator command, using
image_annotation
because that's the "leaf node" the bash script found:The output is:
The
getPathWithFileNode
function looks for a file node in this output ^. It findsimage_file
first. The rest of the submission logic, specifically this, assumes that the file node is a "leaf node" (a node with no child links), which is not the case here (image_file
has a child link toimage_annotation
). This creates problems later (image_file
is removed from the path since it's assumed to be a leaf node, so it's not submitted beforeimage_annotation
, so the submission fails).This can be fixed by picking the last file node instead of the first file node in
getPathWithFileNode
. The last file node of the list should be a leaf node.New Features
Breaking Changes
Bug Fixes
Improvements
Node.target
propertygetPathWithFileNode
to return the last file node it finds, instead of the first one, since the rest of the submission logic assumes it's a leaf nodeDependency updates
Deployment changes