{"action":"created","comment":{"url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/comments/87830544","pull_request_review_id":8423820,"id":87830544,"diff_hunk":"@@ -256,112 +250,250 @@ function scggScStructTranslator(_editor, _sandbox) {\n                     callback(false);\n                 });\n             };\n-            \n+\n             function fireCallback() {\n                 editor.render.update();\n                 editor.scene.layout();\n                 appendObjects();\n             }\n \n-            \n-            /// --------------------\n-            var translateNodes = function() {\n-                var dfdNodes = new jQuery.Deferred();\n-                \n-                var implFunc = function(node) {\n-                    var dfd = new jQuery.Deferred();\n-\n-                    if (!node.sc_addr) {\n-                        window.sctpClient.create_node(node.sc_type).done(function (r) {\n-                            node.setScAddr(r);\n-                            node.setObjectState(SCggObjectState.NewInMemory);\n-                            objects.push(node);\n-                            if (node.text) {\n-                                translateGtIdentifier(node)\n-                                    .done(dfd.resolve)\n-                                    .fail(dfd.reject);\n-                            } else {\n-                                dfd.resolve();\n+            var addrStruct;\n+            // editor.scene.comandManager.clear();\n+\n+            var nodes = editor.scene.nodes.slice();\n+            var objects = [];\n+\n+\n+            var translateStruct = function() {\n+                console.log(\"translateStruct\");\n+                var dfd = new jQuery.Deferred();\n+                var createNodeGraph = function() {\n+                    var dfdAddrStruct = new jQuery.Deferred();\n+\n+                    window.sctpClient.create_node(sc_type_node | sc_type_const | sc_type_node_struct).done(function (nodeNewGraph){\n+                        addrStruct = nodeNewGraph;\n+\n+                        window.sctpClient.create_arc(sc_type_arc_pos_const_perm, SCggKeynodesHandler.scKeynodes.concept_graph, nodeNewGraph)\n+                        .done(dfdAddrStruct.resolve)\n+                        .fail(dfdAddrStruct.reject);;","path":"sc-web/components/scgg/src/scgg-struct.js","position":73,"original_position":73,"commit_id":"ad159cf8ec848190d344a5d111ca17fb79eea7ff","original_commit_id":"ad159cf8ec848190d344a5d111ca17fb79eea7ff","user":{"login":"blrB","id":9513452,"avatar_url":"https://avatars.githubusercontent.com/u/9513452?v=3","gravatar_id":"","url":"https://api.github.com/users/blrB","html_url":"https://github.com/blrB","followers_url":"https://api.github.com/users/blrB/followers","following_url":"https://api.github.com/users/blrB/following{/other_user}","gists_url":"https://api.github.com/users/blrB/gists{/gist_id}","starred_url":"https://api.github.com/users/blrB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blrB/subscriptions","organizations_url":"https://api.github.com/users/blrB/orgs","repos_url":"https://api.github.com/users/blrB/repos","events_url":"https://api.github.com/users/blrB/events{/privacy}","received_events_url":"https://api.github.com/users/blrB/received_events","type":"User","site_admin":false},"body":";;","created_at":"2016-11-14T16:02:15Z","updated_at":"2016-11-14T16:02:15Z","html_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10#discussion_r87830544","pull_request_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/comments/87830544"},"html":{"href":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10#discussion_r87830544"},"pull_request":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10","id":93584096,"html_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10","diff_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10.diff","patch_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10.patch","issue_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/10","number":10,"state":"open","locked":false,"title":"Kozel translate to sc","user":{"login":"PtaxaMagic","id":8670287,"avatar_url":"https://avatars.githubusercontent.com/u/8670287?v=3","gravatar_id":"","url":"https://api.github.com/users/PtaxaMagic","html_url":"https://github.com/PtaxaMagic","followers_url":"https://api.github.com/users/PtaxaMagic/followers","following_url":"https://api.github.com/users/PtaxaMagic/following{/other_user}","gists_url":"https://api.github.com/users/PtaxaMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/PtaxaMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PtaxaMagic/subscriptions","organizations_url":"https://api.github.com/users/PtaxaMagic/orgs","repos_url":"https://api.github.com/users/PtaxaMagic/repos","events_url":"https://api.github.com/users/PtaxaMagic/events{/privacy}","received_events_url":"https://api.github.com/users/PtaxaMagic/received_events","type":"User","site_admin":false},"body":"Graph Translation with temporal decomposition.\r\nstill have problems with nonoriented edges.\r\nNo rename/create graph after the name is changed.","created_at":"2016-11-14T15:13:32Z","updated_at":"2016-11-14T16:38:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d14c39450efdc2bbb20c0d790e71d9bf7ae69fb1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10/commits","review_comments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10/comments","review_comment_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/10/comments","statuses_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/statuses/ad159cf8ec848190d344a5d111ca17fb79eea7ff","head":{"label":"PtaxaMagic:Kozel_TranslateToSc","ref":"Kozel_TranslateToSc","sha":"ad159cf8ec848190d344a5d111ca17fb79eea7ff","user":{"login":"PtaxaMagic","id":8670287,"avatar_url":"https://avatars.githubusercontent.com/u/8670287?v=3","gravatar_id":"","url":"https://api.github.com/users/PtaxaMagic","html_url":"https://github.com/PtaxaMagic","followers_url":"https://api.github.com/users/PtaxaMagic/followers","following_url":"https://api.github.com/users/PtaxaMagic/following{/other_user}","gists_url":"https://api.github.com/users/PtaxaMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/PtaxaMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PtaxaMagic/subscriptions","organizations_url":"https://api.github.com/users/PtaxaMagic/orgs","repos_url":"https://api.github.com/users/PtaxaMagic/repos","events_url":"https://api.github.com/users/PtaxaMagic/events{/privacy}","received_events_url":"https://api.github.com/users/PtaxaMagic/received_events","type":"User","site_admin":false},"repo":{"id":70507747,"name":"gt.ostis-Drawings","full_name":"PtaxaMagic/gt.ostis-Drawings","owner":{"login":"PtaxaMagic","id":8670287,"avatar_url":"https://avatars.githubusercontent.com/u/8670287?v=3","gravatar_id":"","url":"https://api.github.com/users/PtaxaMagic","html_url":"https://github.com/PtaxaMagic","followers_url":"https://api.github.com/users/PtaxaMagic/followers","following_url":"https://api.github.com/users/PtaxaMagic/following{/other_user}","gists_url":"https://api.github.com/users/PtaxaMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/PtaxaMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PtaxaMagic/subscriptions","organizations_url":"https://api.github.com/users/PtaxaMagic/orgs","repos_url":"https://api.github.com/users/PtaxaMagic/repos","events_url":"https://api.github.com/users/PtaxaMagic/events{/privacy}","received_events_url":"https://api.github.com/users/PtaxaMagic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings","description":null,"fork":false,"url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings","forks_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/forks","keys_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/teams","hooks_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/hooks","issue_events_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/events{/number}","events_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/events","assignees_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/assignees{/user}","branches_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/branches{/branch}","tags_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/tags","blobs_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/refs{/sha}","trees_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/statuses/{sha}","languages_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/languages","stargazers_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/stargazers","contributors_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/contributors","subscribers_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/subscribers","subscription_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/subscription","commits_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/commits{/sha}","git_commits_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/commits{/sha}","comments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/comments{/number}","issue_comment_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/comments{/number}","contents_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/contents/{+path}","compare_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/merges","archive_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/downloads","issues_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues{/number}","pulls_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls{/number}","milestones_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/milestones{/number}","notifications_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/labels{/name}","releases_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/releases{/id}","deployments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/deployments","created_at":"2016-10-10T16:38:08Z","updated_at":"2016-10-10T16:41:19Z","pushed_at":"2016-11-14T15:13:32Z","git_url":"git://github.com/PtaxaMagic/gt.ostis-Drawings.git","ssh_url":"git@github.com:PtaxaMagic/gt.ostis-Drawings.git","clone_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings.git","svn_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"PtaxaMagic:master","ref":"master","sha":"43d32404aec653ddfaf71b8e11dc8770e308823a","user":{"login":"PtaxaMagic","id":8670287,"avatar_url":"https://avatars.githubusercontent.com/u/8670287?v=3","gravatar_id":"","url":"https://api.github.com/users/PtaxaMagic","html_url":"https://github.com/PtaxaMagic","followers_url":"https://api.github.com/users/PtaxaMagic/followers","following_url":"https://api.github.com/users/PtaxaMagic/following{/other_user}","gists_url":"https://api.github.com/users/PtaxaMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/PtaxaMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PtaxaMagic/subscriptions","organizations_url":"https://api.github.com/users/PtaxaMagic/orgs","repos_url":"https://api.github.com/users/PtaxaMagic/repos","events_url":"https://api.github.com/users/PtaxaMagic/events{/privacy}","received_events_url":"https://api.github.com/users/PtaxaMagic/received_events","type":"User","site_admin":false},"repo":{"id":70507747,"name":"gt.ostis-Drawings","full_name":"PtaxaMagic/gt.ostis-Drawings","owner":{"login":"PtaxaMagic","id":8670287,"avatar_url":"https://avatars.githubusercontent.com/u/8670287?v=3","gravatar_id":"","url":"https://api.github.com/users/PtaxaMagic","html_url":"https://github.com/PtaxaMagic","followers_url":"https://api.github.com/users/PtaxaMagic/followers","following_url":"https://api.github.com/users/PtaxaMagic/following{/other_user}","gists_url":"https://api.github.com/users/PtaxaMagic/gists{/gist_id}","starred_url":"https://api.github.com/users/PtaxaMagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PtaxaMagic/subscriptions","organizations_url":"https://api.github.com/users/PtaxaMagic/orgs","repos_url":"https://api.github.com/users/PtaxaMagic/repos","events_url":"https://api.github.com/users/PtaxaMagic/events{/privacy}","received_events_url":"https://api.github.com/users/PtaxaMagic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings","description":null,"fork":false,"url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings","forks_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/forks","keys_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/teams","hooks_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/hooks","issue_events_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/events{/number}","events_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/events","assignees_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/assignees{/user}","branches_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/branches{/branch}","tags_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/tags","blobs_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/refs{/sha}","trees_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/statuses/{sha}","languages_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/languages","stargazers_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/stargazers","contributors_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/contributors","subscribers_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/subscribers","subscription_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/subscription","commits_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/commits{/sha}","git_commits_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/git/commits{/sha}","comments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/comments{/number}","issue_comment_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/comments{/number}","contents_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/contents/{+path}","compare_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/merges","archive_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/downloads","issues_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues{/number}","pulls_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls{/number}","milestones_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/milestones{/number}","notifications_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/labels{/name}","releases_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/releases{/id}","deployments_url":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/deployments","created_at":"2016-10-10T16:38:08Z","updated_at":"2016-10-10T16:41:19Z","pushed_at":"2016-11-14T15:13:32Z","git_url":"git://github.com/PtaxaMagic/gt.ostis-Drawings.git","ssh_url":"git@github.com:PtaxaMagic/gt.ostis-Drawings.git","clone_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings.git","svn_url":"https://github.com/PtaxaMagic/gt.ostis-Drawings","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10"},"html":{"href":"https://github.com/PtaxaMagic/gt.ostis-Drawings/pull/10"},"issue":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/10"},"comments":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/PtaxaMagic/gt.ostis-Drawings/statuses/ad159cf8ec848190d344a5d111ca17fb79eea7ff"}}}}
{"actor":{"display_login":"blrB"}}