issues
search
good-idea
/
sane-shopify
MIT License
212
stars
15
forks
source link
Use Sanity to create a queue & log of sync operations
#173
Open
good-idea
opened
3 years ago
good-idea
commented
3 years ago
sync-utils
[ ] Create a singleton "SaneShopify" document
[ ] Add an
operations
array
[ ] Pushed to the queue
[ ] A sane-shopify instance (on the server or in the dashboard) "claims" the top item on the queue and processes it
[ ] Updates the state/progress of that sync every 1 second or so
[ ] Find a way to detect aborted/incomplete syncs (if a ping doesn't happen every 1s? What if there is only one service active and it fails?)
[ ] Record linked documents in the operation object (to use the operations list as a log of syncs)
[ ] add a
lastSyncedAt
date field to products & collections
server
[ ] Create webhook that looks at the queue (to allow for cron jobs to pick up aborted syncs)
shopify-plugin
[ ] Display a list of current syncs in the Desk Tool
[ ] Update the icon when a sync is in progress
[ ] If a sync is active and a manual sync is made, show its status as "pending"
[ ] Highlight any errored syncs and allow for retry
[ ] Add a
debug
mode that prints log messages to an overlay (so people don't need to use dev tools if they aren't familiar)
sync-utils
operations
arraylastSyncedAt
date field to products & collectionsserver
shopify-plugin
debug
mode that prints log messages to an overlay (so people don't need to use dev tools if they aren't familiar)