-
Notifications
You must be signed in to change notification settings - Fork 61
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
Original claims bug fixes #4104
Conversation
…n error with add_response failed.
Do they appear in results from |
Co-Authored-By: Johnny Holton <johnny@oddball.io>
Co-Authored-By: Johnny Holton <johnny@oddball.io>
Co-Authored-By: Johnny Holton <johnny@oddball.io>
@jholton So the whole test case was strange. The proxy add would be called from the SiP call that starts of the form, we verified that MVI received the request and created the ids, but the ITF call to vets-api immediately following SiP would fail due to the user not having the proper authorization (ie. missing the id's). We'd restart the form and then everything would go off without a hitch. The ids had been generated in the profile successfully at that point. I did a bunch of investigating around why it could be that way but I honestly couldnt find a good reason... On paper, the entire process looked perfect since it all was happening sequentially. Redis isnt async so the changes to destroy the cache should have propagated immediately forcing vets-api to make another call to MVI immediately. In the end, I figured that maybe MVI isnt reflecting its own changes immediately and that may be the issue (though its kind of a stretch). Either way, making these changes are good as it removes an extra find profile call we'll be forcing the api to make. |
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.
LGTM
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.
Excellent, thanks for this work! 🎉
Description of change
Add extra gating to ITF controller that verifies the user has a valid
birls_id
. This is to account for an extreme, but possible, edge case.Fix multiple instances of broken raising
ValidationErrors
. These errors were expecting a specific object but the instances in questions did not contain what is required... so it was throwing a 500 error instead. These have been replaced with more genericUnprocessableEntity
errors that are more flexible.The add person call in
in_progress_form_controller
will now raise an error if the add_person call responds with anything butok
.The
clear_cache
logic has been removed due to a possible race condition when calling in_progress_form and, subsequently, the itf controller. It was verified that the proxy add was being made successfully but the user object did not reflect this change. Its hard to debug the exact reason but a potential issue is that the subsequent call tofind_profile
did not contain the new ids. Therefore, the call in the mvi model has been changed to, instead, assign the new ids to the profile directly and recache the profile afterwards. As a bonus, this will avoid making, yet, another call to MVI.Testing
spec tests
Will be tested in staging with staging user accounts missing the ids
Acceptance Criteria (Definition of Done)
Unique to this PR
Applies to all PRs