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

new task: fire custom event or product/variant change #300

Merged

Conversation

tekhaus
Copy link
Collaborator

@tekhaus tekhaus commented Nov 21, 2023

Expanded version of #187 to include product attributes as well. To handle this in an efficient manner, a decision was made to use the GraphQL representation of products and variants instead of using chained lookups of REST resources. Also, switched to using a hashed snapshot of the values and storing them in the cache for performance reasons, which also avoids firing a another product update event by updating a metafield.

This precludes the ability to monitor metafields, among other things, but as a demo task it covers a good deal of the available data on those resources.

@tekhaus tekhaus merged commit 86beaba into lightward:main Nov 21, 2023
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant