{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/comments/78207567","id":78207567,"diff_hunk":"@@ -72,6 +79,16 @@ class HmdaFileValidator(submissionId: String) extends HmdaPersistentActor with L\n       val validationStarted = ValidationStarted(submissionId)\n       publishEvent(validationStarted)\n       events(parserPersistenceId)\n+        .filter(x => x.isInstanceOf[TsParsed])\n+        .map(e => e.asInstanceOf[TsParsed].ts)\n+        .map(ts => validateTs(ts, ctx).toEither)\n+        .map {\n+          case Right(ts) => ts\n+          case Left(errors) => ValidationErrors(errors.list.toList)\n+        }\n+        .runWith(Sink.actorRef(self, NotUsed))","path":"persistence/src/main/scala/hmda/persistence/processing/HmdaFileValidator.scala","position":74,"original_position":74,"commit_id":"03965473a2c4f1690dd12759edd92fe1379f55d9","original_commit_id":"03965473a2c4f1690dd12759edd92fe1379f55d9","user":{"login":"nickgrippin","id":19194939,"avatar_url":"https://avatars.githubusercontent.com/u/19194939?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgrippin","html_url":"https://github.com/nickgrippin","followers_url":"https://api.github.com/users/nickgrippin/followers","following_url":"https://api.github.com/users/nickgrippin/following{/other_user}","gists_url":"https://api.github.com/users/nickgrippin/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgrippin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgrippin/subscriptions","organizations_url":"https://api.github.com/users/nickgrippin/orgs","repos_url":"https://api.github.com/users/nickgrippin/repos","events_url":"https://api.github.com/users/nickgrippin/events{/privacy}","received_events_url":"https://api.github.com/users/nickgrippin/received_events","type":"User","site_admin":false},"body":"So, I think this line points the outcome of this Flow at itself (it will send itself all the messages coming out, so `ts` will be sent right back here and be caught by `receiveCommand` case further down for the type `TransmittalSheet`).  The `NotUsed` isn't what the actor is listening for, it's the event the actor sends when the Sink has been completed.","created_at":"2016-09-09T16:17:02Z","updated_at":"2016-09-09T16:17:02Z","html_url":"https://github.com/cfpb/hmda-platform/pull/560#discussion_r78207567","pull_request_url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560","_links":{"self":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/comments/78207567"},"html":{"href":"https://github.com/cfpb/hmda-platform/pull/560#discussion_r78207567"},"pull_request":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560","id":84535670,"html_url":"https://github.com/cfpb/hmda-platform/pull/560","diff_url":"https://github.com/cfpb/hmda-platform/pull/560.diff","patch_url":"https://github.com/cfpb/hmda-platform/pull/560.patch","issue_url":"https://api.github.com/repos/cfpb/hmda-platform/issues/560","number":560,"state":"open","locked":false,"title":"Validate and persist TS","user":{"login":"nickgrippin","id":19194939,"avatar_url":"https://avatars.githubusercontent.com/u/19194939?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgrippin","html_url":"https://github.com/nickgrippin","followers_url":"https://api.github.com/users/nickgrippin/followers","following_url":"https://api.github.com/users/nickgrippin/following{/other_user}","gists_url":"https://api.github.com/users/nickgrippin/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgrippin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgrippin/subscriptions","organizations_url":"https://api.github.com/users/nickgrippin/orgs","repos_url":"https://api.github.com/users/nickgrippin/repos","events_url":"https://api.github.com/users/nickgrippin/events{/privacy}","received_events_url":"https://api.github.com/users/nickgrippin/received_events","type":"User","site_admin":false},"body":"Closes #542 ","created_at":"2016-09-08T19:09:09Z","updated_at":"2016-09-09T16:17:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5312e4b11638def9a9355b1f8a45adff319beca8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560/commits","review_comments_url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560/comments","review_comment_url":"https://api.github.com/repos/cfpb/hmda-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cfpb/hmda-platform/issues/560/comments","statuses_url":"https://api.github.com/repos/cfpb/hmda-platform/statuses/03965473a2c4f1690dd12759edd92fe1379f55d9","head":{"label":"nickgrippin:validate-persist-ts","ref":"validate-persist-ts","sha":"03965473a2c4f1690dd12759edd92fe1379f55d9","user":{"login":"nickgrippin","id":19194939,"avatar_url":"https://avatars.githubusercontent.com/u/19194939?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgrippin","html_url":"https://github.com/nickgrippin","followers_url":"https://api.github.com/users/nickgrippin/followers","following_url":"https://api.github.com/users/nickgrippin/following{/other_user}","gists_url":"https://api.github.com/users/nickgrippin/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgrippin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgrippin/subscriptions","organizations_url":"https://api.github.com/users/nickgrippin/orgs","repos_url":"https://api.github.com/users/nickgrippin/repos","events_url":"https://api.github.com/users/nickgrippin/events{/privacy}","received_events_url":"https://api.github.com/users/nickgrippin/received_events","type":"User","site_admin":false},"repo":{"id":58931407,"name":"hmda-platform","full_name":"nickgrippin/hmda-platform","owner":{"login":"nickgrippin","id":19194939,"avatar_url":"https://avatars.githubusercontent.com/u/19194939?v=3","gravatar_id":"","url":"https://api.github.com/users/nickgrippin","html_url":"https://github.com/nickgrippin","followers_url":"https://api.github.com/users/nickgrippin/followers","following_url":"https://api.github.com/users/nickgrippin/following{/other_user}","gists_url":"https://api.github.com/users/nickgrippin/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgrippin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgrippin/subscriptions","organizations_url":"https://api.github.com/users/nickgrippin/orgs","repos_url":"https://api.github.com/users/nickgrippin/repos","events_url":"https://api.github.com/users/nickgrippin/events{/privacy}","received_events_url":"https://api.github.com/users/nickgrippin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickgrippin/hmda-platform","description":"","fork":true,"url":"https://api.github.com/repos/nickgrippin/hmda-platform","forks_url":"https://api.github.com/repos/nickgrippin/hmda-platform/forks","keys_url":"https://api.github.com/repos/nickgrippin/hmda-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickgrippin/hmda-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickgrippin/hmda-platform/teams","hooks_url":"https://api.github.com/repos/nickgrippin/hmda-platform/hooks","issue_events_url":"https://api.github.com/repos/nickgrippin/hmda-platform/issues/events{/number}","events_url":"https://api.github.com/repos/nickgrippin/hmda-platform/events","assignees_url":"https://api.github.com/repos/nickgrippin/hmda-platform/assignees{/user}","branches_url":"https://api.github.com/repos/nickgrippin/hmda-platform/branches{/branch}","tags_url":"https://api.github.com/repos/nickgrippin/hmda-platform/tags","blobs_url":"https://api.github.com/repos/nickgrippin/hmda-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickgrippin/hmda-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickgrippin/hmda-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickgrippin/hmda-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickgrippin/hmda-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/nickgrippin/hmda-platform/languages","stargazers_url":"https://api.github.com/repos/nickgrippin/hmda-platform/stargazers","contributors_url":"https://api.github.com/repos/nickgrippin/hmda-platform/contributors","subscribers_url":"https://api.github.com/repos/nickgrippin/hmda-platform/subscribers","subscription_url":"https://api.github.com/repos/nickgrippin/hmda-platform/subscription","commits_url":"https://api.github.com/repos/nickgrippin/hmda-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickgrippin/hmda-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickgrippin/hmda-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickgrippin/hmda-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickgrippin/hmda-platform/contents/{+path}","compare_url":"https://api.github.com/repos/nickgrippin/hmda-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickgrippin/hmda-platform/merges","archive_url":"https://api.github.com/repos/nickgrippin/hmda-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickgrippin/hmda-platform/downloads","issues_url":"https://api.github.com/repos/nickgrippin/hmda-platform/issues{/number}","pulls_url":"https://api.github.com/repos/nickgrippin/hmda-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/nickgrippin/hmda-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/nickgrippin/hmda-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickgrippin/hmda-platform/labels{/name}","releases_url":"https://api.github.com/repos/nickgrippin/hmda-platform/releases{/id}","deployments_url":"https://api.github.com/repos/nickgrippin/hmda-platform/deployments","created_at":"2016-05-16T12:40:57Z","updated_at":"2016-05-16T12:41:00Z","pushed_at":"2016-09-09T15:12:37Z","git_url":"git://github.com/nickgrippin/hmda-platform.git","ssh_url":"git@github.com:nickgrippin/hmda-platform.git","clone_url":"https://github.com/nickgrippin/hmda-platform.git","svn_url":"https://github.com/nickgrippin/hmda-platform","homepage":"","size":4839,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"cfpb:master","ref":"master","sha":"576761e57dee90d365eef126c353d968fd37c78b","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":50141662,"name":"hmda-platform","full_name":"cfpb/hmda-platform","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/hmda-platform","description":"","fork":false,"url":"https://api.github.com/repos/cfpb/hmda-platform","forks_url":"https://api.github.com/repos/cfpb/hmda-platform/forks","keys_url":"https://api.github.com/repos/cfpb/hmda-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/hmda-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/hmda-platform/teams","hooks_url":"https://api.github.com/repos/cfpb/hmda-platform/hooks","issue_events_url":"https://api.github.com/repos/cfpb/hmda-platform/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/hmda-platform/events","assignees_url":"https://api.github.com/repos/cfpb/hmda-platform/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/hmda-platform/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/hmda-platform/tags","blobs_url":"https://api.github.com/repos/cfpb/hmda-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/hmda-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/hmda-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/hmda-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/hmda-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/hmda-platform/languages","stargazers_url":"https://api.github.com/repos/cfpb/hmda-platform/stargazers","contributors_url":"https://api.github.com/repos/cfpb/hmda-platform/contributors","subscribers_url":"https://api.github.com/repos/cfpb/hmda-platform/subscribers","subscription_url":"https://api.github.com/repos/cfpb/hmda-platform/subscription","commits_url":"https://api.github.com/repos/cfpb/hmda-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/hmda-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/hmda-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/hmda-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfpb/hmda-platform/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/hmda-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/hmda-platform/merges","archive_url":"https://api.github.com/repos/cfpb/hmda-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/hmda-platform/downloads","issues_url":"https://api.github.com/repos/cfpb/hmda-platform/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/hmda-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/hmda-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/hmda-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/hmda-platform/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/hmda-platform/releases{/id}","deployments_url":"https://api.github.com/repos/cfpb/hmda-platform/deployments","created_at":"2016-01-21T22:39:17Z","updated_at":"2016-08-03T19:57:25Z","pushed_at":"2016-09-09T15:31:19Z","git_url":"git://github.com/cfpb/hmda-platform.git","ssh_url":"git@github.com:cfpb/hmda-platform.git","clone_url":"https://github.com/cfpb/hmda-platform.git","svn_url":"https://github.com/cfpb/hmda-platform","homepage":"","size":6401,"stargazers_count":5,"watchers_count":5,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":109,"forks":10,"open_issues":109,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560"},"html":{"href":"https://github.com/cfpb/hmda-platform/pull/560"},"issue":{"href":"https://api.github.com/repos/cfpb/hmda-platform/issues/560"},"comments":{"href":"https://api.github.com/repos/cfpb/hmda-platform/issues/560/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cfpb/hmda-platform/pulls/560/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/hmda-platform/statuses/03965473a2c4f1690dd12759edd92fe1379f55d9"}}}}
{"actor":{"display_login":"nickgrippin"}}