{"action":"closed","number":2260,"pull_request":{"url":"https://api.github.com/repos/artsy/force/pulls/2260","id":174502585,"html_url":"https://github.com/artsy/force/pull/2260","diff_url":"https://github.com/artsy/force/pull/2260.diff","patch_url":"https://github.com/artsy/force/pull/2260.patch","issue_url":"https://api.github.com/repos/artsy/force/issues/2260","number":2260,"state":"closed","locked":false,"title":"@mzikherman => Only fetch cta_artists if the user is not logged in","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"body":"Tiny optimization here-- we actually make three separate calls to the `related/artists` endpoint (client-side) on the overview artist page. This PR removes one of those by no longer fetching the `cta_artists` if the user is logged in, since in that case I believe [this variable](https://github.com/artsy/force/blob/master/src/desktop/apps/artist/routes.coffee#L49) will always be false.","created_at":"2018-03-12T21:40:37Z","updated_at":"2018-03-13T02:40:33Z","closed_at":"2018-03-13T02:40:33Z","merged_at":"2018-03-13T02:40:33Z","merge_commit_sha":"f3b9e50d8f6ea0cef49bc17e0a2dbedfe82a45a1","assignee":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"assignees":[{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/force/pulls/2260/commits","review_comments_url":"https://api.github.com/repos/artsy/force/pulls/2260/comments","review_comment_url":"https://api.github.com/repos/artsy/force/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/force/issues/2260/comments","statuses_url":"https://api.github.com/repos/artsy/force/statuses/7e38daa835afe274c791ebfe73d46fce60c1042f","head":{"label":"sweir27:artist-page-optimizations","ref":"artist-page-optimizations","sha":"7e38daa835afe274c791ebfe73d46fce60c1042f","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"repo":{"id":66878220,"name":"force","full_name":"sweir27/force","owner":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars3.githubusercontent.com/u/2081340?v=4","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sweir27/force","description":"The Artsy.net website:","fork":true,"url":"https://api.github.com/repos/sweir27/force","forks_url":"https://api.github.com/repos/sweir27/force/forks","keys_url":"https://api.github.com/repos/sweir27/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweir27/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweir27/force/teams","hooks_url":"https://api.github.com/repos/sweir27/force/hooks","issue_events_url":"https://api.github.com/repos/sweir27/force/issues/events{/number}","events_url":"https://api.github.com/repos/sweir27/force/events","assignees_url":"https://api.github.com/repos/sweir27/force/assignees{/user}","branches_url":"https://api.github.com/repos/sweir27/force/branches{/branch}","tags_url":"https://api.github.com/repos/sweir27/force/tags","blobs_url":"https://api.github.com/repos/sweir27/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweir27/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweir27/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweir27/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweir27/force/statuses/{sha}","languages_url":"https://api.github.com/repos/sweir27/force/languages","stargazers_url":"https://api.github.com/repos/sweir27/force/stargazers","contributors_url":"https://api.github.com/repos/sweir27/force/contributors","subscribers_url":"https://api.github.com/repos/sweir27/force/subscribers","subscription_url":"https://api.github.com/repos/sweir27/force/subscription","commits_url":"https://api.github.com/repos/sweir27/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweir27/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweir27/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweir27/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweir27/force/contents/{+path}","compare_url":"https://api.github.com/repos/sweir27/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweir27/force/merges","archive_url":"https://api.github.com/repos/sweir27/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweir27/force/downloads","issues_url":"https://api.github.com/repos/sweir27/force/issues{/number}","pulls_url":"https://api.github.com/repos/sweir27/force/pulls{/number}","milestones_url":"https://api.github.com/repos/sweir27/force/milestones{/number}","notifications_url":"https://api.github.com/repos/sweir27/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweir27/force/labels{/name}","releases_url":"https://api.github.com/repos/sweir27/force/releases{/id}","deployments_url":"https://api.github.com/repos/sweir27/force/deployments","created_at":"2016-08-29T20:30:24Z","updated_at":"2016-08-29T20:30:28Z","pushed_at":"2018-03-12T21:27:45Z","git_url":"git://github.com/sweir27/force.git","ssh_url":"git@github.com:sweir27/force.git","clone_url":"https://github.com/sweir27/force.git","svn_url":"https://github.com/sweir27/force","homepage":"https://www.artsy.net","size":126290,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"d71057b26eae4d8c31209c532c02d1cb7bf92ff9","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","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":22887404,"name":"force","full_name":"artsy/force","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","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/force","description":"The Artsy.net website:","fork":false,"url":"https://api.github.com/repos/artsy/force","forks_url":"https://api.github.com/repos/artsy/force/forks","keys_url":"https://api.github.com/repos/artsy/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/force/teams","hooks_url":"https://api.github.com/repos/artsy/force/hooks","issue_events_url":"https://api.github.com/repos/artsy/force/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/force/events","assignees_url":"https://api.github.com/repos/artsy/force/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/force/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/force/tags","blobs_url":"https://api.github.com/repos/artsy/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/force/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/force/languages","stargazers_url":"https://api.github.com/repos/artsy/force/stargazers","contributors_url":"https://api.github.com/repos/artsy/force/contributors","subscribers_url":"https://api.github.com/repos/artsy/force/subscribers","subscription_url":"https://api.github.com/repos/artsy/force/subscription","commits_url":"https://api.github.com/repos/artsy/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/force/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/force/merges","archive_url":"https://api.github.com/repos/artsy/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/force/downloads","issues_url":"https://api.github.com/repos/artsy/force/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/force/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/force/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/force/labels{/name}","releases_url":"https://api.github.com/repos/artsy/force/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/force/deployments","created_at":"2014-08-12T18:14:34Z","updated_at":"2018-03-12T21:58:44Z","pushed_at":"2018-03-13T02:40:33Z","git_url":"git://github.com/artsy/force.git","ssh_url":"git@github.com:artsy/force.git","clone_url":"https://github.com/artsy/force.git","svn_url":"https://github.com/artsy/force","homepage":"https://www.artsy.net","size":126536,"stargazers_count":212,"watchers_count":212,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":79,"open_issues":130,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/2260"},"html":{"href":"https://github.com/artsy/force/pull/2260"},"issue":{"href":"https://api.github.com/repos/artsy/force/issues/2260"},"comments":{"href":"https://api.github.com/repos/artsy/force/issues/2260/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/force/pulls/2260/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/force/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/force/pulls/2260/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/force/statuses/7e38daa835afe274c791ebfe73d46fce60c1042f"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":57,"deletions":3,"changed_files":4}}
{"actor":{"display_login":"mzikherman"}}