Skip to content
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

Merged
merged 3 commits into from
Nov 14, 2020

Conversation

mansiag
Copy link
Contributor

@mansiag mansiag commented Sep 3, 2020

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

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@@ -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

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)

@mansiag mansiag changed the title Role invite Fix: Remove editing Role Invites Sep 3, 2020
@mansiag mansiag changed the title Fix: Remove editing Role Invites Fix: Remove editing role invites Sep 3, 2020
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Sep 3, 2020

This pull request introduces 1 alert when merging 4d97d60 into 3a3e4d1 - view on LGTM.com

new alerts:

  • 1 for Unused import

{'source': ''}, "You can only change your status"
if role_invite.status == 'accepted':
raise ConflictError(
{'source': ''}, 'You cannot delete an accepted role invite.'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{'source': ''}, 'You cannot delete an accepted role invite.'
{'pointer': '/data/status'}, 'You cannot delete an accepted role invite.'

@codecov
Copy link

codecov bot commented Sep 3, 2020

Codecov Report

Merging #7240 into development will increase coverage by 0.06%.
The diff coverage is 60.00%.

Impacted file tree graph

@@               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     
Impacted Files Coverage Δ
app/api/role_invites.py 48.00% <60.00%> (+6.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a3e4d1...42fd3e4. Read the comment docs.

@iamareebjamal iamareebjamal changed the title Fix: Remove editing role invites fix: Remove editing role invites Nov 14, 2020
@auto-label auto-label bot added the fix label Nov 14, 2020
@iamareebjamal iamareebjamal merged commit 28a0c03 into fossasia:development Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disconnected role invites and actual role
4 participants