{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/project-service/pulls/comments/23839585","id":23839585,"diff_hunk":"@@ -0,0 +1,98 @@\n+from openerp import tools\n+from openerp.osv import fields, orm\n+\n+import logging\n+\n+logger = logging.getLogger(__name__)\n+\n+SLA_STATES = [('5', 'Failed'), ('4', 'Will Fail'), ('3', 'Warning'),\n+              ('2', 'Watching'), ('1', 'Achieved')]","path":"project_sla/report/report_sla.py","position":9,"original_position":9,"commit_id":"d34d7868391bafce8e4f506896f4203a327628e1","original_commit_id":"d34d7868391bafce8e4f506896f4203a327628e1","user":{"login":"dreispt","id":1246629,"avatar_url":"https://avatars.githubusercontent.com/u/1246629?v=3","gravatar_id":"","url":"https://api.github.com/users/dreispt","html_url":"https://github.com/dreispt","followers_url":"https://api.github.com/users/dreispt/followers","following_url":"https://api.github.com/users/dreispt/following{/other_user}","gists_url":"https://api.github.com/users/dreispt/gists{/gist_id}","starred_url":"https://api.github.com/users/dreispt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreispt/subscriptions","organizations_url":"https://api.github.com/users/dreispt/orgs","repos_url":"https://api.github.com/users/dreispt/repos","events_url":"https://api.github.com/users/dreispt/events{/privacy}","received_events_url":"https://api.github.com/users/dreispt/received_events","type":"User","site_admin":false},"body":"Import from `project_sla` instead of duplicate declaration.","created_at":"2015-01-30T12:37:21Z","updated_at":"2015-01-30T12:37:21Z","html_url":"https://github.com/OCA/project-service/pull/54#discussion_r23839585","pull_request_url":"https://api.github.com/repos/OCA/project-service/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/OCA/project-service/pulls/comments/23839585"},"html":{"href":"https://github.com/OCA/project-service/pull/54#discussion_r23839585"},"pull_request":{"href":"https://api.github.com/repos/OCA/project-service/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/project-service/pulls/54","id":27349461,"html_url":"https://github.com/OCA/project-service/pull/54","diff_url":"https://github.com/OCA/project-service/pull/54.diff","patch_url":"https://github.com/OCA/project-service/pull/54.patch","issue_url":"https://api.github.com/repos/OCA/project-service/issues/54","number":54,"state":"open","locked":false,"title":"[ADD] Project SLA. Added analysis report.","user":{"login":"katyukha","id":1129820,"avatar_url":"https://avatars.githubusercontent.com/u/1129820?v=3","gravatar_id":"","url":"https://api.github.com/users/katyukha","html_url":"https://github.com/katyukha","followers_url":"https://api.github.com/users/katyukha/followers","following_url":"https://api.github.com/users/katyukha/following{/other_user}","gists_url":"https://api.github.com/users/katyukha/gists{/gist_id}","starred_url":"https://api.github.com/users/katyukha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katyukha/subscriptions","organizations_url":"https://api.github.com/users/katyukha/orgs","repos_url":"https://api.github.com/users/katyukha/repos","events_url":"https://api.github.com/users/katyukha/events{/privacy}","received_events_url":"https://api.github.com/users/katyukha/received_events","type":"User","site_admin":false},"body":"Based on pull request #48 so should be merged after pull request #48 ","created_at":"2015-01-14T13:30:49Z","updated_at":"2015-01-30T12:37:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"629cb7954281d7b37a39e9e71cdafa87735feeb9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/project-service/pulls/54/commits","review_comments_url":"https://api.github.com/repos/OCA/project-service/pulls/54/comments","review_comment_url":"https://api.github.com/repos/OCA/project-service/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OCA/project-service/issues/54/comments","statuses_url":"https://api.github.com/repos/OCA/project-service/statuses/d34d7868391bafce8e4f506896f4203a327628e1","head":{"label":"katyukha:patch_70_2_sla_report_1","ref":"patch_70_2_sla_report_1","sha":"d34d7868391bafce8e4f506896f4203a327628e1","user":{"login":"katyukha","id":1129820,"avatar_url":"https://avatars.githubusercontent.com/u/1129820?v=3","gravatar_id":"","url":"https://api.github.com/users/katyukha","html_url":"https://github.com/katyukha","followers_url":"https://api.github.com/users/katyukha/followers","following_url":"https://api.github.com/users/katyukha/following{/other_user}","gists_url":"https://api.github.com/users/katyukha/gists{/gist_id}","starred_url":"https://api.github.com/users/katyukha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katyukha/subscriptions","organizations_url":"https://api.github.com/users/katyukha/orgs","repos_url":"https://api.github.com/users/katyukha/repos","events_url":"https://api.github.com/users/katyukha/events{/privacy}","received_events_url":"https://api.github.com/users/katyukha/received_events","type":"User","site_admin":false},"repo":{"id":27877315,"name":"project-service","full_name":"katyukha/project-service","owner":{"login":"katyukha","id":1129820,"avatar_url":"https://avatars.githubusercontent.com/u/1129820?v=3","gravatar_id":"","url":"https://api.github.com/users/katyukha","html_url":"https://github.com/katyukha","followers_url":"https://api.github.com/users/katyukha/followers","following_url":"https://api.github.com/users/katyukha/following{/other_user}","gists_url":"https://api.github.com/users/katyukha/gists{/gist_id}","starred_url":"https://api.github.com/users/katyukha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katyukha/subscriptions","organizations_url":"https://api.github.com/users/katyukha/orgs","repos_url":"https://api.github.com/users/katyukha/repos","events_url":"https://api.github.com/users/katyukha/events{/privacy}","received_events_url":"https://api.github.com/users/katyukha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katyukha/project-service","description":"","fork":true,"url":"https://api.github.com/repos/katyukha/project-service","forks_url":"https://api.github.com/repos/katyukha/project-service/forks","keys_url":"https://api.github.com/repos/katyukha/project-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katyukha/project-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katyukha/project-service/teams","hooks_url":"https://api.github.com/repos/katyukha/project-service/hooks","issue_events_url":"https://api.github.com/repos/katyukha/project-service/issues/events{/number}","events_url":"https://api.github.com/repos/katyukha/project-service/events","assignees_url":"https://api.github.com/repos/katyukha/project-service/assignees{/user}","branches_url":"https://api.github.com/repos/katyukha/project-service/branches{/branch}","tags_url":"https://api.github.com/repos/katyukha/project-service/tags","blobs_url":"https://api.github.com/repos/katyukha/project-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katyukha/project-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katyukha/project-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/katyukha/project-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katyukha/project-service/statuses/{sha}","languages_url":"https://api.github.com/repos/katyukha/project-service/languages","stargazers_url":"https://api.github.com/repos/katyukha/project-service/stargazers","contributors_url":"https://api.github.com/repos/katyukha/project-service/contributors","subscribers_url":"https://api.github.com/repos/katyukha/project-service/subscribers","subscription_url":"https://api.github.com/repos/katyukha/project-service/subscription","commits_url":"https://api.github.com/repos/katyukha/project-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/katyukha/project-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/katyukha/project-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/katyukha/project-service/issues/comments/{number}","contents_url":"https://api.github.com/repos/katyukha/project-service/contents/{+path}","compare_url":"https://api.github.com/repos/katyukha/project-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katyukha/project-service/merges","archive_url":"https://api.github.com/repos/katyukha/project-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katyukha/project-service/downloads","issues_url":"https://api.github.com/repos/katyukha/project-service/issues{/number}","pulls_url":"https://api.github.com/repos/katyukha/project-service/pulls{/number}","milestones_url":"https://api.github.com/repos/katyukha/project-service/milestones{/number}","notifications_url":"https://api.github.com/repos/katyukha/project-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katyukha/project-service/labels{/name}","releases_url":"https://api.github.com/repos/katyukha/project-service/releases{/id}","created_at":"2014-12-11T15:15:39Z","updated_at":"2015-01-21T22:59:22Z","pushed_at":"2015-01-22T19:45:47Z","git_url":"git://github.com/katyukha/project-service.git","ssh_url":"git@github.com:katyukha/project-service.git","clone_url":"https://github.com/katyukha/project-service.git","svn_url":"https://github.com/katyukha/project-service","homepage":null,"size":1230,"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":"8.0"}},"base":{"label":"OCA:7.0","ref":"7.0","sha":"ace6bb6b2b4ce24f3856857561e368f79eba8066","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":20896145,"name":"project-service","full_name":"OCA/project-service","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/project-service","description":"","fork":false,"url":"https://api.github.com/repos/OCA/project-service","forks_url":"https://api.github.com/repos/OCA/project-service/forks","keys_url":"https://api.github.com/repos/OCA/project-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/project-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/project-service/teams","hooks_url":"https://api.github.com/repos/OCA/project-service/hooks","issue_events_url":"https://api.github.com/repos/OCA/project-service/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/project-service/events","assignees_url":"https://api.github.com/repos/OCA/project-service/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/project-service/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/project-service/tags","blobs_url":"https://api.github.com/repos/OCA/project-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/project-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/project-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/project-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/project-service/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/project-service/languages","stargazers_url":"https://api.github.com/repos/OCA/project-service/stargazers","contributors_url":"https://api.github.com/repos/OCA/project-service/contributors","subscribers_url":"https://api.github.com/repos/OCA/project-service/subscribers","subscription_url":"https://api.github.com/repos/OCA/project-service/subscription","commits_url":"https://api.github.com/repos/OCA/project-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/project-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/project-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/project-service/issues/comments/{number}","contents_url":"https://api.github.com/repos/OCA/project-service/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/project-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/project-service/merges","archive_url":"https://api.github.com/repos/OCA/project-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/project-service/downloads","issues_url":"https://api.github.com/repos/OCA/project-service/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/project-service/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/project-service/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/project-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/project-service/labels{/name}","releases_url":"https://api.github.com/repos/OCA/project-service/releases{/id}","created_at":"2014-06-16T18:40:45Z","updated_at":"2015-01-25T14:48:20Z","pushed_at":"2015-01-28T21:46:33Z","git_url":"git://github.com/OCA/project-service.git","ssh_url":"git@github.com:OCA/project-service.git","clone_url":"https://github.com/OCA/project-service.git","svn_url":"https://github.com/OCA/project-service","homepage":null,"size":1579,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":5,"forks":29,"open_issues":5,"watchers":13,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/project-service/pulls/54"},"html":{"href":"https://github.com/OCA/project-service/pull/54"},"issue":{"href":"https://api.github.com/repos/OCA/project-service/issues/54"},"comments":{"href":"https://api.github.com/repos/OCA/project-service/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/project-service/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/project-service/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OCA/project-service/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/project-service/statuses/d34d7868391bafce8e4f506896f4203a327628e1"}}}}