Skip to content

Remove from cart mutation#109

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

Remove from cart mutation#109
ChristianRimondi merged 2 commits intomasterfrom
remove_from_cart_mutation

Conversation

@ChristianRimondi
Copy link
Copy Markdown
Contributor

@ChristianRimondi ChristianRimondi commented May 15, 2020

Add a mutation to remove a variant from the cart. It accepts the line_item id as inputs, and remove it from 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 May 15, 2020
@ChristianRimondi ChristianRimondi marked this pull request as ready for review May 22, 2020 08:20
@ChristianRimondi ChristianRimondi force-pushed the remove_from_cart_mutation branch from 8ed9e2e to d58bfb4 Compare May 22, 2020 08:22
The mutation accepts the line_item id as input, and remove it from 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

@rainerdema rainerdema 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 83b7210 into master May 22, 2020
@ChristianRimondi ChristianRimondi deleted the remove_from_cart_mutation branch May 22, 2020 15:17
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