-
Notifications
You must be signed in to change notification settings - Fork 89
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
chore: AMBER-1316 - artwork imports list page #6475
base: main
Are you sure you want to change the base?
Conversation
@@ -163,6 +169,12 @@ export const ArtworkImportType = new GraphQLObjectType({ | |||
}, | |||
}), | |||
resolve: async ({ id, currency }, args, { artworkImportRowsLoader }) => { | |||
if (!artworkImportRowsLoader) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to get around this @mzikherman. Would love to hear your thoughts! Had to use thunk to get the date and this then caused the loader to potentially be undefined
causing this code. I don't think this should ever happen because this is already authorized territory but couldn't fix this in another way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine!
...InternalIDFields, | ||
columns: { | ||
type: new GraphQLNonNull(GraphQLList(new GraphQLNonNull(GraphQLString))), | ||
description: | ||
"Columns to display for an import, will exist in a row's `transformedData`", | ||
}, | ||
createdAt: date(), | ||
createdBy: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't match the created_by
in the Gravity PR - https://github.com/artsy/gravity/pull/18639 - where this is a User
.
@@ -163,6 +169,12 @@ export const ArtworkImportType = new GraphQLObjectType({ | |||
}, | |||
}), | |||
resolve: async ({ id, currency }, args, { artworkImportRowsLoader }) => { | |||
if (!artworkImportRowsLoader) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine!
Updates to deal with the changes made in this Gravity PR
Thanks to pairing with @lidimayra to get this over the line