{"action":"closed","number":38,"pull_request":{"url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38","id":81202191,"html_url":"https://github.com/DriveTimeInc/TestDrive/pull/38","diff_url":"https://github.com/DriveTimeInc/TestDrive/pull/38.diff","patch_url":"https://github.com/DriveTimeInc/TestDrive/pull/38.patch","issue_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/38","number":38,"state":"closed","locked":false,"title":"Feature key logging","user":{"login":"cgolobic","id":14023102,"avatar_url":"https://avatars.githubusercontent.com/u/14023102?v=3","gravatar_id":"","url":"https://api.github.com/users/cgolobic","html_url":"https://github.com/cgolobic","followers_url":"https://api.github.com/users/cgolobic/followers","following_url":"https://api.github.com/users/cgolobic/following{/other_user}","gists_url":"https://api.github.com/users/cgolobic/gists{/gist_id}","starred_url":"https://api.github.com/users/cgolobic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgolobic/subscriptions","organizations_url":"https://api.github.com/users/cgolobic/orgs","repos_url":"https://api.github.com/users/cgolobic/repos","events_url":"https://api.github.com/users/cgolobic/events{/privacy}","received_events_url":"https://api.github.com/users/cgolobic/received_events","type":"User","site_admin":false},"body":"- Refactored data structures into KeyStatus, KeyRecord, and TestDriveRecord structures\r\n- KeyStatus: contains information about a key that is active.  There may be only one KeyStatus at a time   per key.\r\n- KeyRecord: contains information about a key that has been checked in.  This serves as a persistent record of the key's checkout that is stored in the database for reporting purposes.\r\n- TestDriveRecord: A persistent record of a test drive.  Contains all information relevant to a test drive.\r\n\r\n- Redesigned the key checkout page to be easier to use\r\n- added validation on the key checkout page to prevent duplicate key checkouts and checking out too many keys at a time.\r\n- Users have the option to check in a key if they attempt to check out a new key and they are already at their limit.\r\n- Fixed errors in the admin page\r\n- added formatting of checkout reason and key state enums\r\n- Cleaned up deprecated and unnessecary code","created_at":"2016-08-13T00:59:24Z","updated_at":"2016-08-15T15:42:53Z","closed_at":"2016-08-15T15:42:53Z","merged_at":"2016-08-15T15:42:53Z","merge_commit_sha":"8d517f6e18aa9b81c54584a89527febe49121e98","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38/commits","review_comments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38/comments","review_comment_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/38/comments","statuses_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/statuses/d42b4d5d60accd845667d80ee0ab12135f1ed764","head":{"label":"DriveTimeInc:Feature-KeyLogging","ref":"Feature-KeyLogging","sha":"d42b4d5d60accd845667d80ee0ab12135f1ed764","user":{"login":"DriveTimeInc","id":13108551,"avatar_url":"https://avatars.githubusercontent.com/u/13108551?v=3","gravatar_id":"","url":"https://api.github.com/users/DriveTimeInc","html_url":"https://github.com/DriveTimeInc","followers_url":"https://api.github.com/users/DriveTimeInc/followers","following_url":"https://api.github.com/users/DriveTimeInc/following{/other_user}","gists_url":"https://api.github.com/users/DriveTimeInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DriveTimeInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DriveTimeInc/subscriptions","organizations_url":"https://api.github.com/users/DriveTimeInc/orgs","repos_url":"https://api.github.com/users/DriveTimeInc/repos","events_url":"https://api.github.com/users/DriveTimeInc/events{/privacy}","received_events_url":"https://api.github.com/users/DriveTimeInc/received_events","type":"Organization","site_admin":false},"repo":{"id":60807110,"name":"TestDrive","full_name":"DriveTimeInc/TestDrive","owner":{"login":"DriveTimeInc","id":13108551,"avatar_url":"https://avatars.githubusercontent.com/u/13108551?v=3","gravatar_id":"","url":"https://api.github.com/users/DriveTimeInc","html_url":"https://github.com/DriveTimeInc","followers_url":"https://api.github.com/users/DriveTimeInc/followers","following_url":"https://api.github.com/users/DriveTimeInc/following{/other_user}","gists_url":"https://api.github.com/users/DriveTimeInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DriveTimeInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DriveTimeInc/subscriptions","organizations_url":"https://api.github.com/users/DriveTimeInc/orgs","repos_url":"https://api.github.com/users/DriveTimeInc/repos","events_url":"https://api.github.com/users/DriveTimeInc/events{/privacy}","received_events_url":"https://api.github.com/users/DriveTimeInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DriveTimeInc/TestDrive","description":"Intern Capstone Project - Test Drive Log","fork":false,"url":"https://api.github.com/repos/DriveTimeInc/TestDrive","forks_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/forks","keys_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/teams","hooks_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/hooks","issue_events_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/events{/number}","events_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/events","assignees_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/assignees{/user}","branches_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/branches{/branch}","tags_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/tags","blobs_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/refs{/sha}","trees_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/statuses/{sha}","languages_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/languages","stargazers_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/stargazers","contributors_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/contributors","subscribers_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/subscribers","subscription_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/subscription","commits_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/commits{/sha}","git_commits_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/commits{/sha}","comments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/comments{/number}","issue_comment_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/comments{/number}","contents_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/contents/{+path}","compare_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/merges","archive_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/downloads","issues_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues{/number}","pulls_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls{/number}","milestones_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/milestones{/number}","notifications_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/labels{/name}","releases_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/releases{/id}","deployments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/deployments","created_at":"2016-06-09T21:06:13Z","updated_at":"2016-07-01T17:47:59Z","pushed_at":"2016-08-15T15:42:53Z","git_url":"git://github.com/DriveTimeInc/TestDrive.git","ssh_url":"git@github.com:DriveTimeInc/TestDrive.git","clone_url":"https://github.com/DriveTimeInc/TestDrive.git","svn_url":"https://github.com/DriveTimeInc/TestDrive","homepage":null,"size":17782,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"DriveTimeInc:master","ref":"master","sha":"8ae320b9d6ad7a061943ae6699f6af4f0eb09ad2","user":{"login":"DriveTimeInc","id":13108551,"avatar_url":"https://avatars.githubusercontent.com/u/13108551?v=3","gravatar_id":"","url":"https://api.github.com/users/DriveTimeInc","html_url":"https://github.com/DriveTimeInc","followers_url":"https://api.github.com/users/DriveTimeInc/followers","following_url":"https://api.github.com/users/DriveTimeInc/following{/other_user}","gists_url":"https://api.github.com/users/DriveTimeInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DriveTimeInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DriveTimeInc/subscriptions","organizations_url":"https://api.github.com/users/DriveTimeInc/orgs","repos_url":"https://api.github.com/users/DriveTimeInc/repos","events_url":"https://api.github.com/users/DriveTimeInc/events{/privacy}","received_events_url":"https://api.github.com/users/DriveTimeInc/received_events","type":"Organization","site_admin":false},"repo":{"id":60807110,"name":"TestDrive","full_name":"DriveTimeInc/TestDrive","owner":{"login":"DriveTimeInc","id":13108551,"avatar_url":"https://avatars.githubusercontent.com/u/13108551?v=3","gravatar_id":"","url":"https://api.github.com/users/DriveTimeInc","html_url":"https://github.com/DriveTimeInc","followers_url":"https://api.github.com/users/DriveTimeInc/followers","following_url":"https://api.github.com/users/DriveTimeInc/following{/other_user}","gists_url":"https://api.github.com/users/DriveTimeInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DriveTimeInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DriveTimeInc/subscriptions","organizations_url":"https://api.github.com/users/DriveTimeInc/orgs","repos_url":"https://api.github.com/users/DriveTimeInc/repos","events_url":"https://api.github.com/users/DriveTimeInc/events{/privacy}","received_events_url":"https://api.github.com/users/DriveTimeInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DriveTimeInc/TestDrive","description":"Intern Capstone Project - Test Drive Log","fork":false,"url":"https://api.github.com/repos/DriveTimeInc/TestDrive","forks_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/forks","keys_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/teams","hooks_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/hooks","issue_events_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/events{/number}","events_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/events","assignees_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/assignees{/user}","branches_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/branches{/branch}","tags_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/tags","blobs_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/refs{/sha}","trees_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/statuses/{sha}","languages_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/languages","stargazers_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/stargazers","contributors_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/contributors","subscribers_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/subscribers","subscription_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/subscription","commits_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/commits{/sha}","git_commits_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/git/commits{/sha}","comments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/comments{/number}","issue_comment_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/comments{/number}","contents_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/contents/{+path}","compare_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/merges","archive_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/downloads","issues_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues{/number}","pulls_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls{/number}","milestones_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/milestones{/number}","notifications_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/labels{/name}","releases_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/releases{/id}","deployments_url":"https://api.github.com/repos/DriveTimeInc/TestDrive/deployments","created_at":"2016-06-09T21:06:13Z","updated_at":"2016-07-01T17:47:59Z","pushed_at":"2016-08-15T15:42:53Z","git_url":"git://github.com/DriveTimeInc/TestDrive.git","ssh_url":"git@github.com:DriveTimeInc/TestDrive.git","clone_url":"https://github.com/DriveTimeInc/TestDrive.git","svn_url":"https://github.com/DriveTimeInc/TestDrive","homepage":null,"size":17782,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38"},"html":{"href":"https://github.com/DriveTimeInc/TestDrive/pull/38"},"issue":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/38"},"comments":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/DriveTimeInc/TestDrive/statuses/d42b4d5d60accd845667d80ee0ab12135f1ed764"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cgolobic","id":14023102,"avatar_url":"https://avatars.githubusercontent.com/u/14023102?v=3","gravatar_id":"","url":"https://api.github.com/users/cgolobic","html_url":"https://github.com/cgolobic","followers_url":"https://api.github.com/users/cgolobic/followers","following_url":"https://api.github.com/users/cgolobic/following{/other_user}","gists_url":"https://api.github.com/users/cgolobic/gists{/gist_id}","starred_url":"https://api.github.com/users/cgolobic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgolobic/subscriptions","organizations_url":"https://api.github.com/users/cgolobic/orgs","repos_url":"https://api.github.com/users/cgolobic/repos","events_url":"https://api.github.com/users/cgolobic/events{/privacy}","received_events_url":"https://api.github.com/users/cgolobic/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":15,"additions":696,"deletions":507,"changed_files":45}}
{"actor":{"display_login":"cgolobic"}}