• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neurobagel / federation-api / 7522229148
97%

Build:
DEFAULT BRANCH: main
Ran 14 Jan 2024 10:59PM UTC
Jobs 1
Files 15
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jan 2024 10:59PM UTC coverage: 99.314% (+0.6%) from 98.731%
7522229148

push

github

web-flow
[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 <surchs@users.noreply.github.com>

* rename fixture for mocked data

---------

Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>

579 of 583 relevant lines covered (99.31%)

1.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7522229148.1 14 Jan 2024 10:59PM UTC 0
95.92
GitHub Action Run
Source Files on build 7522229148
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7522229148
  • 3e76fd0e on github
  • Prev Build on main (#7266039620)
  • Next Build on main (#7559272692)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc