{"action":"created","issue":{"url":"https://api.github.com/repos/kube-HPC/hkube/issues/138","repository_url":"https://api.github.com/repos/kube-HPC/hkube","labels_url":"https://api.github.com/repos/kube-HPC/hkube/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/kube-HPC/hkube/issues/138/comments","events_url":"https://api.github.com/repos/kube-HPC/hkube/issues/138/events","html_url":"https://github.com/kube-HPC/hkube/issues/138","id":323664484,"node_id":"MDU6SXNzdWUzMjM2NjQ0ODQ=","number":138,"title":"Handle algorithm deletion","user":{"login":"NassiHarel","id":9460060,"node_id":"MDQ6VXNlcjk0NjAwNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9460060?v=4","gravatar_id":"","url":"https://api.github.com/users/NassiHarel","html_url":"https://github.com/NassiHarel","followers_url":"https://api.github.com/users/NassiHarel/followers","following_url":"https://api.github.com/users/NassiHarel/following{/other_user}","gists_url":"https://api.github.com/users/NassiHarel/gists{/gist_id}","starred_url":"https://api.github.com/users/NassiHarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NassiHarel/subscriptions","organizations_url":"https://api.github.com/users/NassiHarel/orgs","repos_url":"https://api.github.com/users/NassiHarel/repos","events_url":"https://api.github.com/users/NassiHarel/events{/privacy}","received_events_url":"https://api.github.com/users/NassiHarel/received_events","type":"User","site_admin":false},"labels":[{"id":782938054,"node_id":"MDU6TGFiZWw3ODI5MzgwNTQ=","url":"https://api.github.com/repos/kube-HPC/hkube/labels/api-server","name":"api-server","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":{"login":"NassiHarel","id":9460060,"node_id":"MDQ6VXNlcjk0NjAwNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9460060?v=4","gravatar_id":"","url":"https://api.github.com/users/NassiHarel","html_url":"https://github.com/NassiHarel","followers_url":"https://api.github.com/users/NassiHarel/followers","following_url":"https://api.github.com/users/NassiHarel/following{/other_user}","gists_url":"https://api.github.com/users/NassiHarel/gists{/gist_id}","starred_url":"https://api.github.com/users/NassiHarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NassiHarel/subscriptions","organizations_url":"https://api.github.com/users/NassiHarel/orgs","repos_url":"https://api.github.com/users/NassiHarel/repos","events_url":"https://api.github.com/users/NassiHarel/events{/privacy}","received_events_url":"https://api.github.com/users/NassiHarel/received_events","type":"User","site_admin":false},"assignees":[{"login":"maty21","id":5236665,"node_id":"MDQ6VXNlcjUyMzY2NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/5236665?v=4","gravatar_id":"","url":"https://api.github.com/users/maty21","html_url":"https://github.com/maty21","followers_url":"https://api.github.com/users/maty21/followers","following_url":"https://api.github.com/users/maty21/following{/other_user}","gists_url":"https://api.github.com/users/maty21/gists{/gist_id}","starred_url":"https://api.github.com/users/maty21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maty21/subscriptions","organizations_url":"https://api.github.com/users/maty21/orgs","repos_url":"https://api.github.com/users/maty21/repos","events_url":"https://api.github.com/users/maty21/events{/privacy}","received_events_url":"https://api.github.com/users/maty21/received_events","type":"User","site_admin":false},{"login":"yehiyam","id":6139491,"node_id":"MDQ6VXNlcjYxMzk0OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6139491?v=4","gravatar_id":"","url":"https://api.github.com/users/yehiyam","html_url":"https://github.com/yehiyam","followers_url":"https://api.github.com/users/yehiyam/followers","following_url":"https://api.github.com/users/yehiyam/following{/other_user}","gists_url":"https://api.github.com/users/yehiyam/gists{/gist_id}","starred_url":"https://api.github.com/users/yehiyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yehiyam/subscriptions","organizations_url":"https://api.github.com/users/yehiyam/orgs","repos_url":"https://api.github.com/users/yehiyam/repos","events_url":"https://api.github.com/users/yehiyam/events{/privacy}","received_events_url":"https://api.github.com/users/yehiyam/received_events","type":"User","site_admin":false},{"login":"NassiHarel","id":9460060,"node_id":"MDQ6VXNlcjk0NjAwNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/9460060?v=4","gravatar_id":"","url":"https://api.github.com/users/NassiHarel","html_url":"https://github.com/NassiHarel","followers_url":"https://api.github.com/users/NassiHarel/followers","following_url":"https://api.github.com/users/NassiHarel/following{/other_user}","gists_url":"https://api.github.com/users/NassiHarel/gists{/gist_id}","starred_url":"https://api.github.com/users/NassiHarel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NassiHarel/subscriptions","organizations_url":"https://api.github.com/users/NassiHarel/orgs","repos_url":"https://api.github.com/users/NassiHarel/repos","events_url":"https://api.github.com/users/NassiHarel/events{/privacy}","received_events_url":"https://api.github.com/users/NassiHarel/received_events","type":"User","site_admin":false},{"login":"bahalool","id":35491699,"node_id":"MDQ6VXNlcjM1NDkxNjk5","avatar_url":"https://avatars2.githubusercontent.com/u/35491699?v=4","gravatar_id":"","url":"https://api.github.com/users/bahalool","html_url":"https://github.com/bahalool","followers_url":"https://api.github.com/users/bahalool/followers","following_url":"https://api.github.com/users/bahalool/following{/other_user}","gists_url":"https://api.github.com/users/bahalool/gists{/gist_id}","starred_url":"https://api.github.com/users/bahalool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahalool/subscriptions","organizations_url":"https://api.github.com/users/bahalool/orgs","repos_url":"https://api.github.com/users/bahalool/repos","events_url":"https://api.github.com/users/bahalool/events{/privacy}","received_events_url":"https://api.github.com/users/bahalool/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kube-HPC/hkube/milestones/2","html_url":"https://github.com/kube-HPC/hkube/milestone/2","labels_url":"https://api.github.com/repos/kube-HPC/hkube/milestones/2/labels","id":3159129,"node_id":"MDk6TWlsZXN0b25lMzE1OTEyOQ==","number":2,"title":"1.0","description":null,"creator":{"login":"Ronenk5678","id":36502572,"node_id":"MDQ6VXNlcjM2NTAyNTcy","avatar_url":"https://avatars1.githubusercontent.com/u/36502572?v=4","gravatar_id":"","url":"https://api.github.com/users/Ronenk5678","html_url":"https://github.com/Ronenk5678","followers_url":"https://api.github.com/users/Ronenk5678/followers","following_url":"https://api.github.com/users/Ronenk5678/following{/other_user}","gists_url":"https://api.github.com/users/Ronenk5678/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronenk5678/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronenk5678/subscriptions","organizations_url":"https://api.github.com/users/Ronenk5678/orgs","repos_url":"https://api.github.com/users/Ronenk5678/repos","events_url":"https://api.github.com/users/Ronenk5678/events{/privacy}","received_events_url":"https://api.github.com/users/Ronenk5678/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":6,"state":"open","created_at":"2018-03-04T14:21:30Z","updated_at":"2018-08-27T08:41:56Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-05-16T15:09:18Z","updated_at":"2018-08-27T08:41:56Z","closed_at":"2018-08-27T08:41:56Z","author_association":"CONTRIBUTOR","body":"- [x] check all running pipelines, executions and triggers\n- [ ] delete all jobs with this algorithm type from bull\n- [ ] delete /algorithmRequirements\n- [ ] delete /algorithmQueue\n\n## UPDATE:\nthe decided solution was to tell the user that he needs to delete the follows, instead of deleting it and causing undesirable issues\n\n### example for output \n\n```json\n{\n    \"error\": {\n        \"code\": 400,\n        \"message\": \"algorithm green-alg is stored in 10 different pipelines, algorithm green-alg is running in 1 different executions, before you delete algorithm green-alg you must first delete all related pipelines and executions\",\n        \"details\": {\n            \"pipelines\": [\n                \"simple-wait-batch\",\n                \"trigger4\",\n                \"trigger1\",\n                \"batch\",\n                \"simple\",\n                \"big-batch\",\n                \"trigger2\",\n                \"big-wait-batch\",\n                \"trigger3\",\n                \"batch-on-node\"\n            ],\n            \"executions\": [\n                \"raw-stress-c1aec3b788:1f9b52af-8f39-4fe6-9332-acaaa38fb246.raw-stress-c1aec3b788\"\n            ]\n        }\n    }\n}\n```"},"comment":{"url":"https://api.github.com/repos/kube-HPC/hkube/issues/comments/416157709","html_url":"https://github.com/kube-HPC/hkube/issues/138#issuecomment-416157709","issue_url":"https://api.github.com/repos/kube-HPC/hkube/issues/138","id":416157709,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjE1NzcwOQ==","user":{"login":"eytangro","id":10618053,"node_id":"MDQ6VXNlcjEwNjE4MDUz","avatar_url":"https://avatars1.githubusercontent.com/u/10618053?v=4","gravatar_id":"","url":"https://api.github.com/users/eytangro","html_url":"https://github.com/eytangro","followers_url":"https://api.github.com/users/eytangro/followers","following_url":"https://api.github.com/users/eytangro/following{/other_user}","gists_url":"https://api.github.com/users/eytangro/gists{/gist_id}","starred_url":"https://api.github.com/users/eytangro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eytangro/subscriptions","organizations_url":"https://api.github.com/users/eytangro/orgs","repos_url":"https://api.github.com/users/eytangro/repos","events_url":"https://api.github.com/users/eytangro/events{/privacy}","received_events_url":"https://api.github.com/users/eytangro/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T08:41:56Z","updated_at":"2018-08-27T08:41:56Z","author_association":"NONE","body":"TID-530"}}
{"actor":{"display_login":"eytangro"}}