-
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
Fixes issue #65 #66
Fixes issue #65 #66
Conversation
There is a pull request that is a fix for your tests failing, see |
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.
✅ Code looks good
The validation is good too and testing worked as expected :-)
Only one thing to fix. Right now it disables the analysis form field on edit even it is not yet. Admin should be able to go back and add analysis after the initial creation. This is common if the first time they didn't bother because it was the only assembly or the functionality didn't exist yet, but now there are many assemblies and they want to make it more clear.
The latest commit fixes the issue of field sequence assembly set to disabled by default, and as part of the fix, it will now save value set to this field when saving modifications. Please note that with this fix, the edit form will only allow modification of sequence assembly when it was not set previously in create/add form. To test:
|
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 and works perfectly -Thank you @reynoldtan
This PR fixes Issue #65 - Unable to modify instance.
The error is caused by hook_validate when modifying an instance where there is another instance and both share the same organism. This fix takes into account sequence assembly information before checking for identical instance.
To test:
// No two instances share same organism and empty sequence assembly
// No two instances share same organism and same sequence assembly
Knowing what triggers validation, test fields organism, description, start location and tracks to display as well.