good-idea / sane-shopify

MIT License
212 stars 15 forks source link

Check for drafts document when referencing products to collection #164

Closed liqueflies closed 3 years ago

liqueflies commented 3 years ago

Describe the bug Hello, sometimes when syncing from "Shopify" tab panel, when I have products in the draft (so, it will exist both the drafts.id and the id entries) it will sync two times the product into the collection. I think this incident has not high frequency but happens more than I was expecting.

Expected behavior I think this issue should be resolved excluding the drafts documents in the groq query

Additional context To solve this I had to click the sync button inside the collection. If the product is related to collection both in drafts and non-drafrs, you can't update it cause the draft is synced to the collection and it can't be removed.

liqueflies commented 3 years ago

I have another update: If I sync from collection panel directly the problem is not showing.