{"action":"created","comment":{"url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/comments/87400883","pull_request_review_id":7778259,"id":87400883,"diff_hunk":"@@ -1,72 +0,0 @@\n-\n-import os\n-\n-from sqlalchemy.orm.exc import NoResultFound\n-\n-from delivery.models.db_models import StagingOrder\n-\n-\n-class DatabaseBasedStagingRepository(object):\n-    \"\"\"\n-    A repository of staging orders backed by a database. It is able to create and commit new staging orders\n-    to the database, and fetch them based on different factors.\n-    \"\"\"\n-\n-    def __init__(self, session_factory):\n-        \"\"\"\n-        Instantiate a new DatabaseBasedStagingRepository\n-        :param session_factory: factory method which can produce new sqlalchemy Session objects\n-        \"\"\"\n-        self.session = session_factory()\n-\n-    def get_staging_order_by_source(self, source):\n-        \"\"\"\n-        Get all staging orders based on their source\n-        :param source: to search for\n-        :return: All staging orders of that source as a list\n-        \"\"\"\n-        return self.session.query(StagingOrder).filter(StagingOrder.source == source).all()\n-\n-    def get_staging_order_by_id(self, identifier, custom_session=None):\n-        \"\"\"\n-        Get a staging order by id\n-        NOTE\n-        The custom_session used here is used because in the `StagingService` it is necessary to","path":"delivery/repositories/staging_repository.py","position":34,"original_position":34,"commit_id":"d06ee9b33d28fb88cd06333799b4e17eda40e558","original_commit_id":"d06ee9b33d28fb88cd06333799b4e17eda40e558","user":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"body":"Might be an idea to create a ticket on looking further into this later, and then the note, if it doesn't exist.","created_at":"2016-11-10T14:15:15Z","updated_at":"2016-11-10T14:32:13Z","html_url":"https://github.com/arteria-project/arteria-delivery/pull/1#discussion_r87400883","pull_request_url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/comments/87400883"},"html":{"href":"https://github.com/arteria-project/arteria-delivery/pull/1#discussion_r87400883"},"pull_request":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1","id":92927740,"html_url":"https://github.com/arteria-project/arteria-delivery/pull/1","diff_url":"https://github.com/arteria-project/arteria-delivery/pull/1.diff","patch_url":"https://github.com/arteria-project/arteria-delivery/pull/1.patch","issue_url":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/1","number":1,"state":"open","locked":false,"title":"Review - don't merge","user":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"body":"Pull request for reviewing only","created_at":"2016-11-09T09:20:27Z","updated_at":"2016-11-10T14:32:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"def02d6aa79b39edb2179da3f471c8e7b78c3527","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1/commits","review_comments_url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1/comments","review_comment_url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/1/comments","statuses_url":"https://api.github.com/repos/arteria-project/arteria-delivery/statuses/d06ee9b33d28fb88cd06333799b4e17eda40e558","head":{"label":"withrocks:review","ref":"review","sha":"d06ee9b33d28fb88cd06333799b4e17eda40e558","user":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"repo":{"id":73267704,"name":"arteria-delivery","full_name":"withrocks/arteria-delivery","owner":{"login":"withrocks","id":800390,"avatar_url":"https://avatars.githubusercontent.com/u/800390?v=3","gravatar_id":"","url":"https://api.github.com/users/withrocks","html_url":"https://github.com/withrocks","followers_url":"https://api.github.com/users/withrocks/followers","following_url":"https://api.github.com/users/withrocks/following{/other_user}","gists_url":"https://api.github.com/users/withrocks/gists{/gist_id}","starred_url":"https://api.github.com/users/withrocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withrocks/subscriptions","organizations_url":"https://api.github.com/users/withrocks/orgs","repos_url":"https://api.github.com/users/withrocks/repos","events_url":"https://api.github.com/users/withrocks/events{/privacy}","received_events_url":"https://api.github.com/users/withrocks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/withrocks/arteria-delivery","description":"Micro-service to carry out deliveries on Uppmax","fork":true,"url":"https://api.github.com/repos/withrocks/arteria-delivery","forks_url":"https://api.github.com/repos/withrocks/arteria-delivery/forks","keys_url":"https://api.github.com/repos/withrocks/arteria-delivery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/withrocks/arteria-delivery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/withrocks/arteria-delivery/teams","hooks_url":"https://api.github.com/repos/withrocks/arteria-delivery/hooks","issue_events_url":"https://api.github.com/repos/withrocks/arteria-delivery/issues/events{/number}","events_url":"https://api.github.com/repos/withrocks/arteria-delivery/events","assignees_url":"https://api.github.com/repos/withrocks/arteria-delivery/assignees{/user}","branches_url":"https://api.github.com/repos/withrocks/arteria-delivery/branches{/branch}","tags_url":"https://api.github.com/repos/withrocks/arteria-delivery/tags","blobs_url":"https://api.github.com/repos/withrocks/arteria-delivery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/withrocks/arteria-delivery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/withrocks/arteria-delivery/git/refs{/sha}","trees_url":"https://api.github.com/repos/withrocks/arteria-delivery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/withrocks/arteria-delivery/statuses/{sha}","languages_url":"https://api.github.com/repos/withrocks/arteria-delivery/languages","stargazers_url":"https://api.github.com/repos/withrocks/arteria-delivery/stargazers","contributors_url":"https://api.github.com/repos/withrocks/arteria-delivery/contributors","subscribers_url":"https://api.github.com/repos/withrocks/arteria-delivery/subscribers","subscription_url":"https://api.github.com/repos/withrocks/arteria-delivery/subscription","commits_url":"https://api.github.com/repos/withrocks/arteria-delivery/commits{/sha}","git_commits_url":"https://api.github.com/repos/withrocks/arteria-delivery/git/commits{/sha}","comments_url":"https://api.github.com/repos/withrocks/arteria-delivery/comments{/number}","issue_comment_url":"https://api.github.com/repos/withrocks/arteria-delivery/issues/comments{/number}","contents_url":"https://api.github.com/repos/withrocks/arteria-delivery/contents/{+path}","compare_url":"https://api.github.com/repos/withrocks/arteria-delivery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/withrocks/arteria-delivery/merges","archive_url":"https://api.github.com/repos/withrocks/arteria-delivery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/withrocks/arteria-delivery/downloads","issues_url":"https://api.github.com/repos/withrocks/arteria-delivery/issues{/number}","pulls_url":"https://api.github.com/repos/withrocks/arteria-delivery/pulls{/number}","milestones_url":"https://api.github.com/repos/withrocks/arteria-delivery/milestones{/number}","notifications_url":"https://api.github.com/repos/withrocks/arteria-delivery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/withrocks/arteria-delivery/labels{/name}","releases_url":"https://api.github.com/repos/withrocks/arteria-delivery/releases{/id}","deployments_url":"https://api.github.com/repos/withrocks/arteria-delivery/deployments","created_at":"2016-11-09T09:08:44Z","updated_at":"2016-11-09T09:08:45Z","pushed_at":"2016-11-09T09:18:48Z","git_url":"git://github.com/withrocks/arteria-delivery.git","ssh_url":"git@github.com:withrocks/arteria-delivery.git","clone_url":"https://github.com/withrocks/arteria-delivery.git","svn_url":"https://github.com/withrocks/arteria-delivery","homepage":null,"size":104,"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":"arteria-project:master","ref":"master","sha":"740abeaa6c7a17810042cf2260bd29dc2514a541","user":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"repo":{"id":71244793,"name":"arteria-delivery","full_name":"arteria-project/arteria-delivery","owner":{"login":"arteria-project","id":13848054,"avatar_url":"https://avatars.githubusercontent.com/u/13848054?v=3","gravatar_id":"","url":"https://api.github.com/users/arteria-project","html_url":"https://github.com/arteria-project","followers_url":"https://api.github.com/users/arteria-project/followers","following_url":"https://api.github.com/users/arteria-project/following{/other_user}","gists_url":"https://api.github.com/users/arteria-project/gists{/gist_id}","starred_url":"https://api.github.com/users/arteria-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arteria-project/subscriptions","organizations_url":"https://api.github.com/users/arteria-project/orgs","repos_url":"https://api.github.com/users/arteria-project/repos","events_url":"https://api.github.com/users/arteria-project/events{/privacy}","received_events_url":"https://api.github.com/users/arteria-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arteria-project/arteria-delivery","description":"Micro-service to carry out deliveries on Uppmax","fork":false,"url":"https://api.github.com/repos/arteria-project/arteria-delivery","forks_url":"https://api.github.com/repos/arteria-project/arteria-delivery/forks","keys_url":"https://api.github.com/repos/arteria-project/arteria-delivery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arteria-project/arteria-delivery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arteria-project/arteria-delivery/teams","hooks_url":"https://api.github.com/repos/arteria-project/arteria-delivery/hooks","issue_events_url":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/events{/number}","events_url":"https://api.github.com/repos/arteria-project/arteria-delivery/events","assignees_url":"https://api.github.com/repos/arteria-project/arteria-delivery/assignees{/user}","branches_url":"https://api.github.com/repos/arteria-project/arteria-delivery/branches{/branch}","tags_url":"https://api.github.com/repos/arteria-project/arteria-delivery/tags","blobs_url":"https://api.github.com/repos/arteria-project/arteria-delivery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arteria-project/arteria-delivery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arteria-project/arteria-delivery/git/refs{/sha}","trees_url":"https://api.github.com/repos/arteria-project/arteria-delivery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arteria-project/arteria-delivery/statuses/{sha}","languages_url":"https://api.github.com/repos/arteria-project/arteria-delivery/languages","stargazers_url":"https://api.github.com/repos/arteria-project/arteria-delivery/stargazers","contributors_url":"https://api.github.com/repos/arteria-project/arteria-delivery/contributors","subscribers_url":"https://api.github.com/repos/arteria-project/arteria-delivery/subscribers","subscription_url":"https://api.github.com/repos/arteria-project/arteria-delivery/subscription","commits_url":"https://api.github.com/repos/arteria-project/arteria-delivery/commits{/sha}","git_commits_url":"https://api.github.com/repos/arteria-project/arteria-delivery/git/commits{/sha}","comments_url":"https://api.github.com/repos/arteria-project/arteria-delivery/comments{/number}","issue_comment_url":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/comments{/number}","contents_url":"https://api.github.com/repos/arteria-project/arteria-delivery/contents/{+path}","compare_url":"https://api.github.com/repos/arteria-project/arteria-delivery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arteria-project/arteria-delivery/merges","archive_url":"https://api.github.com/repos/arteria-project/arteria-delivery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arteria-project/arteria-delivery/downloads","issues_url":"https://api.github.com/repos/arteria-project/arteria-delivery/issues{/number}","pulls_url":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls{/number}","milestones_url":"https://api.github.com/repos/arteria-project/arteria-delivery/milestones{/number}","notifications_url":"https://api.github.com/repos/arteria-project/arteria-delivery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arteria-project/arteria-delivery/labels{/name}","releases_url":"https://api.github.com/repos/arteria-project/arteria-delivery/releases{/id}","deployments_url":"https://api.github.com/repos/arteria-project/arteria-delivery/deployments","created_at":"2016-10-18T12:15:20Z","updated_at":"2016-10-18T12:16:34Z","pushed_at":"2016-11-09T09:20:27Z","git_url":"git://github.com/arteria-project/arteria-delivery.git","ssh_url":"git@github.com:arteria-project/arteria-delivery.git","clone_url":"https://github.com/arteria-project/arteria-delivery.git","svn_url":"https://github.com/arteria-project/arteria-delivery","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1"},"html":{"href":"https://github.com/arteria-project/arteria-delivery/pull/1"},"issue":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/1"},"comments":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/arteria-project/arteria-delivery/statuses/d06ee9b33d28fb88cd06333799b4e17eda40e558"}}}}
{"actor":{"display_login":"withrocks"}}