{"action":"created","comment":{"url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/comments/68832501","id":68832501,"diff_hunk":"@@ -0,0 +1,159 @@\n+\"\"\"","path":"db/mockdata.py","position":1,"original_position":1,"commit_id":"9cbfac5654cd436b1c12b1ef7f18725ff1b9e164","original_commit_id":"9cbfac5654cd436b1c12b1ef7f18725ff1b9e164","user":{"login":"pinkeshbadjatiya","id":14854424,"avatar_url":"https://avatars.githubusercontent.com/u/14854424?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkeshbadjatiya","html_url":"https://github.com/pinkeshbadjatiya","followers_url":"https://api.github.com/users/pinkeshbadjatiya/followers","following_url":"https://api.github.com/users/pinkeshbadjatiya/following{/other_user}","gists_url":"https://api.github.com/users/pinkeshbadjatiya/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkeshbadjatiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkeshbadjatiya/subscriptions","organizations_url":"https://api.github.com/users/pinkeshbadjatiya/orgs","repos_url":"https://api.github.com/users/pinkeshbadjatiya/repos","events_url":"https://api.github.com/users/pinkeshbadjatiya/events{/privacy}","received_events_url":"https://api.github.com/users/pinkeshbadjatiya/received_events","type":"User","site_admin":false},"body":"I could not find a place to keep these classes so i created a temporary file.\r\nThese classes are needed only by the **api_compat** so merging them into existing files is also not a good idea. I can move them to **api_compat.py** or **api_tools.py** to make sure that the api_compat is modular and its bits are not spread across the whole app.\r\n\r\nI would love to here any suggestions from you.","created_at":"2016-06-28T20:06:38Z","updated_at":"2016-06-28T20:06:38Z","html_url":"https://github.com/metabrainz/listenbrainz-server/pull/82#discussion_r68832501","pull_request_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/comments/68832501"},"html":{"href":"https://github.com/metabrainz/listenbrainz-server/pull/82#discussion_r68832501"},"pull_request":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82","id":74437891,"html_url":"https://github.com/metabrainz/listenbrainz-server/pull/82","diff_url":"https://github.com/metabrainz/listenbrainz-server/pull/82.diff","patch_url":"https://github.com/metabrainz/listenbrainz-server/pull/82.patch","issue_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/82","number":82,"state":"open","locked":false,"title":"[WIP] Compatible API for lastfm","user":{"login":"pinkeshbadjatiya","id":14854424,"avatar_url":"https://avatars.githubusercontent.com/u/14854424?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkeshbadjatiya","html_url":"https://github.com/pinkeshbadjatiya","followers_url":"https://api.github.com/users/pinkeshbadjatiya/followers","following_url":"https://api.github.com/users/pinkeshbadjatiya/following{/other_user}","gists_url":"https://api.github.com/users/pinkeshbadjatiya/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkeshbadjatiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkeshbadjatiya/subscriptions","organizations_url":"https://api.github.com/users/pinkeshbadjatiya/orgs","repos_url":"https://api.github.com/users/pinkeshbadjatiya/repos","events_url":"https://api.github.com/users/pinkeshbadjatiya/events{/privacy}","received_events_url":"https://api.github.com/users/pinkeshbadjatiya/received_events","type":"User","site_admin":false},"body":"- Create schema for `tokens` & `session`\r\n- Add class for `User`, `Token` and `Session`\r\n- Add complete support for the following methods:\r\n  - **auth.getToken**\r\n  - **auth.getSession**\r\n  - **track.scrobble**\r\n  - **track.updateNowPlaying**\r\n  - **user.getinfo**\r\n- Throw errors with appropriate error codes mentioned [here](http://www.last.fm/api/errorcodes).\r\n- Response rendering can be done in `xml` or `json`\r\n- Generic **xml** -> **json** conversion\r\n- Separate common bits from the native_API and the compat_API.\r\n- Fixed a few PEP8 and pylint indenting issues.","created_at":"2016-06-20T12:50:33Z","updated_at":"2016-06-28T20:06:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0189040e058c81f8591e10e0fbe2f25e0bc1f1be","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82/commits","review_comments_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82/comments","review_comment_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/82/comments","statuses_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/statuses/9cbfac5654cd436b1c12b1ef7f18725ff1b9e164","head":{"label":"pinkeshbadjatiya:api_compat","ref":"api_compat","sha":"9cbfac5654cd436b1c12b1ef7f18725ff1b9e164","user":{"login":"pinkeshbadjatiya","id":14854424,"avatar_url":"https://avatars.githubusercontent.com/u/14854424?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkeshbadjatiya","html_url":"https://github.com/pinkeshbadjatiya","followers_url":"https://api.github.com/users/pinkeshbadjatiya/followers","following_url":"https://api.github.com/users/pinkeshbadjatiya/following{/other_user}","gists_url":"https://api.github.com/users/pinkeshbadjatiya/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkeshbadjatiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkeshbadjatiya/subscriptions","organizations_url":"https://api.github.com/users/pinkeshbadjatiya/orgs","repos_url":"https://api.github.com/users/pinkeshbadjatiya/repos","events_url":"https://api.github.com/users/pinkeshbadjatiya/events{/privacy}","received_events_url":"https://api.github.com/users/pinkeshbadjatiya/received_events","type":"User","site_admin":false},"repo":{"id":53163472,"name":"listenbrainz-server","full_name":"pinkeshbadjatiya/listenbrainz-server","owner":{"login":"pinkeshbadjatiya","id":14854424,"avatar_url":"https://avatars.githubusercontent.com/u/14854424?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkeshbadjatiya","html_url":"https://github.com/pinkeshbadjatiya","followers_url":"https://api.github.com/users/pinkeshbadjatiya/followers","following_url":"https://api.github.com/users/pinkeshbadjatiya/following{/other_user}","gists_url":"https://api.github.com/users/pinkeshbadjatiya/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkeshbadjatiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkeshbadjatiya/subscriptions","organizations_url":"https://api.github.com/users/pinkeshbadjatiya/orgs","repos_url":"https://api.github.com/users/pinkeshbadjatiya/repos","events_url":"https://api.github.com/users/pinkeshbadjatiya/events{/privacy}","received_events_url":"https://api.github.com/users/pinkeshbadjatiya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pinkeshbadjatiya/listenbrainz-server","description":"Server for the ListenBrainz project","fork":true,"url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server","forks_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/forks","keys_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/teams","hooks_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/hooks","issue_events_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/issues/events{/number}","events_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/events","assignees_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/assignees{/user}","branches_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/branches{/branch}","tags_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/tags","blobs_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/statuses/{sha}","languages_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/languages","stargazers_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/stargazers","contributors_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/contributors","subscribers_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/subscribers","subscription_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/subscription","commits_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/contents/{+path}","compare_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/merges","archive_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/downloads","issues_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/issues{/number}","pulls_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/pulls{/number}","milestones_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/milestones{/number}","notifications_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/labels{/name}","releases_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/releases{/id}","deployments_url":"https://api.github.com/repos/pinkeshbadjatiya/listenbrainz-server/deployments","created_at":"2016-03-04T20:28:41Z","updated_at":"2016-03-04T20:28:42Z","pushed_at":"2016-06-26T19:07:03Z","git_url":"git://github.com/pinkeshbadjatiya/listenbrainz-server.git","ssh_url":"git@github.com:pinkeshbadjatiya/listenbrainz-server.git","clone_url":"https://github.com/pinkeshbadjatiya/listenbrainz-server.git","svn_url":"https://github.com/pinkeshbadjatiya/listenbrainz-server","homepage":"https://listenbrainz.org/","size":1248,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"metabrainz:master","ref":"master","sha":"64e7fd7a5d047e053f2a067c18b2ea94a3715c69","user":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"repo":{"id":41960013,"name":"listenbrainz-server","full_name":"metabrainz/listenbrainz-server","owner":{"login":"metabrainz","id":293421,"avatar_url":"https://avatars.githubusercontent.com/u/293421?v=3","gravatar_id":"","url":"https://api.github.com/users/metabrainz","html_url":"https://github.com/metabrainz","followers_url":"https://api.github.com/users/metabrainz/followers","following_url":"https://api.github.com/users/metabrainz/following{/other_user}","gists_url":"https://api.github.com/users/metabrainz/gists{/gist_id}","starred_url":"https://api.github.com/users/metabrainz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metabrainz/subscriptions","organizations_url":"https://api.github.com/users/metabrainz/orgs","repos_url":"https://api.github.com/users/metabrainz/repos","events_url":"https://api.github.com/users/metabrainz/events{/privacy}","received_events_url":"https://api.github.com/users/metabrainz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metabrainz/listenbrainz-server","description":"Server for the ListenBrainz project","fork":false,"url":"https://api.github.com/repos/metabrainz/listenbrainz-server","forks_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/forks","keys_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/teams","hooks_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/hooks","issue_events_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/events{/number}","events_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/events","assignees_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/assignees{/user}","branches_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/branches{/branch}","tags_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/tags","blobs_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/statuses/{sha}","languages_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/languages","stargazers_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/stargazers","contributors_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/contributors","subscribers_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/subscribers","subscription_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/subscription","commits_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/contents/{+path}","compare_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/merges","archive_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/downloads","issues_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues{/number}","pulls_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls{/number}","milestones_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/milestones{/number}","notifications_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/labels{/name}","releases_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/releases{/id}","deployments_url":"https://api.github.com/repos/metabrainz/listenbrainz-server/deployments","created_at":"2015-09-05T12:30:49Z","updated_at":"2016-05-26T18:46:06Z","pushed_at":"2016-06-27T16:25:22Z","git_url":"git://github.com/metabrainz/listenbrainz-server.git","ssh_url":"git@github.com:metabrainz/listenbrainz-server.git","clone_url":"https://github.com/metabrainz/listenbrainz-server.git","svn_url":"https://github.com/metabrainz/listenbrainz-server","homepage":"https://listenbrainz.org/","size":1273,"stargazers_count":57,"watchers_count":57,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82"},"html":{"href":"https://github.com/metabrainz/listenbrainz-server/pull/82"},"issue":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/82"},"comments":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/metabrainz/listenbrainz-server/statuses/9cbfac5654cd436b1c12b1ef7f18725ff1b9e164"}}}}
{"actor":{"display_login":"pinkeshbadjatiya"}}