Skip to content

Add removeFromAddressBook mutation#85

Merged
AlessioRocco merged 2 commits intomasterfrom
remove-from-address-book-mutation
Mar 13, 2020
Merged

Add removeFromAddressBook mutation#85
AlessioRocco merged 2 commits intomasterfrom
remove-from-address-book-mutation

Conversation

@AlessioRocco
Copy link
Copy Markdown
Contributor

@AlessioRocco AlessioRocco commented Mar 6, 2020

The mutation accepts an address id as input and remove the address from the current user address book.

@AlessioRocco AlessioRocco self-assigned this Mar 6, 2020
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch 2 times, most recently from a4fb936 to 1725a96 Compare March 13, 2020 10:08
@AlessioRocco AlessioRocco changed the base branch from master to save-in-address-book March 13, 2020 10:08
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch from 1725a96 to aaa5f6e Compare March 13, 2020 11:05
@AlessioRocco AlessioRocco changed the title Add remove from address book mutation Add removeFromAddressBook mutation Mar 13, 2020
@AlessioRocco AlessioRocco added the enhancement New feature or request label Mar 13, 2020
@AlessioRocco AlessioRocco linked an issue Mar 13, 2020 that may be closed by this pull request
3 tasks
@AlessioRocco AlessioRocco added this to the User Management milestone Mar 13, 2020
@AlessioRocco AlessioRocco force-pushed the save-in-address-book branch from aceba5e to 43f54f3 Compare March 13, 2020 12:04
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch 2 times, most recently from 657b982 to 8566fce Compare March 13, 2020 12:18
@AlessioRocco AlessioRocco force-pushed the save-in-address-book branch 5 times, most recently from a32ef01 to 885ff42 Compare March 13, 2020 15:09
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch from 8566fce to 015018e Compare March 13, 2020 15:27
@AlessioRocco AlessioRocco changed the base branch from save-in-address-book to master March 13, 2020 15:27
@AlessioRocco AlessioRocco marked this pull request as ready for review March 13, 2020 15:27
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch from 015018e to 42113f3 Compare March 13, 2020 15:29
The mutation accepts an address id as input and removes the address from
the current user address book.

The raises of the CanCan::AccessDenied exception is needed because
Solidus lacks some CanCanCan authorization rules and, in this case,
the rule that is missing is the one needed to authorize the address
deletion.
Using command "bundle exec rake schema:idl"
@AlessioRocco AlessioRocco force-pushed the remove-from-address-book-mutation branch from 42113f3 to 8540db9 Compare March 13, 2020 15:33
Copy link
Copy Markdown
Contributor

@ChristianRimondi ChristianRimondi left a comment

Choose a reason for hiding this comment

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

🎉

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.

👍

@AlessioRocco AlessioRocco merged commit 334806a into master Mar 13, 2020
@AlessioRocco AlessioRocco deleted the remove-from-address-book-mutation branch March 13, 2020 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AddressBook Mutations

3 participants