These are chat archives for reactioncommerce/reaction

31st
Jul 2017
Nick Baldwin
@nbaldwin
Jul 31 2017 16:25
What's the current best practice for organizing containers and components in plugins? I see some included plugins are putting everything inside client but some are top-level, such as product-variant (presumably for server-side rendering?) perhaps lib is a better place for them?
Daniel Pinna
@danielsouzapinna
Jul 31 2017 19:47
Hello guys, is there anything that makes paging results within Reaction? Currently my layout is using Blaze. Thank you!
rhaix
@rhaix
Jul 31 2017 20:13
@zenweasel I'm having trouble with Admin logging in(it crashes) on a reaction instance, I'm not sure but I think it's related to the amount of products that were added, there's about 12,000 documents in the database and about 1,000 are products. Is there something I can do to make the admin page responsive again?
rhaix
@rhaix
Jul 31 2017 20:41
@jshimko any ideas?
Spencer Norman
@spencern
Jul 31 2017 21:02
@rhaix - it may be due to revision control. I just finished building a Shopify importer and it would freeze everything up if the products weren’t published
but I was able to add 7k products fairly quickly after that got sorted
Spencer Norman
@spencern
Jul 31 2017 21:08

I don’t have time to dig in too deep, but you can checkout the source for the shopify importer here: https://github.com/reactioncommerce/reaction/blob/marketplace/imports/plugins/included/connectors-shopify/server/methods/shopifyConnect.js

I also made a couple changes that haven’t been merged into dev yet that skip the revision control step for products and images that are being imported.

Those changes were made in the revisions plugin in the hooks.js file - you can see the changes here:

https://github.com/reactioncommerce/reaction/commit/f096714a62af61d4fa253681d72f33d2c9ba477b#diff-6bf29141f2cb7084036beaa645965bcdR173

If it’s related to too many revisions that should help you.