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

Refactor consign pages to use artworksConnection and add realized / estimate price multiplier to /consign recently sold artworks #6775

Merged
merged 4 commits into from
Dec 14, 2020

Conversation

williardx
Copy link
Contributor

@williardx williardx commented Dec 8, 2020

https://artsyproduct.atlassian.net/browse/GRO-54
Related Metaphysics PR: artsy/metaphysics#2871

Problem

We want to show users the value of consigning on Artsy by showing positive outcomes for works sold on Artsy. To do this, we want to show the ratio of the realized price to the estimate for a work.

Solution

Add realizedToEstimate field on the Artwork type in Metaphysics and then display in Force.

As part of this work we refactored the ArtistTargetSupplyMicrofunnel type and related code in Metaphysics to only use artworksConnection instead of a separate artworks field. This PR continues that refactor and converts existing views that rely on artworks to only use artworksConnection.

Release strategy

This change is tightly coupled to changes in Metaphysics and will result in a small amount of downtime for consign pages while we roll out both services.

Screenshots

Screen Shot 2020-12-10 at 4 33 57 PM

Screen Shot 2020-12-10 at 4 34 20 PM

@williardx williardx marked this pull request as draft December 8, 2020 23:09
@artsy-peril
Copy link
Contributor

artsy-peril bot commented Dec 8, 2020

Fails
🚫 Please add a description to your PR.

Generated by 🚫 dangerJS against 9a4dbb0

@williardx williardx changed the title [WIP] Refactor consign pages and add realized price / low estimate multiplier Refactor consign pages to use artworksConnection and add realized / estimate price multiplier to /consign recently sold artworks Dec 11, 2020
Copy link
Member

@damassi damassi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@williardx williardx marked this pull request as ready for review December 14, 2020 15:42
@williardx williardx merged commit dfff757 into master Dec 14, 2020
@williardx williardx deleted the will/GRO-54 branch December 14, 2020 15:43
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