{"action":"opened","number":772,"pull_request":{"url":"https://api.github.com/repos/artsy/positron/pulls/772","id":77035081,"html_url":"https://github.com/artsy/positron/pull/772","diff_url":"https://github.com/artsy/positron/pull/772.diff","patch_url":"https://github.com/artsy/positron/pull/772.patch","issue_url":"https://api.github.com/repos/artsy/positron/issues/772","number":772,"state":"open","locked":false,"title":"@craigspaeth User restructure (do not merge)","user":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"body":"This is definitely not ready to merge yet (more tests and edge cases). When ready, I'll hit merge around July 18, test on staging for the day, and deploy to production on July 19.\r\n\r\nCloses https://github.com/artsy/positron/issues/743\r\n\r\nIn browsing Writer, you'll now have a `current_channel` field which keeps track of the channel you are logged into.\r\n\r\n### New Features\r\n**Channel switching** -- instead of impersonating a user, you are now granted access to channels via http://writer.artsy.net/settings/channels or http://admin.artsy.net for partner access. Admins will be able to see all partner channels.\r\n**Default publishing for Partners** -- when publishing in a partner channel, your post will automatically be added to the Partner's profile page.\r\n**User refreshing** -- an outdated user will refresh itself in the DB and ask a user to log in again.\r\n**Author renaming** -- instead of changing the ownership of an article, the author can be renamed.\r\n**Unauthorized error page** -- a user who isn't part of a channel, partner, or admin will see a 403 page.\r\n","created_at":"2016-07-11T22:38:52Z","updated_at":"2016-07-11T22:38:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/positron/pulls/772/commits","review_comments_url":"https://api.github.com/repos/artsy/positron/pulls/772/comments","review_comment_url":"https://api.github.com/repos/artsy/positron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/positron/issues/772/comments","statuses_url":"https://api.github.com/repos/artsy/positron/statuses/7a4226e10c625509d1aef020812c2a88a8d74a66","head":{"label":"kanaabe:switch2channels","ref":"switch2channels","sha":"7a4226e10c625509d1aef020812c2a88a8d74a66","user":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"repo":{"id":31676927,"name":"positron","full_name":"kanaabe/positron","owner":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kanaabe/positron","description":"Otherwise known as Artsy Writer. The back-end posting tool for publishing articles on Artsy.","fork":true,"url":"https://api.github.com/repos/kanaabe/positron","forks_url":"https://api.github.com/repos/kanaabe/positron/forks","keys_url":"https://api.github.com/repos/kanaabe/positron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kanaabe/positron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kanaabe/positron/teams","hooks_url":"https://api.github.com/repos/kanaabe/positron/hooks","issue_events_url":"https://api.github.com/repos/kanaabe/positron/issues/events{/number}","events_url":"https://api.github.com/repos/kanaabe/positron/events","assignees_url":"https://api.github.com/repos/kanaabe/positron/assignees{/user}","branches_url":"https://api.github.com/repos/kanaabe/positron/branches{/branch}","tags_url":"https://api.github.com/repos/kanaabe/positron/tags","blobs_url":"https://api.github.com/repos/kanaabe/positron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kanaabe/positron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kanaabe/positron/git/refs{/sha}","trees_url":"https://api.github.com/repos/kanaabe/positron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kanaabe/positron/statuses/{sha}","languages_url":"https://api.github.com/repos/kanaabe/positron/languages","stargazers_url":"https://api.github.com/repos/kanaabe/positron/stargazers","contributors_url":"https://api.github.com/repos/kanaabe/positron/contributors","subscribers_url":"https://api.github.com/repos/kanaabe/positron/subscribers","subscription_url":"https://api.github.com/repos/kanaabe/positron/subscription","commits_url":"https://api.github.com/repos/kanaabe/positron/commits{/sha}","git_commits_url":"https://api.github.com/repos/kanaabe/positron/git/commits{/sha}","comments_url":"https://api.github.com/repos/kanaabe/positron/comments{/number}","issue_comment_url":"https://api.github.com/repos/kanaabe/positron/issues/comments{/number}","contents_url":"https://api.github.com/repos/kanaabe/positron/contents/{+path}","compare_url":"https://api.github.com/repos/kanaabe/positron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kanaabe/positron/merges","archive_url":"https://api.github.com/repos/kanaabe/positron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kanaabe/positron/downloads","issues_url":"https://api.github.com/repos/kanaabe/positron/issues{/number}","pulls_url":"https://api.github.com/repos/kanaabe/positron/pulls{/number}","milestones_url":"https://api.github.com/repos/kanaabe/positron/milestones{/number}","notifications_url":"https://api.github.com/repos/kanaabe/positron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kanaabe/positron/labels{/name}","releases_url":"https://api.github.com/repos/kanaabe/positron/releases{/id}","deployments_url":"https://api.github.com/repos/kanaabe/positron/deployments","created_at":"2015-03-04T19:57:46Z","updated_at":"2016-03-08T18:13:02Z","pushed_at":"2016-07-11T22:25:12Z","git_url":"git://github.com/kanaabe/positron.git","ssh_url":"git@github.com:kanaabe/positron.git","clone_url":"https://github.com/kanaabe/positron.git","svn_url":"https://github.com/kanaabe/positron","homepage":"","size":2966,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"5035a2587f457fb1080255009fc17393133b92ba","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":23808195,"name":"positron","full_name":"artsy/positron","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/positron","description":"Positron is Artsy Writer or the editorial tool for Artsy.","fork":false,"url":"https://api.github.com/repos/artsy/positron","forks_url":"https://api.github.com/repos/artsy/positron/forks","keys_url":"https://api.github.com/repos/artsy/positron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/positron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/positron/teams","hooks_url":"https://api.github.com/repos/artsy/positron/hooks","issue_events_url":"https://api.github.com/repos/artsy/positron/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/positron/events","assignees_url":"https://api.github.com/repos/artsy/positron/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/positron/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/positron/tags","blobs_url":"https://api.github.com/repos/artsy/positron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/positron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/positron/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/positron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/positron/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/positron/languages","stargazers_url":"https://api.github.com/repos/artsy/positron/stargazers","contributors_url":"https://api.github.com/repos/artsy/positron/contributors","subscribers_url":"https://api.github.com/repos/artsy/positron/subscribers","subscription_url":"https://api.github.com/repos/artsy/positron/subscription","commits_url":"https://api.github.com/repos/artsy/positron/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/positron/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/positron/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/positron/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/positron/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/positron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/positron/merges","archive_url":"https://api.github.com/repos/artsy/positron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/positron/downloads","issues_url":"https://api.github.com/repos/artsy/positron/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/positron/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/positron/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/positron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/positron/labels{/name}","releases_url":"https://api.github.com/repos/artsy/positron/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/positron/deployments","created_at":"2014-09-08T21:02:13Z","updated_at":"2016-04-29T08:34:43Z","pushed_at":"2016-07-11T22:38:52Z","git_url":"git://github.com/artsy/positron.git","ssh_url":"git@github.com:artsy/positron.git","clone_url":"https://github.com/artsy/positron.git","svn_url":"https://github.com/artsy/positron","homepage":"","size":2949,"stargazers_count":13,"watchers_count":13,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":95,"forks":16,"open_issues":95,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/positron/pulls/772"},"html":{"href":"https://github.com/artsy/positron/pull/772"},"issue":{"href":"https://api.github.com/repos/artsy/positron/issues/772"},"comments":{"href":"https://api.github.com/repos/artsy/positron/issues/772/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/positron/pulls/772/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/positron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/positron/pulls/772/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/positron/statuses/7a4226e10c625509d1aef020812c2a88a8d74a66"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":785,"deletions":379,"changed_files":45}}
{"actor":{"display_login":"kanaabe"}}