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

deposits: update 'permissions' action method to better handle exception #2027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lilykos
Copy link
Contributor

@Lilykos Lilykos commented Jan 11, 2021

@Lilykos Lilykos force-pushed the permissions-no-error-msg branch from bf2964b to c94d4de Compare February 1, 2021 10:54


def test_add_permissions_when_permission_doesnt_exist_returns_400(
def test_add_permissions_when_permission_doesnt_exist_returns_201(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's add a test with submitting multiple permissions with one failing to check .rollback

@Lilykos Lilykos force-pushed the permissions-no-error-msg branch from c94d4de to 653f584 Compare February 15, 2021 14:21
@Lilykos Lilykos force-pushed the permissions-no-error-msg branch from 653f584 to db527f9 Compare February 23, 2021 14:47
@Lilykos Lilykos force-pushed the permissions-no-error-msg branch from db527f9 to 3ef338e Compare March 10, 2021 11:47
* refactors the code so that when an action is not possible,
  it fails silently, and the flow doesn't stop
* closes cernanalysispreservation#2023

Signed-off-by: Ilias Koutsakis <[email protected]>
@Lilykos Lilykos force-pushed the permissions-no-error-msg branch from 3ef338e to 22197a7 Compare May 31, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deposits: update 'permissions' action method to better handle exception
2 participants