These are chat archives for reactioncommerce/reaction

6th
Feb 2015
Aaron Judd
@aaronjudd
Feb 06 2015 00:00
maybe we should just be attaching shopId as roles to the user, you would then only need to pass a role->shopId, or an array of ids to the subscription
Everest Liu
@evliu
Feb 06 2015 00:00
are shopIds are just the shops they have purchased from?
Aaron Judd
@aaronjudd
Feb 06 2015 00:02
you could then attack the customer issue by adding a shopid into the profile / addressbook entries, (or) attaching the customer schema from there
Everest Liu
@evliu
Feb 06 2015 00:05
i’m kind of lost when you say to attach the shopId as a role to the user, since it’s not really a role, right? just a shop that the customer has purchased from before?
Aaron Judd
@aaronjudd
Feb 06 2015 00:05
re: roles -> shopId could be just what they’ve purchased from or also used a “mall” like filter (map subdomains to a shop for instance, and just see that shop)
three cases:
1) you see all products from all shops
2) you see only a single shops products, but there are many shops in reaction
3) user specific access to shops (club pages, wholesale,etc)
Aaron Judd
@aaronjudd
Feb 06 2015 00:14
so you could define roles that restricted access in the publication to these requirements. If shopId is in the user/address/customer record, then you also filter the user records by current shopId
Everest Liu
@evliu
Feb 06 2015 00:19
ahh i c
Aaron Judd
@aaronjudd
Feb 06 2015 00:22
you could also require a unique user per shop, attaching a filter to users collection
which would probably be the default “view” that reaction now has
Everest Liu
@evliu
Feb 06 2015 00:24
yea, but we’re going for more etsy, so one customer for all shops
Aaron Judd
@aaronjudd
Feb 06 2015 00:26
understood, I think they’re all part of the same
Everest Liu
@evliu
Feb 06 2015 00:29
alright
lovetostrike
@lovetostrike
Feb 06 2015 02:12
@aaronjudd just for reference, I stumbled upon this: aldeed/meteor-autoform#333
Seems like this issue hasn't been resolved yet, I tested the nested Schema object in chrome and it worked
Aaron Judd
@aaronjudd
Feb 06 2015 03:16
ah yeah, I've been keeping my eye on that @aldeed any updates?