-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: Remove editing role invites #7240
Conversation
app/api/role_invites.py
Outdated
@@ -4,7 +4,7 @@ | |||
|
|||
from app.api.bootstrap import api | |||
from app.api.helpers.db import save_to_db | |||
from app.api.helpers.errors import ForbiddenError, NotFoundError, UnprocessableEntityError | |||
from app.api.helpers.errors import ConflictError, ForbiddenError, NotFoundError, UnprocessableEntityError |
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.
'app.api.helpers.errors.UnprocessableEntityError' imported but unused
Black would make changes.
line too long (105 > 90 characters)
This pull request introduces 1 alert when merging 4d97d60 into 3a3e4d1 - view on LGTM.com new alerts:
|
app/api/role_invites.py
Outdated
{'source': ''}, "You can only change your status" | ||
if role_invite.status == 'accepted': | ||
raise ConflictError( | ||
{'source': ''}, 'You cannot delete an accepted role invite.' |
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.
{'source': ''}, 'You cannot delete an accepted role invite.' | |
{'pointer': '/data/status'}, 'You cannot delete an accepted role invite.' |
Codecov Report
@@ Coverage Diff @@
## development #7240 +/- ##
===============================================
+ Coverage 63.02% 63.09% +0.06%
===============================================
Files 259 259
Lines 13034 13022 -12
===============================================
+ Hits 8215 8216 +1
+ Misses 4819 4806 -13
Continue to review full report at Codecov.
|
Fixes #7235
Short description of what this resolves:
Since editing role invites on the dashboard, doesn't cause any change in the backend, so removes the option of editing role invites and deleting accepted role invites.
Checklist
development
branch.