{"action":"created","comment":{"url":"https://api.github.com/repos/allegro/ralph/pulls/comments/36962257","id":36962257,"diff_hunk":"@@ -25,28 +27,98 @@ def get_perm_key(action, class_name, field_name):\n     return '{}_{}_{}_field'.format(action, class_name, field_name)\n \n \n-class PermissionByFieldBase(ModelBase):\n+class user_permission(object):","path":"src/ralph/lib/permissions/models.py","position":11,"original_position":11,"commit_id":"07e626ff5e2744c7aeaae46ee23fa6e0333dfd5e","original_commit_id":"07e626ff5e2744c7aeaae46ee23fa6e0333dfd5e","user":{"login":"ar4s","id":351535,"avatar_url":"https://avatars.githubusercontent.com/u/351535?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4s","html_url":"https://github.com/ar4s","followers_url":"https://api.github.com/users/ar4s/followers","following_url":"https://api.github.com/users/ar4s/following{/other_user}","gists_url":"https://api.github.com/users/ar4s/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4s/subscriptions","organizations_url":"https://api.github.com/users/ar4s/orgs","repos_url":"https://api.github.com/users/ar4s/repos","events_url":"https://api.github.com/users/ar4s/events{/privacy}","received_events_url":"https://api.github.com/users/ar4s/received_events","type":"User","site_admin":false},"body":"add ``# noqa``","created_at":"2015-08-13T10:54:59Z","updated_at":"2015-08-13T10:54:59Z","html_url":"https://github.com/allegro/ralph/pull/1709#discussion_r36962257","pull_request_url":"https://api.github.com/repos/allegro/ralph/pulls/1709","_links":{"self":{"href":"https://api.github.com/repos/allegro/ralph/pulls/comments/36962257"},"html":{"href":"https://github.com/allegro/ralph/pull/1709#discussion_r36962257"},"pull_request":{"href":"https://api.github.com/repos/allegro/ralph/pulls/1709"}}},"pull_request":{"url":"https://api.github.com/repos/allegro/ralph/pulls/1709","id":42323758,"html_url":"https://github.com/allegro/ralph/pull/1709","diff_url":"https://github.com/allegro/ralph/pull/1709.diff","patch_url":"https://github.com/allegro/ralph/pull/1709.patch","issue_url":"https://api.github.com/repos/allegro/ralph/issues/1709","number":1709,"state":"open","locked":false,"title":"[WIP] Permissions per object","user":{"login":"mkurek","id":107437,"avatar_url":"https://avatars.githubusercontent.com/u/107437?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurek","html_url":"https://github.com/mkurek","followers_url":"https://api.github.com/users/mkurek/followers","following_url":"https://api.github.com/users/mkurek/following{/other_user}","gists_url":"https://api.github.com/users/mkurek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurek/subscriptions","organizations_url":"https://api.github.com/users/mkurek/orgs","repos_url":"https://api.github.com/users/mkurek/repos","events_url":"https://api.github.com/users/mkurek/events{/privacy}","received_events_url":"https://api.github.com/users/mkurek/received_events","type":"User","site_admin":false},"body":"connected to #1452 ","created_at":"2015-08-13T07:56:55Z","updated_at":"2015-08-13T10:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"899a29bc6692a1be1b39a63e39a837585febf32e","assignee":null,"milestone":{"url":"https://api.github.com/repos/allegro/ralph/milestones/17","html_url":"https://github.com/allegro/ralph/milestones/7.%20Search","labels_url":"https://api.github.com/repos/allegro/ralph/milestones/17/labels","id":1234762,"number":17,"title":"7. Search","description":"","creator":{"login":"xliiv","id":298994,"avatar_url":"https://avatars.githubusercontent.com/u/298994?v=3","gravatar_id":"","url":"https://api.github.com/users/xliiv","html_url":"https://github.com/xliiv","followers_url":"https://api.github.com/users/xliiv/followers","following_url":"https://api.github.com/users/xliiv/following{/other_user}","gists_url":"https://api.github.com/users/xliiv/gists{/gist_id}","starred_url":"https://api.github.com/users/xliiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xliiv/subscriptions","organizations_url":"https://api.github.com/users/xliiv/orgs","repos_url":"https://api.github.com/users/xliiv/repos","events_url":"https://api.github.com/users/xliiv/events{/privacy}","received_events_url":"https://api.github.com/users/xliiv/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":2,"state":"open","created_at":"2015-07-31T08:41:21Z","updated_at":"2015-08-13T07:56:55Z","due_on":"2015-08-23T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/allegro/ralph/pulls/1709/commits","review_comments_url":"https://api.github.com/repos/allegro/ralph/pulls/1709/comments","review_comment_url":"https://api.github.com/repos/allegro/ralph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allegro/ralph/issues/1709/comments","statuses_url":"https://api.github.com/repos/allegro/ralph/statuses/07e626ff5e2744c7aeaae46ee23fa6e0333dfd5e","head":{"label":"mkurek:object-permissions","ref":"object-permissions","sha":"07e626ff5e2744c7aeaae46ee23fa6e0333dfd5e","user":{"login":"mkurek","id":107437,"avatar_url":"https://avatars.githubusercontent.com/u/107437?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurek","html_url":"https://github.com/mkurek","followers_url":"https://api.github.com/users/mkurek/followers","following_url":"https://api.github.com/users/mkurek/following{/other_user}","gists_url":"https://api.github.com/users/mkurek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurek/subscriptions","organizations_url":"https://api.github.com/users/mkurek/orgs","repos_url":"https://api.github.com/users/mkurek/repos","events_url":"https://api.github.com/users/mkurek/events{/privacy}","received_events_url":"https://api.github.com/users/mkurek/received_events","type":"User","site_admin":false},"repo":{"id":14890200,"name":"ralph","full_name":"mkurek/ralph","owner":{"login":"mkurek","id":107437,"avatar_url":"https://avatars.githubusercontent.com/u/107437?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurek","html_url":"https://github.com/mkurek","followers_url":"https://api.github.com/users/mkurek/followers","following_url":"https://api.github.com/users/mkurek/following{/other_user}","gists_url":"https://api.github.com/users/mkurek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurek/subscriptions","organizations_url":"https://api.github.com/users/mkurek/orgs","repos_url":"https://api.github.com/users/mkurek/repos","events_url":"https://api.github.com/users/mkurek/events{/privacy}","received_events_url":"https://api.github.com/users/mkurek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkurek/ralph","description":"Ralph is an asset management system for your data center.","fork":true,"url":"https://api.github.com/repos/mkurek/ralph","forks_url":"https://api.github.com/repos/mkurek/ralph/forks","keys_url":"https://api.github.com/repos/mkurek/ralph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkurek/ralph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkurek/ralph/teams","hooks_url":"https://api.github.com/repos/mkurek/ralph/hooks","issue_events_url":"https://api.github.com/repos/mkurek/ralph/issues/events{/number}","events_url":"https://api.github.com/repos/mkurek/ralph/events","assignees_url":"https://api.github.com/repos/mkurek/ralph/assignees{/user}","branches_url":"https://api.github.com/repos/mkurek/ralph/branches{/branch}","tags_url":"https://api.github.com/repos/mkurek/ralph/tags","blobs_url":"https://api.github.com/repos/mkurek/ralph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkurek/ralph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkurek/ralph/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkurek/ralph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkurek/ralph/statuses/{sha}","languages_url":"https://api.github.com/repos/mkurek/ralph/languages","stargazers_url":"https://api.github.com/repos/mkurek/ralph/stargazers","contributors_url":"https://api.github.com/repos/mkurek/ralph/contributors","subscribers_url":"https://api.github.com/repos/mkurek/ralph/subscribers","subscription_url":"https://api.github.com/repos/mkurek/ralph/subscription","commits_url":"https://api.github.com/repos/mkurek/ralph/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkurek/ralph/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkurek/ralph/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkurek/ralph/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkurek/ralph/contents/{+path}","compare_url":"https://api.github.com/repos/mkurek/ralph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkurek/ralph/merges","archive_url":"https://api.github.com/repos/mkurek/ralph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkurek/ralph/downloads","issues_url":"https://api.github.com/repos/mkurek/ralph/issues{/number}","pulls_url":"https://api.github.com/repos/mkurek/ralph/pulls{/number}","milestones_url":"https://api.github.com/repos/mkurek/ralph/milestones{/number}","notifications_url":"https://api.github.com/repos/mkurek/ralph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkurek/ralph/labels{/name}","releases_url":"https://api.github.com/repos/mkurek/ralph/releases{/id}","created_at":"2013-12-03T10:22:15Z","updated_at":"2015-02-10T13:25:13Z","pushed_at":"2015-08-13T09:56:16Z","git_url":"git://github.com/mkurek/ralph.git","ssh_url":"git@github.com:mkurek/ralph.git","clone_url":"https://github.com/mkurek/ralph.git","svn_url":"https://github.com/mkurek/ralph","homepage":"http://ralph.allegrogroup.com/","size":20778,"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":"ng"}},"base":{"label":"allegro:ng","ref":"ng","sha":"12139ffa1a81cccb48726de22b3821a219a27482","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":4359038,"name":"ralph","full_name":"allegro/ralph","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/ralph","description":"Ralph is an asset management system for your data center.","fork":false,"url":"https://api.github.com/repos/allegro/ralph","forks_url":"https://api.github.com/repos/allegro/ralph/forks","keys_url":"https://api.github.com/repos/allegro/ralph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/ralph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/ralph/teams","hooks_url":"https://api.github.com/repos/allegro/ralph/hooks","issue_events_url":"https://api.github.com/repos/allegro/ralph/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/ralph/events","assignees_url":"https://api.github.com/repos/allegro/ralph/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/ralph/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/ralph/tags","blobs_url":"https://api.github.com/repos/allegro/ralph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/ralph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/ralph/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/ralph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/ralph/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/ralph/languages","stargazers_url":"https://api.github.com/repos/allegro/ralph/stargazers","contributors_url":"https://api.github.com/repos/allegro/ralph/contributors","subscribers_url":"https://api.github.com/repos/allegro/ralph/subscribers","subscription_url":"https://api.github.com/repos/allegro/ralph/subscription","commits_url":"https://api.github.com/repos/allegro/ralph/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/ralph/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/ralph/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/ralph/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/ralph/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/ralph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/ralph/merges","archive_url":"https://api.github.com/repos/allegro/ralph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/ralph/downloads","issues_url":"https://api.github.com/repos/allegro/ralph/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/ralph/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/ralph/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/ralph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/ralph/labels{/name}","releases_url":"https://api.github.com/repos/allegro/ralph/releases{/id}","created_at":"2012-05-17T14:04:57Z","updated_at":"2015-08-05T16:45:44Z","pushed_at":"2015-08-13T09:56:17Z","git_url":"git://github.com/allegro/ralph.git","ssh_url":"git@github.com:allegro/ralph.git","clone_url":"https://github.com/allegro/ralph.git","svn_url":"https://github.com/allegro/ralph","homepage":"http://allegro.tech/ralph/","size":28226,"stargazers_count":301,"watchers_count":301,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"open_issues_count":92,"forks":75,"open_issues":92,"watchers":301,"default_branch":"ng"}},"_links":{"self":{"href":"https://api.github.com/repos/allegro/ralph/pulls/1709"},"html":{"href":"https://github.com/allegro/ralph/pull/1709"},"issue":{"href":"https://api.github.com/repos/allegro/ralph/issues/1709"},"comments":{"href":"https://api.github.com/repos/allegro/ralph/issues/1709/comments"},"review_comments":{"href":"https://api.github.com/repos/allegro/ralph/pulls/1709/comments"},"review_comment":{"href":"https://api.github.com/repos/allegro/ralph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allegro/ralph/pulls/1709/commits"},"statuses":{"href":"https://api.github.com/repos/allegro/ralph/statuses/07e626ff5e2744c7aeaae46ee23fa6e0333dfd5e"}}}}