Reaction: Move inventory data out of Product and into it's own collection

Created on 8 Apr 2019  路  4Comments  路  Source: reactioncommerce/reaction

Having inventory on product causes problems for trying to update it as it requires that an entire product be published just to update inventory.

It should be its own standalone collection

Most helpful comment

I would love to see this happen ASAP! Product the product collection runs hot. Inventory is a frequently changing field and doesn't need to be entangled with the entire product record.

All 4 comments

I agree that we should separate Inventory from Product (which contains mostly product information data). I think doing this is a significant change that should allocate time for designing the architecture and understanding the current and future requirements we'll have for inventory systems.

I would love to see this happen ASAP! Product the product collection runs hot. Inventory is a frequently changing field and doesn't need to be entangled with the entire product record.

I think moving the data from being on the product to being in it's own collection is a good first step that doesn't block any implementations in the future and would be a relatively simple change with a big gain in server load. GraphQL resolvers really free us up here...

Not only should it be in its own collection, but inventory figures should be returned by their own plugin IMO. Just like it's done with simple-pricing, allowing anyone to skip Reaction's inventory management and fetch that data from an ERP.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janus-reith picture janus-reith  路  4Comments

zikeji picture zikeji  路  4Comments

spencern picture spencern  路  3Comments

spencern picture spencern  路  3Comments

nnnnat picture nnnnat  路  4Comments