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

Bulk update mutation tweaks #4277

Merged
merged 4 commits into from
Aug 5, 2022
Merged

Conversation

lilyfromseattle
Copy link
Contributor

@ansor4 and I made some tweaks to the bulk update mutation to simplify the structure and make the naming more consistent. If this looks all good to you I can continue with my front end changes once its merged and released! If there are any issues or questions we can discuss at the sync I scheduled for tomorrow morning.

@ansor4
Copy link
Member

ansor4 commented Aug 3, 2022

Just a note on that peril warning above ☝️ since volt is the only consumer of these fields, this should be a-ok

Copy link
Contributor

@Mitch-Henson Mitch-Henson left a comment

Choose a reason for hiding this comment

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

The naming changes look much better than what I came up with and are really nicely standardised. I think there needs to be some small changes relating to the gravity response but otherwise looks great

Comment on lines +3208 to +3211
type BulkUpdatePartnerArtworksResponse {
count: Int
ids: [String]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't errors also be here? It is a part of the response and we seem to be using it in the formattedReturn


const formattedReturn = {
updatedPartnerArtworks: { count: gravityResponse.success, ids: [] },
skippedPartnerArtworks: gravityResponse.errors,
Copy link
Member

Choose a reason for hiding this comment

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

@lilyfromseattle maybe let's be explicit here so future devs don't have to go digging into the gravity response format

skippedPartnerArtworks: { count: gravityResponse.errors.count, ids: gravityResponse.errors.ids }

@ansor4 ansor4 dismissed Mitch-Henson’s stale review August 5, 2022 18:13

Currently blocking merging, which we need to unblock Lily's Volt work!

@ansor4 ansor4 merged commit 6c7b63c into main Aug 5, 2022
@ansor4 ansor4 deleted the lilyfromseattle/bulk-update-tweaks branch August 5, 2022 18:14
@artsy-peril artsy-peril bot mentioned this pull request Aug 5, 2022
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.

None yet

3 participants