{"action":"created","comment":{"url":"https://api.github.com/repos/panter/aoz-003/pulls/comments/138620196","pull_request_review_id":62436514,"id":138620196,"diff_hunk":"@@ -0,0 +1,35 @@\n+require 'acc_utils'\n+\n+class JournalTransform\n+  include AccUtils\n+\n+  def initialize(*accessors)\n+    accessors.each do |accessor|\n+      instance_variable_set(\"@#{accessor.class.name.underscore}\", accessor)\n+    end\n+  end\n+\n+  def prepare_attributes(journal, person, assignment, user_id)\n+    {\n+      body: journal[:m_Text],\n+      journalable_type: person.class.name,\n+      journalable_id: person.id,\n+      assignment_id: assignment&.id,","path":"lib/access_import/journal_transform.rb","position":17,"original_position":17,"commit_id":"7ceedffdb3f6410037a6b016dbd45e36e92b0997","original_commit_id":"7ceedffdb3f6410037a6b016dbd45e36e92b0997","user":{"login":"toupeira","id":6501,"avatar_url":"https://avatars1.githubusercontent.com/u/6501?v=4","gravatar_id":"","url":"https://api.github.com/users/toupeira","html_url":"https://github.com/toupeira","followers_url":"https://api.github.com/users/toupeira/followers","following_url":"https://api.github.com/users/toupeira/following{/other_user}","gists_url":"https://api.github.com/users/toupeira/gists{/gist_id}","starred_url":"https://api.github.com/users/toupeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toupeira/subscriptions","organizations_url":"https://api.github.com/users/toupeira/orgs","repos_url":"https://api.github.com/users/toupeira/repos","events_url":"https://api.github.com/users/toupeira/events{/privacy}","received_events_url":"https://api.github.com/users/toupeira/received_events","type":"User","site_admin":false},"body":"And `assignment: assignment`","created_at":"2017-09-13T13:33:08Z","updated_at":"2017-09-13T13:47:28Z","html_url":"https://github.com/panter/aoz-003/pull/221#discussion_r138620196","pull_request_url":"https://api.github.com/repos/panter/aoz-003/pulls/221","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/comments/138620196"},"html":{"href":"https://github.com/panter/aoz-003/pull/221#discussion_r138620196"},"pull_request":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/221"}}},"pull_request":{"url":"https://api.github.com/repos/panter/aoz-003/pulls/221","id":140661157,"html_url":"https://github.com/panter/aoz-003/pull/221","diff_url":"https://github.com/panter/aoz-003/pull/221.diff","patch_url":"https://github.com/panter/aoz-003/pull/221.patch","issue_url":"https://api.github.com/repos/panter/aoz-003/issues/221","number":221,"state":"open","locked":false,"title":"Import Journals","user":{"login":"casaper","id":5822656,"avatar_url":"https://avatars3.githubusercontent.com/u/5822656?v=4","gravatar_id":"","url":"https://api.github.com/users/casaper","html_url":"https://github.com/casaper","followers_url":"https://api.github.com/users/casaper/followers","following_url":"https://api.github.com/users/casaper/following{/other_user}","gists_url":"https://api.github.com/users/casaper/gists{/gist_id}","starred_url":"https://api.github.com/users/casaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casaper/subscriptions","organizations_url":"https://api.github.com/users/casaper/orgs","repos_url":"https://api.github.com/users/casaper/repos","events_url":"https://api.github.com/users/casaper/events{/privacy}","received_events_url":"https://api.github.com/users/casaper/received_events","type":"User","site_admin":false},"body":"# [Story in Trello](https://trello.com/c/V7AHWKS3/31-2-text-eintr%C3%A4ge-journale-importieren-korrespondenz)\r\n\r\n## Done?\r\n\r\n### Done for approval?\r\n\r\n* [x] Acceptance criteria are met\r\n* [ ] Code quality checks are green\r\n* [ ] ~Readme updated if needed~\r\n* [ ] Story under test\r\n* [ ] ~Mobile works~\r\n* [ ] ~Seeds created~\r\n* [ ] ~Translated~\r\n* [ ] Code is reviewed\r\n\r\n### Done after the merge?\r\n\r\n* [ ] Deployed to staging after the merge\r\n* [ ] Tested manually on staging\r\n","created_at":"2017-09-12T19:15:11Z","updated_at":"2017-09-13T13:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e4e631512c3e5defc587eb27fc7ca307012575f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nuritnt","id":11731325,"avatar_url":"https://avatars3.githubusercontent.com/u/11731325?v=4","gravatar_id":"","url":"https://api.github.com/users/nuritnt","html_url":"https://github.com/nuritnt","followers_url":"https://api.github.com/users/nuritnt/followers","following_url":"https://api.github.com/users/nuritnt/following{/other_user}","gists_url":"https://api.github.com/users/nuritnt/gists{/gist_id}","starred_url":"https://api.github.com/users/nuritnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuritnt/subscriptions","organizations_url":"https://api.github.com/users/nuritnt/orgs","repos_url":"https://api.github.com/users/nuritnt/repos","events_url":"https://api.github.com/users/nuritnt/events{/privacy}","received_events_url":"https://api.github.com/users/nuritnt/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/panter/aoz-003/pulls/221/commits","review_comments_url":"https://api.github.com/repos/panter/aoz-003/pulls/221/comments","review_comment_url":"https://api.github.com/repos/panter/aoz-003/pulls/comments{/number}","comments_url":"https://api.github.com/repos/panter/aoz-003/issues/221/comments","statuses_url":"https://api.github.com/repos/panter/aoz-003/statuses/7ceedffdb3f6410037a6b016dbd45e36e92b0997","head":{"label":"panter:features/import/journals","ref":"features/import/journals","sha":"7ceedffdb3f6410037a6b016dbd45e36e92b0997","user":{"login":"panter","id":157435,"avatar_url":"https://avatars2.githubusercontent.com/u/157435?v=4","gravatar_id":"","url":"https://api.github.com/users/panter","html_url":"https://github.com/panter","followers_url":"https://api.github.com/users/panter/followers","following_url":"https://api.github.com/users/panter/following{/other_user}","gists_url":"https://api.github.com/users/panter/gists{/gist_id}","starred_url":"https://api.github.com/users/panter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panter/subscriptions","organizations_url":"https://api.github.com/users/panter/orgs","repos_url":"https://api.github.com/users/panter/repos","events_url":"https://api.github.com/users/panter/events{/privacy}","received_events_url":"https://api.github.com/users/panter/received_events","type":"Organization","site_admin":false},"repo":{"id":87311463,"name":"aoz-003","full_name":"panter/aoz-003","owner":{"login":"panter","id":157435,"avatar_url":"https://avatars2.githubusercontent.com/u/157435?v=4","gravatar_id":"","url":"https://api.github.com/users/panter","html_url":"https://github.com/panter","followers_url":"https://api.github.com/users/panter/followers","following_url":"https://api.github.com/users/panter/following{/other_user}","gists_url":"https://api.github.com/users/panter/gists{/gist_id}","starred_url":"https://api.github.com/users/panter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panter/subscriptions","organizations_url":"https://api.github.com/users/panter/orgs","repos_url":"https://api.github.com/users/panter/repos","events_url":"https://api.github.com/users/panter/events{/privacy}","received_events_url":"https://api.github.com/users/panter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/panter/aoz-003","description":"AOZ Voluntary platform","fork":false,"url":"https://api.github.com/repos/panter/aoz-003","forks_url":"https://api.github.com/repos/panter/aoz-003/forks","keys_url":"https://api.github.com/repos/panter/aoz-003/keys{/key_id}","collaborators_url":"https://api.github.com/repos/panter/aoz-003/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/panter/aoz-003/teams","hooks_url":"https://api.github.com/repos/panter/aoz-003/hooks","issue_events_url":"https://api.github.com/repos/panter/aoz-003/issues/events{/number}","events_url":"https://api.github.com/repos/panter/aoz-003/events","assignees_url":"https://api.github.com/repos/panter/aoz-003/assignees{/user}","branches_url":"https://api.github.com/repos/panter/aoz-003/branches{/branch}","tags_url":"https://api.github.com/repos/panter/aoz-003/tags","blobs_url":"https://api.github.com/repos/panter/aoz-003/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/panter/aoz-003/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/panter/aoz-003/git/refs{/sha}","trees_url":"https://api.github.com/repos/panter/aoz-003/git/trees{/sha}","statuses_url":"https://api.github.com/repos/panter/aoz-003/statuses/{sha}","languages_url":"https://api.github.com/repos/panter/aoz-003/languages","stargazers_url":"https://api.github.com/repos/panter/aoz-003/stargazers","contributors_url":"https://api.github.com/repos/panter/aoz-003/contributors","subscribers_url":"https://api.github.com/repos/panter/aoz-003/subscribers","subscription_url":"https://api.github.com/repos/panter/aoz-003/subscription","commits_url":"https://api.github.com/repos/panter/aoz-003/commits{/sha}","git_commits_url":"https://api.github.com/repos/panter/aoz-003/git/commits{/sha}","comments_url":"https://api.github.com/repos/panter/aoz-003/comments{/number}","issue_comment_url":"https://api.github.com/repos/panter/aoz-003/issues/comments{/number}","contents_url":"https://api.github.com/repos/panter/aoz-003/contents/{+path}","compare_url":"https://api.github.com/repos/panter/aoz-003/compare/{base}...{head}","merges_url":"https://api.github.com/repos/panter/aoz-003/merges","archive_url":"https://api.github.com/repos/panter/aoz-003/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/panter/aoz-003/downloads","issues_url":"https://api.github.com/repos/panter/aoz-003/issues{/number}","pulls_url":"https://api.github.com/repos/panter/aoz-003/pulls{/number}","milestones_url":"https://api.github.com/repos/panter/aoz-003/milestones{/number}","notifications_url":"https://api.github.com/repos/panter/aoz-003/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/panter/aoz-003/labels{/name}","releases_url":"https://api.github.com/repos/panter/aoz-003/releases{/id}","deployments_url":"https://api.github.com/repos/panter/aoz-003/deployments","created_at":"2017-04-05T13:17:25Z","updated_at":"2017-04-06T07:25:36Z","pushed_at":"2017-09-13T13:46:29Z","git_url":"git://github.com/panter/aoz-003.git","ssh_url":"git@github.com:panter/aoz-003.git","clone_url":"https://github.com/panter/aoz-003.git","svn_url":"https://github.com/panter/aoz-003","homepage":"","size":1559,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"panter:develop","ref":"develop","sha":"59930ec2a7d70324b759b4b5b5a0c7855ba99028","user":{"login":"panter","id":157435,"avatar_url":"https://avatars2.githubusercontent.com/u/157435?v=4","gravatar_id":"","url":"https://api.github.com/users/panter","html_url":"https://github.com/panter","followers_url":"https://api.github.com/users/panter/followers","following_url":"https://api.github.com/users/panter/following{/other_user}","gists_url":"https://api.github.com/users/panter/gists{/gist_id}","starred_url":"https://api.github.com/users/panter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panter/subscriptions","organizations_url":"https://api.github.com/users/panter/orgs","repos_url":"https://api.github.com/users/panter/repos","events_url":"https://api.github.com/users/panter/events{/privacy}","received_events_url":"https://api.github.com/users/panter/received_events","type":"Organization","site_admin":false},"repo":{"id":87311463,"name":"aoz-003","full_name":"panter/aoz-003","owner":{"login":"panter","id":157435,"avatar_url":"https://avatars2.githubusercontent.com/u/157435?v=4","gravatar_id":"","url":"https://api.github.com/users/panter","html_url":"https://github.com/panter","followers_url":"https://api.github.com/users/panter/followers","following_url":"https://api.github.com/users/panter/following{/other_user}","gists_url":"https://api.github.com/users/panter/gists{/gist_id}","starred_url":"https://api.github.com/users/panter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panter/subscriptions","organizations_url":"https://api.github.com/users/panter/orgs","repos_url":"https://api.github.com/users/panter/repos","events_url":"https://api.github.com/users/panter/events{/privacy}","received_events_url":"https://api.github.com/users/panter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/panter/aoz-003","description":"AOZ Voluntary platform","fork":false,"url":"https://api.github.com/repos/panter/aoz-003","forks_url":"https://api.github.com/repos/panter/aoz-003/forks","keys_url":"https://api.github.com/repos/panter/aoz-003/keys{/key_id}","collaborators_url":"https://api.github.com/repos/panter/aoz-003/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/panter/aoz-003/teams","hooks_url":"https://api.github.com/repos/panter/aoz-003/hooks","issue_events_url":"https://api.github.com/repos/panter/aoz-003/issues/events{/number}","events_url":"https://api.github.com/repos/panter/aoz-003/events","assignees_url":"https://api.github.com/repos/panter/aoz-003/assignees{/user}","branches_url":"https://api.github.com/repos/panter/aoz-003/branches{/branch}","tags_url":"https://api.github.com/repos/panter/aoz-003/tags","blobs_url":"https://api.github.com/repos/panter/aoz-003/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/panter/aoz-003/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/panter/aoz-003/git/refs{/sha}","trees_url":"https://api.github.com/repos/panter/aoz-003/git/trees{/sha}","statuses_url":"https://api.github.com/repos/panter/aoz-003/statuses/{sha}","languages_url":"https://api.github.com/repos/panter/aoz-003/languages","stargazers_url":"https://api.github.com/repos/panter/aoz-003/stargazers","contributors_url":"https://api.github.com/repos/panter/aoz-003/contributors","subscribers_url":"https://api.github.com/repos/panter/aoz-003/subscribers","subscription_url":"https://api.github.com/repos/panter/aoz-003/subscription","commits_url":"https://api.github.com/repos/panter/aoz-003/commits{/sha}","git_commits_url":"https://api.github.com/repos/panter/aoz-003/git/commits{/sha}","comments_url":"https://api.github.com/repos/panter/aoz-003/comments{/number}","issue_comment_url":"https://api.github.com/repos/panter/aoz-003/issues/comments{/number}","contents_url":"https://api.github.com/repos/panter/aoz-003/contents/{+path}","compare_url":"https://api.github.com/repos/panter/aoz-003/compare/{base}...{head}","merges_url":"https://api.github.com/repos/panter/aoz-003/merges","archive_url":"https://api.github.com/repos/panter/aoz-003/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/panter/aoz-003/downloads","issues_url":"https://api.github.com/repos/panter/aoz-003/issues{/number}","pulls_url":"https://api.github.com/repos/panter/aoz-003/pulls{/number}","milestones_url":"https://api.github.com/repos/panter/aoz-003/milestones{/number}","notifications_url":"https://api.github.com/repos/panter/aoz-003/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/panter/aoz-003/labels{/name}","releases_url":"https://api.github.com/repos/panter/aoz-003/releases{/id}","deployments_url":"https://api.github.com/repos/panter/aoz-003/deployments","created_at":"2017-04-05T13:17:25Z","updated_at":"2017-04-06T07:25:36Z","pushed_at":"2017-09-13T13:46:29Z","git_url":"git://github.com/panter/aoz-003.git","ssh_url":"git@github.com:panter/aoz-003.git","clone_url":"https://github.com/panter/aoz-003.git","svn_url":"https://github.com/panter/aoz-003","homepage":"","size":1559,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/221"},"html":{"href":"https://github.com/panter/aoz-003/pull/221"},"issue":{"href":"https://api.github.com/repos/panter/aoz-003/issues/221"},"comments":{"href":"https://api.github.com/repos/panter/aoz-003/issues/221/comments"},"review_comments":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/221/comments"},"review_comment":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/panter/aoz-003/pulls/221/commits"},"statuses":{"href":"https://api.github.com/repos/panter/aoz-003/statuses/7ceedffdb3f6410037a6b016dbd45e36e92b0997"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"toupeira"}}