-
Notifications
You must be signed in to change notification settings - Fork 1
[BI-2630] - Improve Create Sub-Entity Pop-Up #447
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
Conversation
davedrp
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.
Test passed.
Code looks good.
Great work (as usual)!
| async invokeCreate(){ | ||
| //Check if sub-entity name is already in experiment | ||
| let nameAlreadyInExp = this.existingDatasetNames.map(y => y.toLowerCase()).includes(this.newSubEntity.name.toLowerCase()); |
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 might want to have this check done in the backend in the POST /programs/{programId}/experiments/{experimentId}/dataset endpoint. I'd be ok having that in another card.
Description
Story: BI-2630 - Improve Create Sub-Entity Pop-Up
Changes to improve and add validations for modal for creating new sub-entities.
(Note: The suggested entity names are the program entity names as stored in the /observation-levels endpoint when creating an entity as part of an ontology term, not all the experiment-associated entity/sub-entity names. It might be worth considering whether experiment-associated entity/sub-entity names should be stored there rather than just in additionalInfo)
Dependencies
bi-api: develop
Testing
In experiment dataset view
Checklist: