{"action":"created","issue":{"url":"https://api.github.com/repos/AndreyAttr/Evo/issues/76","repository_url":"https://api.github.com/repos/AndreyAttr/Evo","labels_url":"https://api.github.com/repos/AndreyAttr/Evo/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/AndreyAttr/Evo/issues/76/comments","events_url":"https://api.github.com/repos/AndreyAttr/Evo/issues/76/events","html_url":"https://github.com/AndreyAttr/Evo/issues/76","id":248422321,"number":76,"title":"ObjectHelper.deepCopy()","user":{"login":"AndreyAttr","id":8319203,"avatar_url":"https://avatars0.githubusercontent.com/u/8319203?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreyAttr","html_url":"https://github.com/AndreyAttr","followers_url":"https://api.github.com/users/AndreyAttr/followers","following_url":"https://api.github.com/users/AndreyAttr/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAttr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAttr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAttr/subscriptions","organizations_url":"https://api.github.com/users/AndreyAttr/orgs","repos_url":"https://api.github.com/users/AndreyAttr/repos","events_url":"https://api.github.com/users/AndreyAttr/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAttr/received_events","type":"User","site_admin":false},"labels":[{"id":624440315,"url":"https://api.github.com/repos/AndreyAttr/Evo/labels/blocker","name":"blocker","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"AndreyAttr","id":8319203,"avatar_url":"https://avatars0.githubusercontent.com/u/8319203?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreyAttr","html_url":"https://github.com/AndreyAttr","followers_url":"https://api.github.com/users/AndreyAttr/followers","following_url":"https://api.github.com/users/AndreyAttr/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAttr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAttr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAttr/subscriptions","organizations_url":"https://api.github.com/users/AndreyAttr/orgs","repos_url":"https://api.github.com/users/AndreyAttr/repos","events_url":"https://api.github.com/users/AndreyAttr/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAttr/received_events","type":"User","site_admin":false},"assignees":[{"login":"AndreyAttr","id":8319203,"avatar_url":"https://avatars0.githubusercontent.com/u/8319203?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreyAttr","html_url":"https://github.com/AndreyAttr","followers_url":"https://api.github.com/users/AndreyAttr/followers","following_url":"https://api.github.com/users/AndreyAttr/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAttr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAttr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAttr/subscriptions","organizations_url":"https://api.github.com/users/AndreyAttr/orgs","repos_url":"https://api.github.com/users/AndreyAttr/repos","events_url":"https://api.github.com/users/AndreyAttr/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAttr/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/AndreyAttr/Evo/milestones/6","html_url":"https://github.com/AndreyAttr/Evo/milestone/6","labels_url":"https://api.github.com/repos/AndreyAttr/Evo/milestones/6/labels","id":2576297,"number":6,"title":"Medium","description":"Has priority between Minor and Major","creator":{"login":"AndreyAttr","id":8319203,"avatar_url":"https://avatars0.githubusercontent.com/u/8319203?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreyAttr","html_url":"https://github.com/AndreyAttr","followers_url":"https://api.github.com/users/AndreyAttr/followers","following_url":"https://api.github.com/users/AndreyAttr/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAttr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAttr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAttr/subscriptions","organizations_url":"https://api.github.com/users/AndreyAttr/orgs","repos_url":"https://api.github.com/users/AndreyAttr/repos","events_url":"https://api.github.com/users/AndreyAttr/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAttr/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2017-06-11T20:32:36Z","updated_at":"2017-08-07T18:03:37Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-08-07T14:05:35Z","updated_at":"2017-08-11T14:05:55Z","closed_at":null,"body":"- [x] ObjectHelper should have deepTreeCopy() to use it to simple resolve this ugly solution:\r\n```\r\n const gene:Gene = {\r\n            name: this.gene.name,\r\n            id: this.gene.id,\r\n            sites: this.gene.sites,\r\n            isMutated: this.gene.isMutated,\r\n            //mutationSites: formModel.formGroups,      //TODO: Bad - need deep copy\r\n            mutationSites: mutatedSites,                //Done\r\n            description: formModel.description as string\r\n        };\r\n```\r\nit should proccess nested items & arrays & nested arrays correctly by using already existed deepCopy() & deepCopyArray() methods. **Update**: it would be nice have 3 overloads with the same name **deepCopy()** to process simple flat items/arrays of items/tree items properly."},"comment":{"url":"https://api.github.com/repos/AndreyAttr/Evo/issues/comments/321822010","html_url":"https://github.com/AndreyAttr/Evo/issues/76#issuecomment-321822010","issue_url":"https://api.github.com/repos/AndreyAttr/Evo/issues/76","id":321822010,"user":{"login":"AndreyAttr","id":8319203,"avatar_url":"https://avatars0.githubusercontent.com/u/8319203?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreyAttr","html_url":"https://github.com/AndreyAttr","followers_url":"https://api.github.com/users/AndreyAttr/followers","following_url":"https://api.github.com/users/AndreyAttr/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAttr/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAttr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAttr/subscriptions","organizations_url":"https://api.github.com/users/AndreyAttr/orgs","repos_url":"https://api.github.com/users/AndreyAttr/repos","events_url":"https://api.github.com/users/AndreyAttr/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAttr/received_events","type":"User","site_admin":false},"created_at":"2017-08-11T14:05:55Z","updated_at":"2017-08-11T14:05:55Z","body":"So pull request #90 about workaround may be rejected - this is correct aproach which fixed @tapy-lappy 's comment https://github.com/AndreyAttr/Evo/issues/76#issuecomment-321009387"}}
{"actor":{"display_login":"AndreyAttr"}}