-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Handle partial nodes success (#55)
* add comment explaining FEDERATION_NODES format * implement custom HTTP response for partial success federated query - use custom HTTP success status code - return both node-specific errors and combined successful query results in response body - log node errors and query federation successfulness to console * test API path response for partial success federated query * mock individual node request to assert over combined query response * add new response model returning errors and node query results * do not use exception object for partial success responses * update response returned when all nodes succeed or fail * handle network errors in federated query * test federated response given unreachable nodes, create fixture for single matching dataset result * test response when queries to all nodes either fail or succeed * turn status of node responses into enum * use model for node error in federated query response * switch to sending requests to nodes asynchronously * update mocked get function in tests to be async * make code a bit cleaner Co-authored-by: Sebastian Urchs <[email protected]> * rename fixture for mocked data --------- Co-authored-by: Sebastian Urchs <[email protected]>
- Loading branch information
Showing
5 changed files
with
315 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.