-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix delete
removes user even if another context is using it
#837
Conversation
I added a check to make sure that we don't delete a user or a cluster that is in use by another context than the one getting deleted. I also added a unit test that deletes a context that references a user that is referenced within another context. Signed-off-by: Yarden Shoham <git@yardenshoham.com>
The Label Bot has predicted the following:
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #837 +/- ##
==========================================
+ Coverage 18.62% 19.18% +0.56%
==========================================
Files 20 20
Lines 2201 2220 +19
==========================================
+ Hits 410 426 +16
- Misses 1752 1754 +2
- Partials 39 40 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks a lot ! I will finish the Review as soon as possible |
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.
🎉 LGTM, Thanks for your contribute !
@all-contributors please add @yardenshoham for test. |
I've put up a pull request to add @yardenshoham! 🎉 |
I added a check to make sure that we don't delete a user or a cluster that is in use by another context than the one getting deleted.
I also added a unit test that deletes a context that references a user that is referenced within another context.