{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/35035862","id":35035862,"diff_hunk":"@@ -203,6 +204,21 @@ def create_waterbutler_log(payload, **kwargs):\n     node = kwargs['node'] or kwargs['project']\n \n     if action in (NodeLog.FILE_MOVED, NodeLog.FILE_COPIED):\n+        dest = payload['destination']","path":"website/addons/base/views.py","position":12,"original_position":12,"commit_id":"dead6ce2936e02bda4b54937adf2230b5a107f64","original_commit_id":"dead6ce2936e02bda4b54937adf2230b5a107f64","user":{"login":"chrisseto","id":5532905,"avatar_url":"https://avatars.githubusercontent.com/u/5532905?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisseto","html_url":"https://github.com/chrisseto","followers_url":"https://api.github.com/users/chrisseto/followers","following_url":"https://api.github.com/users/chrisseto/following{/other_user}","gists_url":"https://api.github.com/users/chrisseto/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisseto/subscriptions","organizations_url":"https://api.github.com/users/chrisseto/orgs","repos_url":"https://api.github.com/users/chrisseto/repos","events_url":"https://api.github.com/users/chrisseto/events{/privacy}","received_events_url":"https://api.github.com/users/chrisseto/received_events","type":"User","site_admin":false},"body":"This block should be after line 225, 222-225 is validating that all the correct fields exist.","created_at":"2015-07-20T19:50:12Z","updated_at":"2015-07-20T19:50:12Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3024#discussion_r35035862","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/35035862"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/3024#discussion_r35035862"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024","id":37277394,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/3024","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/3024.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/3024.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3024","number":3024,"state":"open","locked":false,"title":"[Feature Fix] Fixed activity logging when files are renamed","user":{"login":"revanthkolli","id":11021396,"avatar_url":"https://avatars.githubusercontent.com/u/11021396?v=3","gravatar_id":"","url":"https://api.github.com/users/revanthkolli","html_url":"https://github.com/revanthkolli","followers_url":"https://api.github.com/users/revanthkolli/followers","following_url":"https://api.github.com/users/revanthkolli/following{/other_user}","gists_url":"https://api.github.com/users/revanthkolli/gists{/gist_id}","starred_url":"https://api.github.com/users/revanthkolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revanthkolli/subscriptions","organizations_url":"https://api.github.com/users/revanthkolli/orgs","repos_url":"https://api.github.com/users/revanthkolli/repos","events_url":"https://api.github.com/users/revanthkolli/events{/privacy}","received_events_url":"https://api.github.com/users/revanthkolli/received_events","type":"User","site_admin":false},"body":"# Purpose\r\nRegarding Issue #2846, fixes logging so that the log says files are renamed instead of moved when they are renamed. \r\n\r\n# Changes\r\nAdded fields to NodeLog, a script to log_templates.mako and modified the create_waterbutler_log() function to identify and handle renames accordingly. \r\n\r\n# Side Effects\r\nChecked that this fix didn't affect the logs for when files are moved etc. ","created_at":"2015-06-09T17:18:22Z","updated_at":"2015-07-20T19:50:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7080ad0f6686a8472be6c64250344205d9039ea4","assignee":{"login":"lyndsysimon","id":131414,"avatar_url":"https://avatars.githubusercontent.com/u/131414?v=3","gravatar_id":"","url":"https://api.github.com/users/lyndsysimon","html_url":"https://github.com/lyndsysimon","followers_url":"https://api.github.com/users/lyndsysimon/followers","following_url":"https://api.github.com/users/lyndsysimon/following{/other_user}","gists_url":"https://api.github.com/users/lyndsysimon/gists{/gist_id}","starred_url":"https://api.github.com/users/lyndsysimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyndsysimon/subscriptions","organizations_url":"https://api.github.com/users/lyndsysimon/orgs","repos_url":"https://api.github.com/users/lyndsysimon/repos","events_url":"https://api.github.com/users/lyndsysimon/events{/privacy}","received_events_url":"https://api.github.com/users/lyndsysimon/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/42","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/0.43.0","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/42/labels","id":1182936,"number":42,"title":"0.43.0","description":"","creator":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":56,"state":"open","created_at":"2015-06-26T17:20:14Z","updated_at":"2015-07-20T19:07:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3024/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/dead6ce2936e02bda4b54937adf2230b5a107f64","head":{"label":"revanthkolli:issue2846","ref":"issue2846","sha":"dead6ce2936e02bda4b54937adf2230b5a107f64","user":{"login":"revanthkolli","id":11021396,"avatar_url":"https://avatars.githubusercontent.com/u/11021396?v=3","gravatar_id":"","url":"https://api.github.com/users/revanthkolli","html_url":"https://github.com/revanthkolli","followers_url":"https://api.github.com/users/revanthkolli/followers","following_url":"https://api.github.com/users/revanthkolli/following{/other_user}","gists_url":"https://api.github.com/users/revanthkolli/gists{/gist_id}","starred_url":"https://api.github.com/users/revanthkolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revanthkolli/subscriptions","organizations_url":"https://api.github.com/users/revanthkolli/orgs","repos_url":"https://api.github.com/users/revanthkolli/repos","events_url":"https://api.github.com/users/revanthkolli/events{/privacy}","received_events_url":"https://api.github.com/users/revanthkolli/received_events","type":"User","site_admin":false},"repo":{"id":36506172,"name":"osf.io","full_name":"revanthkolli/osf.io","owner":{"login":"revanthkolli","id":11021396,"avatar_url":"https://avatars.githubusercontent.com/u/11021396?v=3","gravatar_id":"","url":"https://api.github.com/users/revanthkolli","html_url":"https://github.com/revanthkolli","followers_url":"https://api.github.com/users/revanthkolli/followers","following_url":"https://api.github.com/users/revanthkolli/following{/other_user}","gists_url":"https://api.github.com/users/revanthkolli/gists{/gist_id}","starred_url":"https://api.github.com/users/revanthkolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revanthkolli/subscriptions","organizations_url":"https://api.github.com/users/revanthkolli/orgs","repos_url":"https://api.github.com/users/revanthkolli/repos","events_url":"https://api.github.com/users/revanthkolli/events{/privacy}","received_events_url":"https://api.github.com/users/revanthkolli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/revanthkolli/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/revanthkolli/osf.io","forks_url":"https://api.github.com/repos/revanthkolli/osf.io/forks","keys_url":"https://api.github.com/repos/revanthkolli/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/revanthkolli/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/revanthkolli/osf.io/teams","hooks_url":"https://api.github.com/repos/revanthkolli/osf.io/hooks","issue_events_url":"https://api.github.com/repos/revanthkolli/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/revanthkolli/osf.io/events","assignees_url":"https://api.github.com/repos/revanthkolli/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/revanthkolli/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/revanthkolli/osf.io/tags","blobs_url":"https://api.github.com/repos/revanthkolli/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/revanthkolli/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/revanthkolli/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/revanthkolli/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/revanthkolli/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/revanthkolli/osf.io/languages","stargazers_url":"https://api.github.com/repos/revanthkolli/osf.io/stargazers","contributors_url":"https://api.github.com/repos/revanthkolli/osf.io/contributors","subscribers_url":"https://api.github.com/repos/revanthkolli/osf.io/subscribers","subscription_url":"https://api.github.com/repos/revanthkolli/osf.io/subscription","commits_url":"https://api.github.com/repos/revanthkolli/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/revanthkolli/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/revanthkolli/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/revanthkolli/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/revanthkolli/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/revanthkolli/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/revanthkolli/osf.io/merges","archive_url":"https://api.github.com/repos/revanthkolli/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/revanthkolli/osf.io/downloads","issues_url":"https://api.github.com/repos/revanthkolli/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/revanthkolli/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/revanthkolli/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/revanthkolli/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/revanthkolli/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/revanthkolli/osf.io/releases{/id}","created_at":"2015-05-29T13:32:39Z","updated_at":"2015-05-29T13:32:43Z","pushed_at":"2015-07-15T14:19:18Z","git_url":"git://github.com/revanthkolli/osf.io.git","ssh_url":"git@github.com:revanthkolli/osf.io.git","clone_url":"https://github.com/revanthkolli/osf.io.git","svn_url":"https://github.com/revanthkolli/osf.io","homepage":"http://osf.io","size":96476,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"e482c3a8eea0b6629cada1cea20fb0b5d6c4dd0a","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-07-15T15:30:36Z","pushed_at":"2015-07-20T19:36:37Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":217068,"stargazers_count":119,"watchers_count":119,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":555,"forks":104,"open_issues":555,"watchers":119,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/3024"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3024"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3024/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/3024/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/dead6ce2936e02bda4b54937adf2230b5a107f64"}}}}