{"action":"created","comment":{"url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/comments/53683385","id":53683385,"diff_hunk":"@@ -0,0 +1,120 @@\n+\"\"\" These classes define the ORM models to be used by sqlalchemy for the job tracker database \"\"\"\n+\n+from sqlalchemy import Column, Integer, Text, ForeignKey\n+from sqlalchemy.ext.declarative import declarative_base\n+from sqlalchemy.orm import relationship\n+\n+Base = declarative_base()\n+\n+class Status(Base):\n+    __tablename__ = \"status\"\n+    STATUS_DICT = None\n+\n+    status_id = Column(Integer, primary_key=True)\n+    name = Column(Text)\n+    description = Column(Text)\n+    session = None\n+\n+    @staticmethod\n+    def getStatus(statusName):\n+        if(Status.STATUS_DICT == None):\n+            Status.STATUS_DICT = {}\n+            # Pull status values out of DB\n+            if(Status.session == None):\n+                from dataactcore.models.jobTrackerInterface import JobTrackerInterface","path":"dataactcore/models/jobModels.py","position":null,"original_position":24,"commit_id":"2cc9d878c9031302b846b458467103ade5d5f9d6","original_commit_id":"b8941cf8af24062e7c4f11c0f4d68304e995c355","user":{"login":"kaitlin","id":75555,"avatar_url":"https://avatars.githubusercontent.com/u/75555?v=3","gravatar_id":"","url":"https://api.github.com/users/kaitlin","html_url":"https://github.com/kaitlin","followers_url":"https://api.github.com/users/kaitlin/followers","following_url":"https://api.github.com/users/kaitlin/following{/other_user}","gists_url":"https://api.github.com/users/kaitlin/gists{/gist_id}","starred_url":"https://api.github.com/users/kaitlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaitlin/subscriptions","organizations_url":"https://api.github.com/users/kaitlin/orgs","repos_url":"https://api.github.com/users/kaitlin/repos","events_url":"https://api.github.com/users/kaitlin/events{/privacy}","received_events_url":"https://api.github.com/users/kaitlin/received_events","type":"User","site_admin":false},"body":"move import to top\r\n","created_at":"2016-02-22T20:02:56Z","updated_at":"2016-02-22T20:02:56Z","html_url":"https://github.com/fedspendingtransparency/data-act-core/pull/1#discussion_r53683385","pull_request_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/comments/53683385"},"html":{"href":"https://github.com/fedspendingtransparency/data-act-core/pull/1#discussion_r53683385"},"pull_request":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1","id":58168145,"html_url":"https://github.com/fedspendingtransparency/data-act-core/pull/1","diff_url":"https://github.com/fedspendingtransparency/data-act-core/pull/1.diff","patch_url":"https://github.com/fedspendingtransparency/data-act-core/pull/1.patch","issue_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/1","number":1,"state":"open","locked":false,"title":"Development","user":{"login":"jworcestBAH","id":11858333,"avatar_url":"https://avatars.githubusercontent.com/u/11858333?v=3","gravatar_id":"","url":"https://api.github.com/users/jworcestBAH","html_url":"https://github.com/jworcestBAH","followers_url":"https://api.github.com/users/jworcestBAH/followers","following_url":"https://api.github.com/users/jworcestBAH/following{/other_user}","gists_url":"https://api.github.com/users/jworcestBAH/gists{/gist_id}","starred_url":"https://api.github.com/users/jworcestBAH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jworcestBAH/subscriptions","organizations_url":"https://api.github.com/users/jworcestBAH/orgs","repos_url":"https://api.github.com/users/jworcestBAH/repos","events_url":"https://api.github.com/users/jworcestBAH/events{/privacy}","received_events_url":"https://api.github.com/users/jworcestBAH/received_events","type":"User","site_admin":false},"body":"Sprint 5 stories complete (DB-1,6,42,43)","created_at":"2016-02-03T17:05:38Z","updated_at":"2016-02-22T20:02:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc2dcf22b19692268464235d72ed3133d6484ef0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/1/comments","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/statuses/2cc9d878c9031302b846b458467103ade5d5f9d6","head":{"label":"fedspendingtransparency:development","ref":"development","sha":"2cc9d878c9031302b846b458467103ade5d5f9d6","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":47700007,"name":"data-act-core","full_name":"fedspendingtransparency/data-act-core","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/data-act-core","description":"","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/data-act-core","forks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/deployments","created_at":"2015-12-09T15:30:31Z","updated_at":"2015-12-23T03:23:16Z","pushed_at":"2016-02-22T19:46:14Z","git_url":"git://github.com/fedspendingtransparency/data-act-core.git","ssh_url":"git@github.com:fedspendingtransparency/data-act-core.git","clone_url":"https://github.com/fedspendingtransparency/data-act-core.git","svn_url":"https://github.com/fedspendingtransparency/data-act-core","homepage":null,"size":135,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"fedspendingtransparency:master","ref":"master","sha":"e76b978c849ff4f80c77282b694a5860a25309c7","user":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"repo":{"id":47700007,"name":"data-act-core","full_name":"fedspendingtransparency/data-act-core","owner":{"login":"fedspendingtransparency","id":8397762,"avatar_url":"https://avatars.githubusercontent.com/u/8397762?v=3","gravatar_id":"","url":"https://api.github.com/users/fedspendingtransparency","html_url":"https://github.com/fedspendingtransparency","followers_url":"https://api.github.com/users/fedspendingtransparency/followers","following_url":"https://api.github.com/users/fedspendingtransparency/following{/other_user}","gists_url":"https://api.github.com/users/fedspendingtransparency/gists{/gist_id}","starred_url":"https://api.github.com/users/fedspendingtransparency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedspendingtransparency/subscriptions","organizations_url":"https://api.github.com/users/fedspendingtransparency/orgs","repos_url":"https://api.github.com/users/fedspendingtransparency/repos","events_url":"https://api.github.com/users/fedspendingtransparency/events{/privacy}","received_events_url":"https://api.github.com/users/fedspendingtransparency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fedspendingtransparency/data-act-core","description":"","fork":false,"url":"https://api.github.com/repos/fedspendingtransparency/data-act-core","forks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/forks","keys_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/teams","hooks_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/hooks","issue_events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/events{/number}","events_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/events","assignees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/assignees{/user}","branches_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/branches{/branch}","tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/tags","blobs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/statuses/{sha}","languages_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/languages","stargazers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/stargazers","contributors_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/contributors","subscribers_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/subscribers","subscription_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/subscription","commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/contents/{+path}","compare_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/merges","archive_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/downloads","issues_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues{/number}","pulls_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls{/number}","milestones_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/milestones{/number}","notifications_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/labels{/name}","releases_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/releases{/id}","deployments_url":"https://api.github.com/repos/fedspendingtransparency/data-act-core/deployments","created_at":"2015-12-09T15:30:31Z","updated_at":"2015-12-23T03:23:16Z","pushed_at":"2016-02-22T19:46:14Z","git_url":"git://github.com/fedspendingtransparency/data-act-core.git","ssh_url":"git@github.com:fedspendingtransparency/data-act-core.git","clone_url":"https://github.com/fedspendingtransparency/data-act-core.git","svn_url":"https://github.com/fedspendingtransparency/data-act-core","homepage":null,"size":135,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1"},"html":{"href":"https://github.com/fedspendingtransparency/data-act-core/pull/1"},"issue":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/1"},"comments":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fedspendingtransparency/data-act-core/statuses/2cc9d878c9031302b846b458467103ade5d5f9d6"}}}}