{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/comments/229096804","pull_request_review_id":169515604,"id":229096804,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTA5NjgwNA==","diff_hunk":"@@ -61,6 +64,14 @@ func NewPublication(data map[string]rdf.Term) *Publication {\n \t\tdescriptionStr := description.String()\n \t\tpub.Description = &descriptionStr\n \t}\n+\n+\tif date := data[\"created\"]; date != nil {\n+\t\tyearStr := date.String()[0:4]\n+\t\tyearInt, err := strconv.Atoi(yearStr)\n+\t\tif err == nil {\n+\t\t\tpub.CreatedYear = yearInt","path":"models/publication.go","position":26,"original_position":26,"commit_id":"f1ac927e90627ff364f471f55a8172fa3002e0a9","original_commit_id":"f1ac927e90627ff364f471f55a8172fa3002e0a9","user":{"login":"mjgiarlo","id":131982,"node_id":"MDQ6VXNlcjEzMTk4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/131982?v=4","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"body":"Do we want to log anything if there are errors here, or would that be more noise than signal?","created_at":"2018-10-29T21:00:06Z","updated_at":"2018-10-29T21:02:44Z","html_url":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133#discussion_r229096804","pull_request_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/comments/229096804"},"html":{"href":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133#discussion_r229096804"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133","id":226253289,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MjUzMjg5","html_url":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133","diff_url":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133.diff","patch_url":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133.patch","issue_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/133","number":133,"state":"open","locked":false,"title":"Adds created year to publication postgres and solr.","user":{"login":"justinlittman","id":588335,"node_id":"MDQ6VXNlcjU4ODMzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/588335?v=4","gravatar_id":"","url":"https://api.github.com/users/justinlittman","html_url":"https://github.com/justinlittman","followers_url":"https://api.github.com/users/justinlittman/followers","following_url":"https://api.github.com/users/justinlittman/following{/other_user}","gists_url":"https://api.github.com/users/justinlittman/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlittman/subscriptions","organizations_url":"https://api.github.com/users/justinlittman/orgs","repos_url":"https://api.github.com/users/justinlittman/repos","events_url":"https://api.github.com/users/justinlittman/events{/privacy}","received_events_url":"https://api.github.com/users/justinlittman/received_events","type":"User","site_admin":false},"body":"refs #130","created_at":"2018-10-26T23:55:10Z","updated_at":"2018-10-29T21:02:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0aba68411e92496f545d04744d6c9f2670f3ff62","assignee":{"login":"justinlittman","id":588335,"node_id":"MDQ6VXNlcjU4ODMzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/588335?v=4","gravatar_id":"","url":"https://api.github.com/users/justinlittman","html_url":"https://github.com/justinlittman","followers_url":"https://api.github.com/users/justinlittman/followers","following_url":"https://api.github.com/users/justinlittman/following{/other_user}","gists_url":"https://api.github.com/users/justinlittman/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlittman/subscriptions","organizations_url":"https://api.github.com/users/justinlittman/orgs","repos_url":"https://api.github.com/users/justinlittman/repos","events_url":"https://api.github.com/users/justinlittman/events{/privacy}","received_events_url":"https://api.github.com/users/justinlittman/received_events","type":"User","site_admin":false},"assignees":[{"login":"justinlittman","id":588335,"node_id":"MDQ6VXNlcjU4ODMzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/588335?v=4","gravatar_id":"","url":"https://api.github.com/users/justinlittman","html_url":"https://github.com/justinlittman","followers_url":"https://api.github.com/users/justinlittman/followers","following_url":"https://api.github.com/users/justinlittman/following{/other_user}","gists_url":"https://api.github.com/users/justinlittman/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlittman/subscriptions","organizations_url":"https://api.github.com/users/justinlittman/orgs","repos_url":"https://api.github.com/users/justinlittman/repos","events_url":"https://api.github.com/users/justinlittman/events{/privacy}","received_events_url":"https://api.github.com/users/justinlittman/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":971898936,"node_id":"MDU6TGFiZWw5NzE4OTg5MzY=","url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133/commits","review_comments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133/comments","review_comment_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/133/comments","statuses_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/statuses/f1ac927e90627ff364f471f55a8172fa3002e0a9","head":{"label":"sul-dlss-labs:t130-year","ref":"t130-year","sha":"f1ac927e90627ff364f471f55a8172fa3002e0a9","user":{"login":"sul-dlss-labs","id":32909312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA5MzEy","avatar_url":"https://avatars0.githubusercontent.com/u/32909312?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss-labs","html_url":"https://github.com/sul-dlss-labs","followers_url":"https://api.github.com/users/sul-dlss-labs/followers","following_url":"https://api.github.com/users/sul-dlss-labs/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss-labs/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss-labs/orgs","repos_url":"https://api.github.com/users/sul-dlss-labs/repos","events_url":"https://api.github.com/users/sul-dlss-labs/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":138232689,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMzI2ODk=","name":"rialto-derivatives","full_name":"sul-dlss-labs/rialto-derivatives","private":false,"owner":{"login":"sul-dlss-labs","id":32909312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA5MzEy","avatar_url":"https://avatars0.githubusercontent.com/u/32909312?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss-labs","html_url":"https://github.com/sul-dlss-labs","followers_url":"https://api.github.com/users/sul-dlss-labs/followers","following_url":"https://api.github.com/users/sul-dlss-labs/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss-labs/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss-labs/orgs","repos_url":"https://api.github.com/users/sul-dlss-labs/repos","events_url":"https://api.github.com/users/sul-dlss-labs/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sul-dlss-labs/rialto-derivatives","description":"Listens to SNS messages and moves data from Neptune to Solr and Postgres to power the RIALTO webapp","fork":false,"url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives","forks_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/forks","keys_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/teams","hooks_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/events","assignees_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/tags","blobs_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/languages","stargazers_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/subscription","commits_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/merges","archive_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/downloads","issues_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/deployments","created_at":"2018-06-21T23:39:36Z","updated_at":"2018-10-29T13:14:02Z","pushed_at":"2018-10-29T14:57:32Z","git_url":"git://github.com/sul-dlss-labs/rialto-derivatives.git","ssh_url":"git@github.com:sul-dlss-labs/rialto-derivatives.git","clone_url":"https://github.com/sul-dlss-labs/rialto-derivatives.git","svn_url":"https://github.com/sul-dlss-labs/rialto-derivatives","homepage":"","size":252,"stargazers_count":0,"watchers_count":0,"language":"Go","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":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"sul-dlss-labs:master","ref":"master","sha":"db41af9fa728c0c62aa60b74184e4b7b085180db","user":{"login":"sul-dlss-labs","id":32909312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA5MzEy","avatar_url":"https://avatars0.githubusercontent.com/u/32909312?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss-labs","html_url":"https://github.com/sul-dlss-labs","followers_url":"https://api.github.com/users/sul-dlss-labs/followers","following_url":"https://api.github.com/users/sul-dlss-labs/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss-labs/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss-labs/orgs","repos_url":"https://api.github.com/users/sul-dlss-labs/repos","events_url":"https://api.github.com/users/sul-dlss-labs/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":138232689,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMzI2ODk=","name":"rialto-derivatives","full_name":"sul-dlss-labs/rialto-derivatives","private":false,"owner":{"login":"sul-dlss-labs","id":32909312,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTA5MzEy","avatar_url":"https://avatars0.githubusercontent.com/u/32909312?v=4","gravatar_id":"","url":"https://api.github.com/users/sul-dlss-labs","html_url":"https://github.com/sul-dlss-labs","followers_url":"https://api.github.com/users/sul-dlss-labs/followers","following_url":"https://api.github.com/users/sul-dlss-labs/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss-labs/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss-labs/orgs","repos_url":"https://api.github.com/users/sul-dlss-labs/repos","events_url":"https://api.github.com/users/sul-dlss-labs/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sul-dlss-labs/rialto-derivatives","description":"Listens to SNS messages and moves data from Neptune to Solr and Postgres to power the RIALTO webapp","fork":false,"url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives","forks_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/forks","keys_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/teams","hooks_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/events","assignees_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/tags","blobs_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/languages","stargazers_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/subscription","commits_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/merges","archive_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/downloads","issues_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/releases{/id}","deployments_url":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/deployments","created_at":"2018-06-21T23:39:36Z","updated_at":"2018-10-29T13:14:02Z","pushed_at":"2018-10-29T14:57:32Z","git_url":"git://github.com/sul-dlss-labs/rialto-derivatives.git","ssh_url":"git@github.com:sul-dlss-labs/rialto-derivatives.git","clone_url":"https://github.com/sul-dlss-labs/rialto-derivatives.git","svn_url":"https://github.com/sul-dlss-labs/rialto-derivatives","homepage":"","size":252,"stargazers_count":0,"watchers_count":0,"language":"Go","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":10,"license":null,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133"},"html":{"href":"https://github.com/sul-dlss-labs/rialto-derivatives/pull/133"},"issue":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/133"},"comments":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss-labs/rialto-derivatives/statuses/f1ac927e90627ff364f471f55a8172fa3002e0a9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mjgiarlo"}}