-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error on deleting an ontology that has provisionalClasses #127
Comments
After discussing this with @syphax-bouazzouni we see a discrepancy between what is in the model and what is in the delete ontology script. We believe the model is right and the script is wrong. In that case, the onts.select! will be removed and changed by a couple of lines of code that will delete all the provisional classes when the ontology containing them is itself deleted. We can PR the change if confirmed by you. |
@jonquet, @syphax-bouazzouni, you are correct! This does appear to be a discrepancy. I think the code should be revised to:
My concern is that our unit test suite did not catch this error. We should fix the corresponding unit test along with this change by adding a provisional class to one (or both) of the two ontologies created in the test: https://github.com/ncbo/ontologies_linked_data/blob/master/test/models/test_ontology.rb#L298 Something like this on Line 303 should do the trick, I think (please verify):
Good catch! |
@mdorf |
At Agroportal, when we try to delete an ontology that has provisionalClasses, we get this exception :
And i think that the cause of the problem is here : https://github.com/ncbo/ontologies_linked_data/blob/master/lib/ontologies_linked_data/models/ontology.rb#L366
The text was updated successfully, but these errors were encountered: