{"action":"created","comment":{"url":"https://api.github.com/repos/GLab/ToMaTo/pulls/comments/31606485","id":31606485,"diff_hunk":"@@ -299,6 +299,28 @@ def element_usage(id): #@ReservedAssignment\n \tel = _getElement(id)\n \treturn el.totalUsage.info()\t\n \n+def element_migrate(id,host): #@ReservedAssignment","path":"backend/tomato/api/elements.py","position":4,"original_position":4,"commit_id":"ec33b8fdd6beb7111aeb39b09c70c5f7a37520b1","original_commit_id":"ec33b8fdd6beb7111aeb39b09c70c5f7a37520b1","user":{"login":"dswd","id":838447,"avatar_url":"https://avatars.githubusercontent.com/u/838447?v=3","gravatar_id":"","url":"https://api.github.com/users/dswd","html_url":"https://github.com/dswd","followers_url":"https://api.github.com/users/dswd/followers","following_url":"https://api.github.com/users/dswd/following{/other_user}","gists_url":"https://api.github.com/users/dswd/gists{/gist_id}","starred_url":"https://api.github.com/users/dswd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswd/subscriptions","organizations_url":"https://api.github.com/users/dswd/orgs","repos_url":"https://api.github.com/users/dswd/repos","events_url":"https://api.github.com/users/dswd/events{/privacy}","received_events_url":"https://api.github.com/users/dswd/received_events","type":"User","site_admin":false},"body":"Regular users should not be allowed to migrate elements, so there should be an admin check","created_at":"2015-06-03T09:24:56Z","updated_at":"2015-06-03T09:24:56Z","html_url":"https://github.com/GLab/ToMaTo/pull/975#discussion_r31606485","pull_request_url":"https://api.github.com/repos/GLab/ToMaTo/pulls/975","_links":{"self":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/comments/31606485"},"html":{"href":"https://github.com/GLab/ToMaTo/pull/975#discussion_r31606485"},"pull_request":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/975"}}},"pull_request":{"url":"https://api.github.com/repos/GLab/ToMaTo/pulls/975","id":36812608,"html_url":"https://github.com/GLab/ToMaTo/pull/975","diff_url":"https://github.com/GLab/ToMaTo/pull/975.diff","patch_url":"https://github.com/GLab/ToMaTo/pull/975.patch","issue_url":"https://api.github.com/repos/GLab/ToMaTo/issues/975","number":975,"state":"open","locked":false,"title":"Dynamic resource allocation","user":{"login":"dswd","id":838447,"avatar_url":"https://avatars.githubusercontent.com/u/838447?v=3","gravatar_id":"","url":"https://api.github.com/users/dswd","html_url":"https://github.com/dswd","followers_url":"https://api.github.com/users/dswd/followers","following_url":"https://api.github.com/users/dswd/following{/other_user}","gists_url":"https://api.github.com/users/dswd/gists{/gist_id}","starred_url":"https://api.github.com/users/dswd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswd/subscriptions","organizations_url":"https://api.github.com/users/dswd/orgs","repos_url":"https://api.github.com/users/dswd/repos","events_url":"https://api.github.com/users/dswd/events{/privacy}","received_events_url":"https://api.github.com/users/dswd/received_events","type":"User","site_admin":false},"body":"Ongoing work for dynamic hostmanager deployment and component migration.","created_at":"2015-06-03T09:17:23Z","updated_at":"2015-06-03T09:24:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e21976f30a5e24c8ca1fe03d19861b0cf619ac6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GLab/ToMaTo/pulls/975/commits","review_comments_url":"https://api.github.com/repos/GLab/ToMaTo/pulls/975/comments","review_comment_url":"https://api.github.com/repos/GLab/ToMaTo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GLab/ToMaTo/issues/975/comments","statuses_url":"https://api.github.com/repos/GLab/ToMaTo/statuses/ec33b8fdd6beb7111aeb39b09c70c5f7a37520b1","head":{"label":"swuest:dynamic_resource_allocation","ref":"dynamic_resource_allocation","sha":"ec33b8fdd6beb7111aeb39b09c70c5f7a37520b1","user":{"login":"swuest","id":5919623,"avatar_url":"https://avatars.githubusercontent.com/u/5919623?v=3","gravatar_id":"","url":"https://api.github.com/users/swuest","html_url":"https://github.com/swuest","followers_url":"https://api.github.com/users/swuest/followers","following_url":"https://api.github.com/users/swuest/following{/other_user}","gists_url":"https://api.github.com/users/swuest/gists{/gist_id}","starred_url":"https://api.github.com/users/swuest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swuest/subscriptions","organizations_url":"https://api.github.com/users/swuest/orgs","repos_url":"https://api.github.com/users/swuest/repos","events_url":"https://api.github.com/users/swuest/events{/privacy}","received_events_url":"https://api.github.com/users/swuest/received_events","type":"User","site_admin":false},"repo":{"id":14718797,"name":"ToMaTo","full_name":"swuest/ToMaTo","owner":{"login":"swuest","id":5919623,"avatar_url":"https://avatars.githubusercontent.com/u/5919623?v=3","gravatar_id":"","url":"https://api.github.com/users/swuest","html_url":"https://github.com/swuest","followers_url":"https://api.github.com/users/swuest/followers","following_url":"https://api.github.com/users/swuest/following{/other_user}","gists_url":"https://api.github.com/users/swuest/gists{/gist_id}","starred_url":"https://api.github.com/users/swuest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swuest/subscriptions","organizations_url":"https://api.github.com/users/swuest/orgs","repos_url":"https://api.github.com/users/swuest/repos","events_url":"https://api.github.com/users/swuest/events{/privacy}","received_events_url":"https://api.github.com/users/swuest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swuest/ToMaTo","description":"German-Lab ToMaTo","fork":true,"url":"https://api.github.com/repos/swuest/ToMaTo","forks_url":"https://api.github.com/repos/swuest/ToMaTo/forks","keys_url":"https://api.github.com/repos/swuest/ToMaTo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swuest/ToMaTo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swuest/ToMaTo/teams","hooks_url":"https://api.github.com/repos/swuest/ToMaTo/hooks","issue_events_url":"https://api.github.com/repos/swuest/ToMaTo/issues/events{/number}","events_url":"https://api.github.com/repos/swuest/ToMaTo/events","assignees_url":"https://api.github.com/repos/swuest/ToMaTo/assignees{/user}","branches_url":"https://api.github.com/repos/swuest/ToMaTo/branches{/branch}","tags_url":"https://api.github.com/repos/swuest/ToMaTo/tags","blobs_url":"https://api.github.com/repos/swuest/ToMaTo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swuest/ToMaTo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swuest/ToMaTo/git/refs{/sha}","trees_url":"https://api.github.com/repos/swuest/ToMaTo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swuest/ToMaTo/statuses/{sha}","languages_url":"https://api.github.com/repos/swuest/ToMaTo/languages","stargazers_url":"https://api.github.com/repos/swuest/ToMaTo/stargazers","contributors_url":"https://api.github.com/repos/swuest/ToMaTo/contributors","subscribers_url":"https://api.github.com/repos/swuest/ToMaTo/subscribers","subscription_url":"https://api.github.com/repos/swuest/ToMaTo/subscription","commits_url":"https://api.github.com/repos/swuest/ToMaTo/commits{/sha}","git_commits_url":"https://api.github.com/repos/swuest/ToMaTo/git/commits{/sha}","comments_url":"https://api.github.com/repos/swuest/ToMaTo/comments{/number}","issue_comment_url":"https://api.github.com/repos/swuest/ToMaTo/issues/comments{/number}","contents_url":"https://api.github.com/repos/swuest/ToMaTo/contents/{+path}","compare_url":"https://api.github.com/repos/swuest/ToMaTo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swuest/ToMaTo/merges","archive_url":"https://api.github.com/repos/swuest/ToMaTo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swuest/ToMaTo/downloads","issues_url":"https://api.github.com/repos/swuest/ToMaTo/issues{/number}","pulls_url":"https://api.github.com/repos/swuest/ToMaTo/pulls{/number}","milestones_url":"https://api.github.com/repos/swuest/ToMaTo/milestones{/number}","notifications_url":"https://api.github.com/repos/swuest/ToMaTo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swuest/ToMaTo/labels{/name}","releases_url":"https://api.github.com/repos/swuest/ToMaTo/releases{/id}","created_at":"2013-11-26T14:17:05Z","updated_at":"2015-04-24T09:10:23Z","pushed_at":"2015-06-03T09:06:55Z","git_url":"git://github.com/swuest/ToMaTo.git","ssh_url":"git@github.com:swuest/ToMaTo.git","clone_url":"https://github.com/swuest/ToMaTo.git","svn_url":"https://github.com/swuest/ToMaTo","homepage":"http://glab.github.com/ToMaTo/","size":47378,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GLab:master","ref":"master","sha":"8837517564a5475f5c8e39bfa3f54db9a402eac2","user":{"login":"GLab","id":1026834,"avatar_url":"https://avatars.githubusercontent.com/u/1026834?v=3","gravatar_id":"","url":"https://api.github.com/users/GLab","html_url":"https://github.com/GLab","followers_url":"https://api.github.com/users/GLab/followers","following_url":"https://api.github.com/users/GLab/following{/other_user}","gists_url":"https://api.github.com/users/GLab/gists{/gist_id}","starred_url":"https://api.github.com/users/GLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLab/subscriptions","organizations_url":"https://api.github.com/users/GLab/orgs","repos_url":"https://api.github.com/users/GLab/repos","events_url":"https://api.github.com/users/GLab/events{/privacy}","received_events_url":"https://api.github.com/users/GLab/received_events","type":"Organization","site_admin":false},"repo":{"id":1867451,"name":"ToMaTo","full_name":"GLab/ToMaTo","owner":{"login":"GLab","id":1026834,"avatar_url":"https://avatars.githubusercontent.com/u/1026834?v=3","gravatar_id":"","url":"https://api.github.com/users/GLab","html_url":"https://github.com/GLab","followers_url":"https://api.github.com/users/GLab/followers","following_url":"https://api.github.com/users/GLab/following{/other_user}","gists_url":"https://api.github.com/users/GLab/gists{/gist_id}","starred_url":"https://api.github.com/users/GLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLab/subscriptions","organizations_url":"https://api.github.com/users/GLab/orgs","repos_url":"https://api.github.com/users/GLab/repos","events_url":"https://api.github.com/users/GLab/events{/privacy}","received_events_url":"https://api.github.com/users/GLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GLab/ToMaTo","description":"German-Lab ToMaTo","fork":false,"url":"https://api.github.com/repos/GLab/ToMaTo","forks_url":"https://api.github.com/repos/GLab/ToMaTo/forks","keys_url":"https://api.github.com/repos/GLab/ToMaTo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GLab/ToMaTo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GLab/ToMaTo/teams","hooks_url":"https://api.github.com/repos/GLab/ToMaTo/hooks","issue_events_url":"https://api.github.com/repos/GLab/ToMaTo/issues/events{/number}","events_url":"https://api.github.com/repos/GLab/ToMaTo/events","assignees_url":"https://api.github.com/repos/GLab/ToMaTo/assignees{/user}","branches_url":"https://api.github.com/repos/GLab/ToMaTo/branches{/branch}","tags_url":"https://api.github.com/repos/GLab/ToMaTo/tags","blobs_url":"https://api.github.com/repos/GLab/ToMaTo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GLab/ToMaTo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GLab/ToMaTo/git/refs{/sha}","trees_url":"https://api.github.com/repos/GLab/ToMaTo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GLab/ToMaTo/statuses/{sha}","languages_url":"https://api.github.com/repos/GLab/ToMaTo/languages","stargazers_url":"https://api.github.com/repos/GLab/ToMaTo/stargazers","contributors_url":"https://api.github.com/repos/GLab/ToMaTo/contributors","subscribers_url":"https://api.github.com/repos/GLab/ToMaTo/subscribers","subscription_url":"https://api.github.com/repos/GLab/ToMaTo/subscription","commits_url":"https://api.github.com/repos/GLab/ToMaTo/commits{/sha}","git_commits_url":"https://api.github.com/repos/GLab/ToMaTo/git/commits{/sha}","comments_url":"https://api.github.com/repos/GLab/ToMaTo/comments{/number}","issue_comment_url":"https://api.github.com/repos/GLab/ToMaTo/issues/comments{/number}","contents_url":"https://api.github.com/repos/GLab/ToMaTo/contents/{+path}","compare_url":"https://api.github.com/repos/GLab/ToMaTo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GLab/ToMaTo/merges","archive_url":"https://api.github.com/repos/GLab/ToMaTo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GLab/ToMaTo/downloads","issues_url":"https://api.github.com/repos/GLab/ToMaTo/issues{/number}","pulls_url":"https://api.github.com/repos/GLab/ToMaTo/pulls{/number}","milestones_url":"https://api.github.com/repos/GLab/ToMaTo/milestones{/number}","notifications_url":"https://api.github.com/repos/GLab/ToMaTo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GLab/ToMaTo/labels{/name}","releases_url":"https://api.github.com/repos/GLab/ToMaTo/releases{/id}","created_at":"2011-06-08T20:17:45Z","updated_at":"2015-04-24T09:09:20Z","pushed_at":"2015-06-03T09:17:24Z","git_url":"git://github.com/GLab/ToMaTo.git","ssh_url":"git@github.com:GLab/ToMaTo.git","clone_url":"https://github.com/GLab/ToMaTo.git","svn_url":"https://github.com/GLab/ToMaTo","homepage":"http://www.tomato-lab.org","size":62137,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":84,"forks":10,"open_issues":84,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/975"},"html":{"href":"https://github.com/GLab/ToMaTo/pull/975"},"issue":{"href":"https://api.github.com/repos/GLab/ToMaTo/issues/975"},"comments":{"href":"https://api.github.com/repos/GLab/ToMaTo/issues/975/comments"},"review_comments":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/975/comments"},"review_comment":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GLab/ToMaTo/pulls/975/commits"},"statuses":{"href":"https://api.github.com/repos/GLab/ToMaTo/statuses/ec33b8fdd6beb7111aeb39b09c70c5f7a37520b1"}}}}