Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@mzikherman => Only fetch cta_artists if the user is not logged in #2260

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

sweir27
Copy link
Contributor

@sweir27 sweir27 commented Mar 12, 2018

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 will always be false.

@mzikherman
Copy link
Contributor

Wow, really nice! Thankssss 🐍

@mzikherman mzikherman merged commit f3b9e50 into artsy:master Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants