-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add endpoints for bulk deletes. #602
Add endpoints for bulk deletes. #602
Conversation
Just off the top of my head, could there be any issues with partial success? As it currently is, it seems that if we are halfway through deletion process and we encounter an error, the status returned will be an error, while in reality it was a partial success. I'm not sure what a good solution might be, or if it's even worth the effort, but I'd probably go through the whole list and gather errors, and then return the list of errors to the client. Maybe an overkill in this case if the client doesn't make any use of the response |
@Senyoret1 please check this PR and whether it does work for you. Maybe you have some preference for how to handle partial completion of bulk deletes. |
Right now it responds with answers like these:
|
@i-hate-nicknames good suggestion. Thank you. I have implemented it. Would you mind reviewing the pull request again? |
I tested the changes and found some things:
|
@Senyoret1 thank you very much for your important suggestions. I have improved error handling and added requests to check if we have that transport or route before deleting. I think it more consistent right now. Would you mind testing it again and tell if it meets your expectations? |
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.
Great, I think it is working well now 👍. Thank you
Did you run
make format && make check
?Fixes #500
Changes:
How to test this PR: