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

chore: AMBER-1316 - artwork imports list page #6475

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Mitch-Henson
Copy link
Contributor

Updates to deal with the changes made in this Gravity PR

Thanks to pairing with @lidimayra to get this over the line

@Mitch-Henson Mitch-Henson requested a review from a team February 27, 2025 14:22
@Mitch-Henson Mitch-Henson self-assigned this Feb 27, 2025
@@ -163,6 +169,12 @@ export const ArtworkImportType = new GraphQLObjectType({
},
}),
resolve: async ({ id, currency }, args, { artworkImportRowsLoader }) => {
if (!artworkImportRowsLoader) {
Copy link
Contributor Author

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.

Copy link
Contributor

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: {
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine!

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.

3 participants