{"action":"created","issue":{"url":"https://api.github.com/repos/baasbox/baasbox/issues/722","labels_url":"https://api.github.com/repos/baasbox/baasbox/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/baasbox/baasbox/issues/722/comments","events_url":"https://api.github.com/repos/baasbox/baasbox/issues/722/events","html_url":"https://github.com/baasbox/baasbox/issues/722","id":63473054,"number":722,"title":"Document deletion should delete link to it","user":{"login":"avently","id":7953703,"avatar_url":"https://avatars.githubusercontent.com/u/7953703?v=3","gravatar_id":"","url":"https://api.github.com/users/avently","html_url":"https://github.com/avently","followers_url":"https://api.github.com/users/avently/followers","following_url":"https://api.github.com/users/avently/following{/other_user}","gists_url":"https://api.github.com/users/avently/gists{/gist_id}","starred_url":"https://api.github.com/users/avently/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avently/subscriptions","organizations_url":"https://api.github.com/users/avently/orgs","repos_url":"https://api.github.com/users/avently/repos","events_url":"https://api.github.com/users/avently/events{/privacy}","received_events_url":"https://api.github.com/users/avently/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/baasbox/baasbox/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/baasbox/baasbox/labels/Server","name":"Server","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-22T01:01:36Z","updated_at":"2015-04-03T23:18:12Z","closed_at":"2015-04-03T20:04:29Z","body":"When one of the two linked documents deleted Baasbox should delete link from one to another. Because link exists and connects to incorrect RIDs (null)."},"comment":{"url":"https://api.github.com/repos/baasbox/baasbox/issues/comments/89448837","html_url":"https://github.com/baasbox/baasbox/issues/722#issuecomment-89448837","issue_url":"https://api.github.com/repos/baasbox/baasbox/issues/722","id":89448837,"user":{"login":"giastfader","id":2334584,"avatar_url":"https://avatars.githubusercontent.com/u/2334584?v=3","gravatar_id":"","url":"https://api.github.com/users/giastfader","html_url":"https://github.com/giastfader","followers_url":"https://api.github.com/users/giastfader/followers","following_url":"https://api.github.com/users/giastfader/following{/other_user}","gists_url":"https://api.github.com/users/giastfader/gists{/gist_id}","starred_url":"https://api.github.com/users/giastfader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giastfader/subscriptions","organizations_url":"https://api.github.com/users/giastfader/orgs","repos_url":"https://api.github.com/users/giastfader/repos","events_url":"https://api.github.com/users/giastfader/events{/privacy}","received_events_url":"https://api.github.com/users/giastfader/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T23:18:12Z","updated_at":"2015-04-03T23:18:12Z","body":"@avently the reason is the ACL.\r\nTo create edges among nodes you must have permission to update BOTH nodes.\r\nIn many scenarios a user can read information stored in a node, but cannot update it.\r\nImagine a blog post, everyone can read it but if you want to leave a comment you should create a link between the post and your comment, but simply you can't.\r\nSo in BaasBox, documents are stored in classes that extend ORestricted, and have a _link field to a node that is managed internally without restrictions. In this way we can create \"links\" between documents.\r\nIt is just a workaround, at least until the OrientDB team does not implement other permissions like \"can create edge\" on nodes."}}