-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Marketplace] Feature - getShopId server side #2435
Conversation
* Modifies Shops publication to return all shops with matching domain by removing limit * Rewrite of shop selector dropdown * Use Shops publication instead of SellerShops publication in dropdown * Remove requirement for marketplace ownership to see shop selector * Change Reaction.ShopId when shop selector is changed * TODO: Convert shop selector to React
* Eliminates console warnings
…etShopId now checks for user selected shop
@lcampanis You may want to review this as well as this is the point where we're starting to move away from some of the I still like the idea of using the concept of "my shop" or sellerShop for some functionality, but at the core I think we need more flexibility from the |
Closing in favor of #2429 which has these changes and more pulled in |
Please review and merge #2429 if it has not been merged yet first. Creating separate PRs and branches here even though they build off of each other to keep concerns separated.
This PR accomplishes the following
Reaction.setUserPreference
Reaction.getUserPreference
that permits us to retrieve user preferences on the serverReaction.getShopId
on the server to accept a userId param and return the users activeShopId if it's setThis PR should be reviewed in depth for security vulnerabilities