-
Notifications
You must be signed in to change notification settings - Fork 3
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
Async response overrides the original 202 #3
Comments
Do we capture the primary route details with the rest of the routes in the transactions object. I think we do. If so maybe what we could do is leave the |
Actually I'm not certain we do: https://github.com/jembi/openhim-core-js/blob/master/test/unit/messageStoreTest.coffee#L154-L172. It's looks like Hmmm, also what if the async mediator is being called from a non-primary route? Maybe we could have the async mediator add a route to the transaction when it finishes... |
Yeah I think it makes sense to add the primary response to |
Yeah, I was thinking about the case where an async mediator is called from a non-primary route. |
See discussion in PR #2
During async processing, the mediator will respond to core with a status of 202 (Accepted) and then later update the transaction with the final response via the API. However this update overrides the original 202 route with the final response.
Should we think of a way to keep the 202 response, and somehow add the final response, perhaps to another route?
cc @rcrichton @armageddon @bausmeier
The text was updated successfully, but these errors were encountered: