-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
: Delivery
constraints live on DeliveryArea
#1420
🥗🧹 Marketplace
: Delivery
constraints live on DeliveryArea
#1420
Conversation
2b5efd5
to
fede865
Compare
fede865
to
19fa3a2
Compare
Marketplace
: Delivery
constraints live on DeliveryArea
Marketplace
: Delivery
constraints live on DeliveryArea
19fa3a2
to
83318a4
Compare
1fe029a
to
07cbf20
Compare
83318a4
to
7daecf4
Compare
def initialize(cart:, order_by: cart.marketplace.order_by, | ||
delivery_window: cart.marketplace.delivery_window, **kwargs) | ||
def initialize(cart:, order_by: cart.delivery_area&.order_by, | ||
delivery_window: cart.delivery_area&.delivery_window, **kwargs) |
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.
Is this ever used with a different order_by
and delivery_window
passed in? It feels like this could be tightened to just accept cart
.
Not part of your changes, just thinking out loud.
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.
That would be nice! I don't remember exactly why I had done it this way the first time; but I think it was because I was using component previews or something to test.
7daecf4
to
11f48ef
Compare
Marketplace
:Delivery
#1325Marketplace
:DeliveryArea
#1136Marketplace
:DeliveryConstraint
s #1185Allowing a
Marketplace
to specify it's delivery fees, constraints, etc. and aDeliveryArea
to override them was putting us in a bit of a mess from "how does data even?!"This consolidates everything onto
DeliveryArea
, yay!