-
Notifications
You must be signed in to change notification settings - Fork 9
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
confirm group membership ending #767
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #767 +/- ##
===========================================
+ Coverage 87.61% 87.69% +0.07%
===========================================
Files 277 275 -2
Lines 17115 16954 -161
===========================================
- Hits 14995 14867 -128
+ Misses 2120 2087 -33 ☔ View full report in Codecov by Sentry. |
@bp.route("/<int:user_id>/end_membership/<int:membership_id>", methods=["GET", "POST"]) | ||
@access.require("groups_change_membership") | ||
def end_membership(user_id: int, membership_id: int) -> ResponseReturnValue: |
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.
Please add frontend tests for this.
This is not hard, just look at the existing ones.
Hit me up if you have any questions!
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 addition!
Did not test it live, but the changes are trivial enough that frontend tests should verify the correct behavior.
1684e52
to
03c1b8e
Compare
03c1b8e
to
9b6316b
Compare
Currently, when you click on the 'End membership' button on a group (intended or accidentally), the group membership is ended without any confirmation, leading to possible unwanted situations.
This PR implements a simple confirmation form before performing the actual ending operation.