-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
: VendorRepresentative
manages Products
#2181
Conversation
|
||
belongs_to :marketplace, inverse_of: :vendor_representatives | ||
has_one :room, through: :marketplace | ||
belongs_to :person |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Record creation is failing because this is not optional. Observed this while playing with the branch locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird; I was able to create a VendorRepresentative
through the UI...
I'll add a spec/marketplace/system/vendor_representatives_system_spec.rb
and a bit more tests tonight before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly as written now this class requires to be associated to a person
to be valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, adding the spec caused it to fail until I put this in... Now I'm wondering why I could do it last night...
@zspencer just want to confirm that a vendor rep must be claimed before they actually have any write access to products etc... right? I think that workflow makes sense. Also a Person is generally created through an invitation to membership, right? |
- #2044 OK this should probably be split into a number of smaller steps, each with reasonable test coverage; but I wanted to get something working so we can turn the keys over to the folks at Oaklandia. This makes it so: - A `Neighborhood` `Operator` or `Space` `Member` can add a `VendorRepresentative` to a `Marketplace` - The `VendorRepresentative` can add, remove, and update `Products` YOLO YOLO YOLO
dcc6e68
to
1768518
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is fine if it gets the job done.
I'm a bit confused about the intended workflow here. So the marketplace owner adds an owner representative, then talks to them to set up an account, then goes back to the marketplace and "claims" them, is that the intended flow?
Why not do something simpler, where a VendorRepresentative is just a bridge between a marketplace and a person, and the Marketplace owner can add it by selecting from a list of People who are members of the Space? (and if the person they want to add is not a member, they can send an invitation, making that person a member, right?)
- #2044 Testings good, actually
Right now, being a
I wanted to figure out a way to link it directly and not have to do this awkward handshake; but I couldn't come up with a way to do it without pushing the |
Yes, a A |
Marketplace
: VendorRepresentative
manages Products
Marketplace
: VendorRepresentative
manages Products
Marketplace
:Vendor
#2044Marketplace
: Selling 🥡Products
#1324OK this should probably be split into a number of smaller steps, each with reasonable test coverage; but I wanted to get something working so we can turn the keys over to the folks at Oaklandia.
This makes it so:
Neighborhood
Operator
orSpace
Member
can add aVendorRepresentative
to aMarketplace
VendorRepresentative
can add, remove, and updateProducts
YOLO YOLO YOLO