{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/perun/issues/880","labels_url":"https://api.github.com/repos/CESNET/perun/issues/880/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/perun/issues/880/comments","events_url":"https://api.github.com/repos/CESNET/perun/issues/880/events","html_url":"https://github.com/CESNET/perun/pull/880","id":91172133,"number":880,"title":"New mechanic to set any contacts for facilities","user":{"login":"stavamichal","id":5602147,"avatar_url":"https://avatars.githubusercontent.com/u/5602147?v=3","gravatar_id":"","url":"https://api.github.com/users/stavamichal","html_url":"https://github.com/stavamichal","followers_url":"https://api.github.com/users/stavamichal/followers","following_url":"https://api.github.com/users/stavamichal/following{/other_user}","gists_url":"https://api.github.com/users/stavamichal/gists{/gist_id}","starred_url":"https://api.github.com/users/stavamichal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavamichal/subscriptions","organizations_url":"https://api.github.com/users/stavamichal/orgs","repos_url":"https://api.github.com/users/stavamichal/repos","events_url":"https://api.github.com/users/stavamichal/events{/privacy}","received_events_url":"https://api.github.com/users/stavamichal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T06:39:35Z","updated_at":"2015-07-10T06:57:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CESNET/perun/pulls/880","html_url":"https://github.com/CESNET/perun/pull/880","diff_url":"https://github.com/CESNET/perun/pull/880.diff","patch_url":"https://github.com/CESNET/perun/pull/880.patch"},"body":" - new object contactGroup with facility, name and owner's, user's and\r\n   group's contacts\r\n - change schema for oracle, postgre, hsqldb and also table order\r\n - add new methods for working with new table to facility impl and api\r\n   managers\r\n - add methods also to bl, blimpl, api and entry managers\r\n - add also tests of all methods (basic funcionality)\r\n - add all methods from api to RPC"},"comment":{"url":"https://api.github.com/repos/CESNET/perun/issues/comments/120256000","html_url":"https://github.com/CESNET/perun/pull/880#issuecomment-120256000","issue_url":"https://api.github.com/repos/CESNET/perun/issues/880","id":120256000,"user":{"login":"zlamalp","id":1336607,"avatar_url":"https://avatars.githubusercontent.com/u/1336607?v=3","gravatar_id":"","url":"https://api.github.com/users/zlamalp","html_url":"https://github.com/zlamalp","followers_url":"https://api.github.com/users/zlamalp/followers","following_url":"https://api.github.com/users/zlamalp/following{/other_user}","gists_url":"https://api.github.com/users/zlamalp/gists{/gist_id}","starred_url":"https://api.github.com/users/zlamalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlamalp/subscriptions","organizations_url":"https://api.github.com/users/zlamalp/orgs","repos_url":"https://api.github.com/users/zlamalp/repos","events_url":"https://api.github.com/users/zlamalp/events{/privacy}","received_events_url":"https://api.github.com/users/zlamalp/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T06:57:13Z","updated_at":"2015-07-10T06:57:13Z","body":"I don't see any mechanic to delete contacts from facility when either owner, group or user is deleted from Perun. Since you have constraint (far-key) it would prevent from deletion of owner, group or user. I'm not sure, if this contact information is a priority and should be behind \"force\" option when deleting group/user or you should better use \"on delete cascade\" for far-key definition. I suggest second option as I use it on application_form tables where keeping form/items and data for deleted VO makes no sense."}}