{"action":"created","comment":{"url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/comments/41496900","id":41496900,"diff_hunk":"@@ -0,0 +1,38 @@\n+#!/usr/bin/python\r\n+# -*- coding: utf-8 -*-\r\n+\r\n+import appier\r\n+import appier_extras\r\n+\r\n+class Bag(appier_extras.admin.Base):\r\n+\r\n+    lines = appier.field(\r\n+        type = dict\r\n+    )\r\n+\r\n+    session_id = appier.field(\r\n+        type = int\r\n+    )\r\n+    \r\n+    @classmethod\r\n+    def get_from_session(cls, **kwargs):\r\n+        session_id = 1\r\n+        return cls.get(session_id = session_id, **kwargs)\r\n+        \r\n+    def add_product_s(self, product, quantity):\r\n+        if not hasattr(self, \"lines\"): self.lines = {}\r\n+        product_id = \"%s\" % product.id\r","path":"src/mock_adapter/models/bag.py","position":24,"original_position":24,"commit_id":"dbf4af2b82542e40b148fdea4c635cd82cf2b733","original_commit_id":"dbf4af2b82542e40b148fdea4c635cd82cf2b733","user":{"login":"tsilva","id":26742,"avatar_url":"https://avatars.githubusercontent.com/u/26742?v=3","gravatar_id":"","url":"https://api.github.com/users/tsilva","html_url":"https://github.com/tsilva","followers_url":"https://api.github.com/users/tsilva/followers","following_url":"https://api.github.com/users/tsilva/following{/other_user}","gists_url":"https://api.github.com/users/tsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/tsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsilva/subscriptions","organizations_url":"https://api.github.com/users/tsilva/orgs","repos_url":"https://api.github.com/users/tsilva/repos","events_url":"https://api.github.com/users/tsilva/events{/privacy}","received_events_url":"https://api.github.com/users/tsilva/received_events","type":"User","site_admin":false},"body":"any reason for using string identifiers in the lines map?","created_at":"2015-10-08T10:13:12Z","updated_at":"2015-10-08T10:13:12Z","html_url":"https://github.com/hivesolutions/bagger_api/pull/1#discussion_r41496900","pull_request_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/comments/41496900"},"html":{"href":"https://github.com/hivesolutions/bagger_api/pull/1#discussion_r41496900"},"pull_request":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1","id":47014646,"html_url":"https://github.com/hivesolutions/bagger_api/pull/1","diff_url":"https://github.com/hivesolutions/bagger_api/pull/1.diff","patch_url":"https://github.com/hivesolutions/bagger_api/pull/1.patch","issue_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/1","number":1,"state":"open","locked":false,"title":"Dev acaldas","user":{"login":"acaldas","id":5501872,"avatar_url":"https://avatars.githubusercontent.com/u/5501872?v=3","gravatar_id":"","url":"https://api.github.com/users/acaldas","html_url":"https://github.com/acaldas","followers_url":"https://api.github.com/users/acaldas/followers","following_url":"https://api.github.com/users/acaldas/following{/other_user}","gists_url":"https://api.github.com/users/acaldas/gists{/gist_id}","starred_url":"https://api.github.com/users/acaldas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acaldas/subscriptions","organizations_url":"https://api.github.com/users/acaldas/orgs","repos_url":"https://api.github.com/users/acaldas/repos","events_url":"https://api.github.com/users/acaldas/events{/privacy}","received_events_url":"https://api.github.com/users/acaldas/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-07T11:19:03Z","updated_at":"2015-10-08T10:13:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac1d3326857dd5775da5835da217e4873e8cd5ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/1/comments","statuses_url":"https://api.github.com/repos/hivesolutions/bagger_api/statuses/dbf4af2b82542e40b148fdea4c635cd82cf2b733","head":{"label":"hivesolutions:dev_acaldas","ref":"dev_acaldas","sha":"dbf4af2b82542e40b148fdea4c635cd82cf2b733","user":{"login":"hivesolutions","id":528470,"avatar_url":"https://avatars.githubusercontent.com/u/528470?v=3","gravatar_id":"","url":"https://api.github.com/users/hivesolutions","html_url":"https://github.com/hivesolutions","followers_url":"https://api.github.com/users/hivesolutions/followers","following_url":"https://api.github.com/users/hivesolutions/following{/other_user}","gists_url":"https://api.github.com/users/hivesolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hivesolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hivesolutions/subscriptions","organizations_url":"https://api.github.com/users/hivesolutions/orgs","repos_url":"https://api.github.com/users/hivesolutions/repos","events_url":"https://api.github.com/users/hivesolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hivesolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":43687057,"name":"bagger_api","full_name":"hivesolutions/bagger_api","owner":{"login":"hivesolutions","id":528470,"avatar_url":"https://avatars.githubusercontent.com/u/528470?v=3","gravatar_id":"","url":"https://api.github.com/users/hivesolutions","html_url":"https://github.com/hivesolutions","followers_url":"https://api.github.com/users/hivesolutions/followers","following_url":"https://api.github.com/users/hivesolutions/following{/other_user}","gists_url":"https://api.github.com/users/hivesolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hivesolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hivesolutions/subscriptions","organizations_url":"https://api.github.com/users/hivesolutions/orgs","repos_url":"https://api.github.com/users/hivesolutions/repos","events_url":"https://api.github.com/users/hivesolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hivesolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hivesolutions/bagger_api","description":"The API implementation for bagger","fork":false,"url":"https://api.github.com/repos/hivesolutions/bagger_api","forks_url":"https://api.github.com/repos/hivesolutions/bagger_api/forks","keys_url":"https://api.github.com/repos/hivesolutions/bagger_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hivesolutions/bagger_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hivesolutions/bagger_api/teams","hooks_url":"https://api.github.com/repos/hivesolutions/bagger_api/hooks","issue_events_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/events{/number}","events_url":"https://api.github.com/repos/hivesolutions/bagger_api/events","assignees_url":"https://api.github.com/repos/hivesolutions/bagger_api/assignees{/user}","branches_url":"https://api.github.com/repos/hivesolutions/bagger_api/branches{/branch}","tags_url":"https://api.github.com/repos/hivesolutions/bagger_api/tags","blobs_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hivesolutions/bagger_api/statuses/{sha}","languages_url":"https://api.github.com/repos/hivesolutions/bagger_api/languages","stargazers_url":"https://api.github.com/repos/hivesolutions/bagger_api/stargazers","contributors_url":"https://api.github.com/repos/hivesolutions/bagger_api/contributors","subscribers_url":"https://api.github.com/repos/hivesolutions/bagger_api/subscribers","subscription_url":"https://api.github.com/repos/hivesolutions/bagger_api/subscription","commits_url":"https://api.github.com/repos/hivesolutions/bagger_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hivesolutions/bagger_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hivesolutions/bagger_api/contents/{+path}","compare_url":"https://api.github.com/repos/hivesolutions/bagger_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hivesolutions/bagger_api/merges","archive_url":"https://api.github.com/repos/hivesolutions/bagger_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hivesolutions/bagger_api/downloads","issues_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues{/number}","pulls_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls{/number}","milestones_url":"https://api.github.com/repos/hivesolutions/bagger_api/milestones{/number}","notifications_url":"https://api.github.com/repos/hivesolutions/bagger_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hivesolutions/bagger_api/labels{/name}","releases_url":"https://api.github.com/repos/hivesolutions/bagger_api/releases{/id}","created_at":"2015-10-05T13:50:20Z","updated_at":"2015-10-05T19:05:51Z","pushed_at":"2015-10-08T09:48:34Z","git_url":"git://github.com/hivesolutions/bagger_api.git","ssh_url":"git@github.com:hivesolutions/bagger_api.git","clone_url":"https://github.com/hivesolutions/bagger_api.git","svn_url":"https://github.com/hivesolutions/bagger_api","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hivesolutions:master","ref":"master","sha":"e29c72e71cee21bd8a9175a0d6b6309183c6b79d","user":{"login":"hivesolutions","id":528470,"avatar_url":"https://avatars.githubusercontent.com/u/528470?v=3","gravatar_id":"","url":"https://api.github.com/users/hivesolutions","html_url":"https://github.com/hivesolutions","followers_url":"https://api.github.com/users/hivesolutions/followers","following_url":"https://api.github.com/users/hivesolutions/following{/other_user}","gists_url":"https://api.github.com/users/hivesolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hivesolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hivesolutions/subscriptions","organizations_url":"https://api.github.com/users/hivesolutions/orgs","repos_url":"https://api.github.com/users/hivesolutions/repos","events_url":"https://api.github.com/users/hivesolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hivesolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":43687057,"name":"bagger_api","full_name":"hivesolutions/bagger_api","owner":{"login":"hivesolutions","id":528470,"avatar_url":"https://avatars.githubusercontent.com/u/528470?v=3","gravatar_id":"","url":"https://api.github.com/users/hivesolutions","html_url":"https://github.com/hivesolutions","followers_url":"https://api.github.com/users/hivesolutions/followers","following_url":"https://api.github.com/users/hivesolutions/following{/other_user}","gists_url":"https://api.github.com/users/hivesolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/hivesolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hivesolutions/subscriptions","organizations_url":"https://api.github.com/users/hivesolutions/orgs","repos_url":"https://api.github.com/users/hivesolutions/repos","events_url":"https://api.github.com/users/hivesolutions/events{/privacy}","received_events_url":"https://api.github.com/users/hivesolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hivesolutions/bagger_api","description":"The API implementation for bagger","fork":false,"url":"https://api.github.com/repos/hivesolutions/bagger_api","forks_url":"https://api.github.com/repos/hivesolutions/bagger_api/forks","keys_url":"https://api.github.com/repos/hivesolutions/bagger_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hivesolutions/bagger_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hivesolutions/bagger_api/teams","hooks_url":"https://api.github.com/repos/hivesolutions/bagger_api/hooks","issue_events_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/events{/number}","events_url":"https://api.github.com/repos/hivesolutions/bagger_api/events","assignees_url":"https://api.github.com/repos/hivesolutions/bagger_api/assignees{/user}","branches_url":"https://api.github.com/repos/hivesolutions/bagger_api/branches{/branch}","tags_url":"https://api.github.com/repos/hivesolutions/bagger_api/tags","blobs_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hivesolutions/bagger_api/statuses/{sha}","languages_url":"https://api.github.com/repos/hivesolutions/bagger_api/languages","stargazers_url":"https://api.github.com/repos/hivesolutions/bagger_api/stargazers","contributors_url":"https://api.github.com/repos/hivesolutions/bagger_api/contributors","subscribers_url":"https://api.github.com/repos/hivesolutions/bagger_api/subscribers","subscription_url":"https://api.github.com/repos/hivesolutions/bagger_api/subscription","commits_url":"https://api.github.com/repos/hivesolutions/bagger_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hivesolutions/bagger_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hivesolutions/bagger_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hivesolutions/bagger_api/contents/{+path}","compare_url":"https://api.github.com/repos/hivesolutions/bagger_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hivesolutions/bagger_api/merges","archive_url":"https://api.github.com/repos/hivesolutions/bagger_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hivesolutions/bagger_api/downloads","issues_url":"https://api.github.com/repos/hivesolutions/bagger_api/issues{/number}","pulls_url":"https://api.github.com/repos/hivesolutions/bagger_api/pulls{/number}","milestones_url":"https://api.github.com/repos/hivesolutions/bagger_api/milestones{/number}","notifications_url":"https://api.github.com/repos/hivesolutions/bagger_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hivesolutions/bagger_api/labels{/name}","releases_url":"https://api.github.com/repos/hivesolutions/bagger_api/releases{/id}","created_at":"2015-10-05T13:50:20Z","updated_at":"2015-10-05T19:05:51Z","pushed_at":"2015-10-08T09:48:34Z","git_url":"git://github.com/hivesolutions/bagger_api.git","ssh_url":"git@github.com:hivesolutions/bagger_api.git","clone_url":"https://github.com/hivesolutions/bagger_api.git","svn_url":"https://github.com/hivesolutions/bagger_api","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1"},"html":{"href":"https://github.com/hivesolutions/bagger_api/pull/1"},"issue":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/issues/1"},"comments":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hivesolutions/bagger_api/statuses/dbf4af2b82542e40b148fdea4c635cd82cf2b733"}}}}