You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
Further investigation shows that any NodeType that has associated TemplateAttributes cannot be deleted. (i.e., a NodeType w/o associated attributes can be deleted).
Yes you have to delete associations unless you want an unchecked cascade,... which is dangerous. I can put in more CLEAR error messages if this is what you want but this needs to be specified as to whether the CASCADE DELETE with transactional rollback is wanted or whether CLEARER OUTPUT MESSAGES are or both. At which point this will most likely be all I do today.
what needs to be done is make sure their is no 'dependson' between node and nodetype so all you have to do is CHECK whether a node nodetype exists in a node or not up front (outside the transaction); this is our main test and needs to happen upfront and outside the transaction as it is easier and doesnt need to happen within transaction since we would never commit this regardless if it existed. Then do a transactional delete through the dependencies (nodetype > templateattribute > templatevalue) and rollback on any fail.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To reproduce:
curl --verbose --request DELETE http://localhost:8080/api/nodeType/none/1 --cookie ${cookie}
Response:
The text was updated successfully, but these errors were encountered: