{"action":"created","comment":{"url":"https://api.github.com/repos/forte-music/core/pulls/comments/190759989","pull_request_review_id":123208252,"id":190759989,"diff_hunk":"@@ -0,0 +1,145 @@\n+use taglib2_sys::SongProperties;\n+\n+use chrono::Utc;\n+\n+use database::album;\n+use database::artist;\n+use database::song_artist;\n+\n+use diesel;\n+use diesel::Connection;\n+use diesel::associations::HasTable;\n+use diesel::prelude::*;\n+use diesel::result;\n+\n+use models::*;\n+use std::path::Path;\n+\n+pub mod errors {\n+    error_chain! {\n+        foreign_links {\n+            Diesel(::diesel::result::Error);\n+        }\n+\n+        errors {\n+            NoArtistError {\n+                description(\"either the tag's album artist or artist needs to be set, neither is\")\n+            }\n+\n+            NoAlbumError {\n+                description(\"the album name wasn't specified in the tag\")\n+            }\n+\n+            NoTitleError {\n+                description(\"the title wasn't specified in the tag\")","path":"src/import.rs","position":34,"original_position":34,"commit_id":"6cb6221e284400765d9b830518c925b910071713","original_commit_id":"6cb6221e284400765d9b830518c925b910071713","user":{"login":"0xcaff","id":3277097,"avatar_url":"https://avatars3.githubusercontent.com/u/3277097?v=4","gravatar_id":"","url":"https://api.github.com/users/0xcaff","html_url":"https://github.com/0xcaff","followers_url":"https://api.github.com/users/0xcaff/followers","following_url":"https://api.github.com/users/0xcaff/following{/other_user}","gists_url":"https://api.github.com/users/0xcaff/gists{/gist_id}","starred_url":"https://api.github.com/users/0xcaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xcaff/subscriptions","organizations_url":"https://api.github.com/users/0xcaff/orgs","repos_url":"https://api.github.com/users/0xcaff/repos","events_url":"https://api.github.com/users/0xcaff/events{/privacy}","received_events_url":"https://api.github.com/users/0xcaff/received_events","type":"User","site_admin":false},"body":"Please find a reference for this. None of the other errors do this. I'm not changing them all unless you have a good reason.","created_at":"2018-05-24T23:45:19Z","updated_at":"2018-05-24T23:45:19Z","html_url":"https://github.com/forte-music/core/pull/24#discussion_r190759989","pull_request_url":"https://api.github.com/repos/forte-music/core/pulls/24","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/forte-music/core/pulls/comments/190759989"},"html":{"href":"https://github.com/forte-music/core/pull/24#discussion_r190759989"},"pull_request":{"href":"https://api.github.com/repos/forte-music/core/pulls/24"}},"in_reply_to_id":190746036},"pull_request":{"url":"https://api.github.com/repos/forte-music/core/pulls/24","id":190404375,"html_url":"https://github.com/forte-music/core/pull/24","diff_url":"https://github.com/forte-music/core/pull/24.diff","patch_url":"https://github.com/forte-music/core/pull/24.patch","issue_url":"https://api.github.com/repos/forte-music/core/issues/24","number":24,"state":"open","locked":false,"title":"[WIP] Implemented Initial Sync Engine","user":{"login":"0xcaff","id":3277097,"avatar_url":"https://avatars3.githubusercontent.com/u/3277097?v=4","gravatar_id":"","url":"https://api.github.com/users/0xcaff","html_url":"https://github.com/0xcaff","followers_url":"https://api.github.com/users/0xcaff/followers","following_url":"https://api.github.com/users/0xcaff/following{/other_user}","gists_url":"https://api.github.com/users/0xcaff/gists{/gist_id}","starred_url":"https://api.github.com/users/0xcaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xcaff/subscriptions","organizations_url":"https://api.github.com/users/0xcaff/orgs","repos_url":"https://api.github.com/users/0xcaff/repos","events_url":"https://api.github.com/users/0xcaff/events{/privacy}","received_events_url":"https://api.github.com/users/0xcaff/received_events","type":"User","site_admin":false},"body":"The application can be run with real data now. Also, can stream the music by visiting `Song.streamUrl`.\r\n\r\n![image](https://user-images.githubusercontent.com/3277097/40510635-5791f2a6-5f6b-11e8-9735-c47fdd7184e2.png)\r\n\r\nThings to do:\r\n* [ ] Investigate Why Random Songs In My Collection Fail to Add\r\n* [ ] Use error_chain in server/main.rs\r\n\r\nThings to do later:\r\n* #23\r\n* #21 \r\n* #20 \r\n* #19 \r\n* #18 \r\n\r\nThis PR is getting pretty big and introduces some substantial changes. I'd like to merge it before making too many more changes.\r\n\r\nCloses #16 ","created_at":"2018-05-24T20:03:23Z","updated_at":"2018-05-24T23:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfe7f58c94af7ba44e0eebec4b02a542dd043dcc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/forte-music/core/pulls/24/commits","review_comments_url":"https://api.github.com/repos/forte-music/core/pulls/24/comments","review_comment_url":"https://api.github.com/repos/forte-music/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forte-music/core/issues/24/comments","statuses_url":"https://api.github.com/repos/forte-music/core/statuses/6cb6221e284400765d9b830518c925b910071713","head":{"label":"forte-music:feature/sync-engine","ref":"feature/sync-engine","sha":"6cb6221e284400765d9b830518c925b910071713","user":{"login":"forte-music","id":34557618,"avatar_url":"https://avatars2.githubusercontent.com/u/34557618?v=4","gravatar_id":"","url":"https://api.github.com/users/forte-music","html_url":"https://github.com/forte-music","followers_url":"https://api.github.com/users/forte-music/followers","following_url":"https://api.github.com/users/forte-music/following{/other_user}","gists_url":"https://api.github.com/users/forte-music/gists{/gist_id}","starred_url":"https://api.github.com/users/forte-music/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forte-music/subscriptions","organizations_url":"https://api.github.com/users/forte-music/orgs","repos_url":"https://api.github.com/users/forte-music/repos","events_url":"https://api.github.com/users/forte-music/events{/privacy}","received_events_url":"https://api.github.com/users/forte-music/received_events","type":"Organization","site_admin":false},"repo":{"id":114414614,"name":"core","full_name":"forte-music/core","owner":{"login":"forte-music","id":34557618,"avatar_url":"https://avatars2.githubusercontent.com/u/34557618?v=4","gravatar_id":"","url":"https://api.github.com/users/forte-music","html_url":"https://github.com/forte-music","followers_url":"https://api.github.com/users/forte-music/followers","following_url":"https://api.github.com/users/forte-music/following{/other_user}","gists_url":"https://api.github.com/users/forte-music/gists{/gist_id}","starred_url":"https://api.github.com/users/forte-music/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forte-music/subscriptions","organizations_url":"https://api.github.com/users/forte-music/orgs","repos_url":"https://api.github.com/users/forte-music/repos","events_url":"https://api.github.com/users/forte-music/events{/privacy}","received_events_url":"https://api.github.com/users/forte-music/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forte-music/core","description":"The core backend server for forte.","fork":false,"url":"https://api.github.com/repos/forte-music/core","forks_url":"https://api.github.com/repos/forte-music/core/forks","keys_url":"https://api.github.com/repos/forte-music/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forte-music/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forte-music/core/teams","hooks_url":"https://api.github.com/repos/forte-music/core/hooks","issue_events_url":"https://api.github.com/repos/forte-music/core/issues/events{/number}","events_url":"https://api.github.com/repos/forte-music/core/events","assignees_url":"https://api.github.com/repos/forte-music/core/assignees{/user}","branches_url":"https://api.github.com/repos/forte-music/core/branches{/branch}","tags_url":"https://api.github.com/repos/forte-music/core/tags","blobs_url":"https://api.github.com/repos/forte-music/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forte-music/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forte-music/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/forte-music/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forte-music/core/statuses/{sha}","languages_url":"https://api.github.com/repos/forte-music/core/languages","stargazers_url":"https://api.github.com/repos/forte-music/core/stargazers","contributors_url":"https://api.github.com/repos/forte-music/core/contributors","subscribers_url":"https://api.github.com/repos/forte-music/core/subscribers","subscription_url":"https://api.github.com/repos/forte-music/core/subscription","commits_url":"https://api.github.com/repos/forte-music/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/forte-music/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/forte-music/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/forte-music/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/forte-music/core/contents/{+path}","compare_url":"https://api.github.com/repos/forte-music/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forte-music/core/merges","archive_url":"https://api.github.com/repos/forte-music/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forte-music/core/downloads","issues_url":"https://api.github.com/repos/forte-music/core/issues{/number}","pulls_url":"https://api.github.com/repos/forte-music/core/pulls{/number}","milestones_url":"https://api.github.com/repos/forte-music/core/milestones{/number}","notifications_url":"https://api.github.com/repos/forte-music/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forte-music/core/labels{/name}","releases_url":"https://api.github.com/repos/forte-music/core/releases{/id}","deployments_url":"https://api.github.com/repos/forte-music/core/deployments","created_at":"2017-12-15T22:00:22Z","updated_at":"2018-05-22T02:36:10Z","pushed_at":"2018-05-24T20:03:24Z","git_url":"git://github.com/forte-music/core.git","ssh_url":"git@github.com:forte-music/core.git","clone_url":"https://github.com/forte-music/core.git","svn_url":"https://github.com/forte-music/core","homepage":null,"size":386,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"forte-music:master","ref":"master","sha":"382376fc934afd0f7c3b3316074260ec70a4b387","user":{"login":"forte-music","id":34557618,"avatar_url":"https://avatars2.githubusercontent.com/u/34557618?v=4","gravatar_id":"","url":"https://api.github.com/users/forte-music","html_url":"https://github.com/forte-music","followers_url":"https://api.github.com/users/forte-music/followers","following_url":"https://api.github.com/users/forte-music/following{/other_user}","gists_url":"https://api.github.com/users/forte-music/gists{/gist_id}","starred_url":"https://api.github.com/users/forte-music/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forte-music/subscriptions","organizations_url":"https://api.github.com/users/forte-music/orgs","repos_url":"https://api.github.com/users/forte-music/repos","events_url":"https://api.github.com/users/forte-music/events{/privacy}","received_events_url":"https://api.github.com/users/forte-music/received_events","type":"Organization","site_admin":false},"repo":{"id":114414614,"name":"core","full_name":"forte-music/core","owner":{"login":"forte-music","id":34557618,"avatar_url":"https://avatars2.githubusercontent.com/u/34557618?v=4","gravatar_id":"","url":"https://api.github.com/users/forte-music","html_url":"https://github.com/forte-music","followers_url":"https://api.github.com/users/forte-music/followers","following_url":"https://api.github.com/users/forte-music/following{/other_user}","gists_url":"https://api.github.com/users/forte-music/gists{/gist_id}","starred_url":"https://api.github.com/users/forte-music/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forte-music/subscriptions","organizations_url":"https://api.github.com/users/forte-music/orgs","repos_url":"https://api.github.com/users/forte-music/repos","events_url":"https://api.github.com/users/forte-music/events{/privacy}","received_events_url":"https://api.github.com/users/forte-music/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forte-music/core","description":"The core backend server for forte.","fork":false,"url":"https://api.github.com/repos/forte-music/core","forks_url":"https://api.github.com/repos/forte-music/core/forks","keys_url":"https://api.github.com/repos/forte-music/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forte-music/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forte-music/core/teams","hooks_url":"https://api.github.com/repos/forte-music/core/hooks","issue_events_url":"https://api.github.com/repos/forte-music/core/issues/events{/number}","events_url":"https://api.github.com/repos/forte-music/core/events","assignees_url":"https://api.github.com/repos/forte-music/core/assignees{/user}","branches_url":"https://api.github.com/repos/forte-music/core/branches{/branch}","tags_url":"https://api.github.com/repos/forte-music/core/tags","blobs_url":"https://api.github.com/repos/forte-music/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forte-music/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forte-music/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/forte-music/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forte-music/core/statuses/{sha}","languages_url":"https://api.github.com/repos/forte-music/core/languages","stargazers_url":"https://api.github.com/repos/forte-music/core/stargazers","contributors_url":"https://api.github.com/repos/forte-music/core/contributors","subscribers_url":"https://api.github.com/repos/forte-music/core/subscribers","subscription_url":"https://api.github.com/repos/forte-music/core/subscription","commits_url":"https://api.github.com/repos/forte-music/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/forte-music/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/forte-music/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/forte-music/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/forte-music/core/contents/{+path}","compare_url":"https://api.github.com/repos/forte-music/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forte-music/core/merges","archive_url":"https://api.github.com/repos/forte-music/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forte-music/core/downloads","issues_url":"https://api.github.com/repos/forte-music/core/issues{/number}","pulls_url":"https://api.github.com/repos/forte-music/core/pulls{/number}","milestones_url":"https://api.github.com/repos/forte-music/core/milestones{/number}","notifications_url":"https://api.github.com/repos/forte-music/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forte-music/core/labels{/name}","releases_url":"https://api.github.com/repos/forte-music/core/releases{/id}","deployments_url":"https://api.github.com/repos/forte-music/core/deployments","created_at":"2017-12-15T22:00:22Z","updated_at":"2018-05-22T02:36:10Z","pushed_at":"2018-05-24T20:03:24Z","git_url":"git://github.com/forte-music/core.git","ssh_url":"git@github.com:forte-music/core.git","clone_url":"https://github.com/forte-music/core.git","svn_url":"https://github.com/forte-music/core","homepage":null,"size":386,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forte-music/core/pulls/24"},"html":{"href":"https://github.com/forte-music/core/pull/24"},"issue":{"href":"https://api.github.com/repos/forte-music/core/issues/24"},"comments":{"href":"https://api.github.com/repos/forte-music/core/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/forte-music/core/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/forte-music/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forte-music/core/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/forte-music/core/statuses/6cb6221e284400765d9b830518c925b910071713"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"0xcaff"}}