Skip to content

Add to cart mutation#93

Merged
ChristianRimondi merged 2 commits intomasterfrom
add_to_cart_mutation
May 22, 2020
Merged

Add to cart mutation#93
ChristianRimondi merged 2 commits intomasterfrom
add_to_cart_mutation

Conversation

@ChristianRimondi
Copy link
Copy Markdown
Contributor

@ChristianRimondi ChristianRimondi commented Apr 3, 2020

Add a mutation to add a variant to the cart. It accepts the variant id and the quantity as inputs, and adds them to the current order.

It raises a CanCan::AccessDenied exception in case the current ability can't update the current order.

@ChristianRimondi ChristianRimondi self-assigned this Apr 3, 2020
@ChristianRimondi ChristianRimondi force-pushed the add_to_cart_mutation branch 3 times, most recently from 8701279 to 330b837 Compare May 15, 2020 15:15
@ChristianRimondi ChristianRimondi marked this pull request as ready for review May 22, 2020 08:20
Copy link
Copy Markdown
Contributor

@AlessioRocco AlessioRocco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@AlessioRocco AlessioRocco self-requested a review May 22, 2020 10:19
The mutation accepts the variant id and the quantity as inputs, and adds
them to the current order.

It raises a CanCan::AccessDenied exception in case the current ability
can't update the current order.
Using command "bundle exec rake schema:idl"
Copy link
Copy Markdown
Contributor

@AlessioRocco AlessioRocco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ChristianRimondi ChristianRimondi merged commit b4646ca into master May 22, 2020
@ChristianRimondi ChristianRimondi deleted the add_to_cart_mutation branch May 22, 2020 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants