-
Notifications
You must be signed in to change notification settings - Fork 152
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
feat(alerts): add artist series to initial criteria for artwork-based alerts #13244
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good! 👍
I've just added a comment about potentially limiting the number of artist series.
src/Apps/Artwork/ArtworkApp.tsx
Outdated
@@ -358,6 +378,13 @@ export const ArtworkAppFragmentContainer = createFragmentContainer( | |||
attributionClass { | |||
internalID | |||
} | |||
artistSeriesConnection(first: 20) { |
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.
I wonder whether it is important and if we should limit the artist series criteria to an overseeable limit to avoid showing up to 20 criteria in the "Create Alert" flow.
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.
Good eye, I didn't pick that number carefully, I just remembered that the max # of series per artwork was 12(!)
The actual distribution looks like this:
The vast majority 94.5% of works in artist series belong to no more than 2 series.
And if we allow up to 5 series, that covers 99.98%. So I think 5 is a good limit here, with the understanding that a tiny handful of works might not reveal all of their series as initial criteria.
The type of this PR is: Feat
This PR solves ONYX-563
Description
Adds the artwork's artist series to the initial inferred criteria for an alert created for an artwork page.