{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments/62338238","id":62338238,"diff_hunk":"@@ -15,25 +15,31 @@\n     url(r'^v2/history/date/(?P<year>[0-9]+)/(?P<month>[0-9]+)/(?P<day>[0-9]+)/?$', historyByDate, name=\"historyByDate\"),\n     url(r'^v2/history/(?P<type>.+)/(?P<id>.+)/?$',                 historyByObjectID,             name=\"historyByObjectID\"),\n     url(r'^v2/history/?$',                                         allHistory,                    name=\"history\"),\n+    url(r'^v2/itemtypes/(?P<typeID>.+)/history/latest?$',            datatypeLatestHistory,         name=\"itemTypeLatestHistory\"),\n     url(r'^v2/itemtypes/(?P<typeID>.+)/history/?$',                datatypeHistory,               name=\"itemTypeHistory\"),","path":"cmdbv2api/urls.py","position":5,"original_position":5,"commit_id":"b37f07c9f2324c1f5278e4c155583117f2f15b69","original_commit_id":"b37f07c9f2324c1f5278e4c155583117f2f15b69","user":{"login":"lucas42","id":428847,"avatar_url":"https://avatars.githubusercontent.com/u/428847?v=3","gravatar_id":"","url":"https://api.github.com/users/lucas42","html_url":"https://github.com/lucas42","followers_url":"https://api.github.com/users/lucas42/followers","following_url":"https://api.github.com/users/lucas42/following{/other_user}","gists_url":"https://api.github.com/users/lucas42/gists{/gist_id}","starred_url":"https://api.github.com/users/lucas42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucas42/subscriptions","organizations_url":"https://api.github.com/users/lucas42/orgs","repos_url":"https://api.github.com/users/lucas42/repos","events_url":"https://api.github.com/users/lucas42/events{/privacy}","received_events_url":"https://api.github.com/users/lucas42/received_events","type":"User","site_admin":false},"body":"If it's easy, then sure.  Though I'm also fine with hardcoding `id` somewhere as we don't really need much more flexibility than that for now.","created_at":"2016-05-06T14:39:00Z","updated_at":"2016-05-06T14:39:01Z","html_url":"https://github.com/Financial-Times/cmdb/pull/37#discussion_r62338238","pull_request_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments/62338238"},"html":{"href":"https://github.com/Financial-Times/cmdb/pull/37#discussion_r62338238"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37","id":68840378,"html_url":"https://github.com/Financial-Times/cmdb/pull/37","diff_url":"https://github.com/Financial-Times/cmdb/pull/37.diff","patch_url":"https://github.com/Financial-Times/cmdb/pull/37.patch","issue_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/37","number":37,"state":"open","locked":false,"title":"Add /latest option to history endpoint","user":{"login":"GeoffThorpeFT","id":11228420,"avatar_url":"https://avatars.githubusercontent.com/u/11228420?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffThorpeFT","html_url":"https://github.com/GeoffThorpeFT","followers_url":"https://api.github.com/users/GeoffThorpeFT/followers","following_url":"https://api.github.com/users/GeoffThorpeFT/following{/other_user}","gists_url":"https://api.github.com/users/GeoffThorpeFT/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffThorpeFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffThorpeFT/subscriptions","organizations_url":"https://api.github.com/users/GeoffThorpeFT/orgs","repos_url":"https://api.github.com/users/GeoffThorpeFT/repos","events_url":"https://api.github.com/users/GeoffThorpeFT/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffThorpeFT/received_events","type":"User","site_admin":false},"body":"fix spelling mistake with datatime and datetime\r\nAdd tests for /latest endpoint","created_at":"2016-05-04T10:29:04Z","updated_at":"2016-05-06T14:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a300ed8ffa4d7d5852cd766d32b61cb31aa6674","assignee":{"login":"lucas42","id":428847,"avatar_url":"https://avatars.githubusercontent.com/u/428847?v=3","gravatar_id":"","url":"https://api.github.com/users/lucas42","html_url":"https://github.com/lucas42","followers_url":"https://api.github.com/users/lucas42/followers","following_url":"https://api.github.com/users/lucas42/following{/other_user}","gists_url":"https://api.github.com/users/lucas42/gists{/gist_id}","starred_url":"https://api.github.com/users/lucas42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucas42/subscriptions","organizations_url":"https://api.github.com/users/lucas42/orgs","repos_url":"https://api.github.com/users/lucas42/repos","events_url":"https://api.github.com/users/lucas42/events{/privacy}","received_events_url":"https://api.github.com/users/lucas42/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/37/comments","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/b37f07c9f2324c1f5278e4c155583117f2f15b69","head":{"label":"Financial-Times:HistoryLatest","ref":"HistoryLatest","sha":"b37f07c9f2324c1f5278e4c155583117f2f15b69","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52922924,"name":"cmdb","full_name":"Financial-Times/cmdb","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/cmdb","description":"Change management Database, the oracle for all things","fork":false,"url":"https://api.github.com/repos/Financial-Times/cmdb","forks_url":"https://api.github.com/repos/Financial-Times/cmdb/forks","keys_url":"https://api.github.com/repos/Financial-Times/cmdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/cmdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/cmdb/teams","hooks_url":"https://api.github.com/repos/Financial-Times/cmdb/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/cmdb/events","assignees_url":"https://api.github.com/repos/Financial-Times/cmdb/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/cmdb/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/cmdb/tags","blobs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/cmdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/cmdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/cmdb/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/cmdb/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/cmdb/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/cmdb/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/cmdb/subscription","commits_url":"https://api.github.com/repos/Financial-Times/cmdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/cmdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/cmdb/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/cmdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/cmdb/merges","archive_url":"https://api.github.com/repos/Financial-Times/cmdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/cmdb/downloads","issues_url":"https://api.github.com/repos/Financial-Times/cmdb/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/cmdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/cmdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/cmdb/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/cmdb/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/cmdb/deployments","created_at":"2016-03-02T01:17:11Z","updated_at":"2016-03-16T14:41:25Z","pushed_at":"2016-05-04T10:56:12Z","git_url":"git://github.com/Financial-Times/cmdb.git","ssh_url":"git@github.com:Financial-Times/cmdb.git","clone_url":"https://github.com/Financial-Times/cmdb.git","svn_url":"https://github.com/Financial-Times/cmdb","homepage":"","size":402,"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":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"4aeaab30fc85ada0417c6d21c0cddd312d59d190","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":52922924,"name":"cmdb","full_name":"Financial-Times/cmdb","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/cmdb","description":"Change management Database, the oracle for all things","fork":false,"url":"https://api.github.com/repos/Financial-Times/cmdb","forks_url":"https://api.github.com/repos/Financial-Times/cmdb/forks","keys_url":"https://api.github.com/repos/Financial-Times/cmdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/cmdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/cmdb/teams","hooks_url":"https://api.github.com/repos/Financial-Times/cmdb/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/cmdb/events","assignees_url":"https://api.github.com/repos/Financial-Times/cmdb/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/cmdb/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/cmdb/tags","blobs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/cmdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/cmdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/cmdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/cmdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/cmdb/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/cmdb/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/cmdb/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/cmdb/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/cmdb/subscription","commits_url":"https://api.github.com/repos/Financial-Times/cmdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/cmdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/cmdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/cmdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/cmdb/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/cmdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/cmdb/merges","archive_url":"https://api.github.com/repos/Financial-Times/cmdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/cmdb/downloads","issues_url":"https://api.github.com/repos/Financial-Times/cmdb/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/cmdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/cmdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/cmdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/cmdb/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/cmdb/releases{/id}","deployments_url":"https://api.github.com/repos/Financial-Times/cmdb/deployments","created_at":"2016-03-02T01:17:11Z","updated_at":"2016-03-16T14:41:25Z","pushed_at":"2016-05-04T10:56:12Z","git_url":"git://github.com/Financial-Times/cmdb.git","ssh_url":"git@github.com:Financial-Times/cmdb.git","clone_url":"https://github.com/Financial-Times/cmdb.git","svn_url":"https://github.com/Financial-Times/cmdb","homepage":"","size":402,"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":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37"},"html":{"href":"https://github.com/Financial-Times/cmdb/pull/37"},"issue":{"href":"https://api.github.com/repos/Financial-Times/cmdb/issues/37"},"comments":{"href":"https://api.github.com/repos/Financial-Times/cmdb/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/cmdb/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/cmdb/statuses/b37f07c9f2324c1f5278e4c155583117f2f15b69"}}}}