sphereio / sphere-node-sync Goto Github PK
View Code? Open in Web Editor NEWCollection of Sync components for SPHERE.IO entities
License: MIT License
Collection of Sync components for SPHERE.IO entities
License: MIT License
I'm investigating...
The order of variants can be already be vary, but it's not yet considering a switch of variants that include the master variant to be different.
CommonUpdater
and InventoryUpdater
Given I have a product with 3 variants, and I remove the 2nd variant
Then the sync generates one update action for the original 3rd variant to become the 2nd
The current implementation only recognizes price changes.
Following error message is thrown if old and new variant has no images.
Error stack: TypeError: Cannot read property '0' of undefined
... /node_modules/sphere-node-sync/lib/utils/product-utils.js:397:77
Reproducible scenario:
buildActions
should have an optional 3rd argument to provide a list of actions I want to keep and filter out all other actions.
For example only prices actions
sync.buildActions(new_obj, old_obj, ['addPrice', 'removePrice'])
It would be cool to allow eg. to define that I want to diff only prices of my products.
If new product variants does not define variant id then 'addPrice' actions will end up with 400 error from Sphere therefore we should take variant id from old variant object and pass it to 'buildAddPriceAction' function,
here:
https://github.com/sphereio/sphere-node-sync/blob/master/src/coffee/utils/product-utils.coffee#L164
and here:
https://github.com/sphereio/sphere-node-sync/blob/master/src/coffee/utils/product-utils.coffee#L187
when I provide the channel roles in the ensureChannelByKey
function, I would like that existing channels are checked that it has the given roles. And if not the roles are added.
The ProductSync
currently does not support to change an SKU of a variant:
http://commercetools.de/dev/http-api-projects-products.html#set-sku
Problem is the used regex
\d
should be \d+
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.