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

Error occuring when users are attempting to approve multiple accounts if those accounts are a mix of new and existing accounts #76

Open
tbock opened this issue Nov 30, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@tbock
Copy link
Collaborator

tbock commented Nov 30, 2020

I believe this is the error encountered by Chris Wharton but need to investigate further to fully reproduce.

@tbock tbock added the bug Something isn't working label Nov 30, 2020
@tbock
Copy link
Collaborator Author

tbock commented Feb 12, 2021

@tommckennon please replicate the issue first and let me know. Maybe we should use our own Portal to replicate this?

@tommckennon
Copy link
Contributor

@tbock , I take it this is a bug within the v1/account/approvals/approve api call. First thought about this bug is that the user shouldn't be able to make this call for existing accounts, correct? It looks like logic has been in place to prevent such an action from occurring. Perhaps there's a hole in the logic or workflow to prevent this from occurring (i.e prevent approve api call on existing accounts)?

@tommckennon tommckennon added the question Further information is requested label Feb 16, 2021
@tbock
Copy link
Collaborator Author

tbock commented Feb 16, 2021

There is a hole in the logic. The "approve" for existing accounts is certainly a misnomer but it they are being "approved" in the context of the application.

@tbock tbock removed the question Further information is requested label Feb 16, 2021
tommckennon added a commit that referenced this issue Feb 19, 2021
… workflow in order to track down a bug occurring when users attempt to approve multiple accounts that are a mix of new and existing accounts (#76).
@tommckennon
Copy link
Contributor

tommckennon commented Feb 19, 2021

@tbock, the committed backend unit tests added to tests.py that we discussed for the request account approval workflow looks to have have tracked down the bug occurring when users attempt to approve multiple accounts that are a mix of new and existing accounts (#76). If such a request is made, it will always "Error creating and updating accounts". The following simple change looks to resolve the issue. Beyond this unit testing, do we want to verify against our own Portal as this time?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants