{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/8184","repository_url":"https://api.github.com/repos/CenterForOpenScience/osf.io","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/8184/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/8184/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/8184/events","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/8184","id":298748002,"number":8184,"title":"[PLAT-218][Needs WB PR] Use WB download action callbacks to tally preprint views","user":{"login":"Johnetordoff","id":9688518,"avatar_url":"https://avatars3.githubusercontent.com/u/9688518?v=4","gravatar_id":"","url":"https://api.github.com/users/Johnetordoff","html_url":"https://github.com/Johnetordoff","followers_url":"https://api.github.com/users/Johnetordoff/followers","following_url":"https://api.github.com/users/Johnetordoff/following{/other_user}","gists_url":"https://api.github.com/users/Johnetordoff/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnetordoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnetordoff/subscriptions","organizations_url":"https://api.github.com/users/Johnetordoff/orgs","repos_url":"https://api.github.com/users/Johnetordoff/repos","events_url":"https://api.github.com/users/Johnetordoff/events{/privacy}","received_events_url":"https://api.github.com/users/Johnetordoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T21:05:12Z","updated_at":"2018-04-25T16:48:03Z","closed_at":"2018-04-23T16:48:57Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/8184","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/8184","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/8184.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/8184.patch"},"body":"## Purpose\r\n\r\nWe want to use addons.base.views.create_waterbutler_log to tally preprint views, this allows us to do that.\r\n\r\n**Remember this is for views, not downloads, and only views from non-contributors.**\r\n\r\n## Changes\r\n\r\n- remove update_analitics from osfstorage_download function\r\n- Change log behavior to increment download_counts during waterbutler callback.\r\n- Add tests.\r\n\r\n## QA Notes\r\n\r\nYou will have to run the migrations and check via the shell as there's nothing user facing in this PR. Also remember contributor downloads don't count in the total.\r\n\r\n## Side Effects\r\n\r\nNone that I know of.\r\n\r\n## Ticket\r\n\r\nhttps://openscience.atlassian.net/browse/PLAT-218\r\nTicket with more discussion info:\r\nhttps://openscience.atlassian.net/browse/PLAT-388\r\nWaterbutler PR:\r\nhttps://github.com/CenterForOpenScience/waterbutler/pull/324\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/384355641","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/8184#issuecomment-384355641","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/8184","id":384355641,"user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars2.githubusercontent.com/u/2379650?v=4","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},"created_at":"2018-04-25T16:48:03Z","updated_at":"2018-04-25T16:48:03Z","author_association":"OWNER","body":"Merged this into the wrong branch 2 days ago, so I reverted this and then reverted the revert on next-next-platform. tl;dr This is on `release/next-next-platform` now."}}
{"actor":{"display_login":"sloria"}}