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

[ENH] Support partial term fetching failures #65

Merged
merged 17 commits into from
Feb 6, 2024

Conversation

alyssadai
Copy link
Contributor

@alyssadai alyssadai commented Jan 31, 2024

Changes proposed in this pull request:

  • Add new response model for combined attribute response from all nodes
  • Refactor out building of combined response into its own function
  • Gracefully handle any errors from requested nodes
  • Switch to async process for sending out individual node requests for terms

Checklist

  • PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see https://neurobagel.org/contributing/pull_requests for more info)
  • PR has a label for the release changelog or skip-release (to be applied by maintainers only)
  • PR links to GitHub issue with mention Closes #XXXX
  • Tests pass
  • Checks pass

For new features:

  • Tests have been added

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

@alyssadai alyssadai changed the title Support partial term fetching failures [ENH] Support partial term fetching failures Jan 31, 2024
@alyssadai alyssadai added the pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0) label Jan 31, 2024
@coveralls
Copy link
Collaborator

coveralls commented Jan 31, 2024

Pull Request Test Coverage Report for Build 7789382108

  • 0 of 111 (100.0%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 99.692%

Totals Coverage Status
Change from base Build 7746116036: 0.4%
Covered Lines: 647
Relevant Lines: 649

💛 - Coveralls

@alyssadai alyssadai marked this pull request as ready for review January 31, 2024 04:01
@surchs surchs self-requested a review January 31, 2024 21:59
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice @alyssadai 🎉, thank you for dealing with this! I left a couple of comments / suggestions. Let me know what you think

app/api/crud.py Outdated Show resolved Hide resolved
app/api/crud.py Show resolved Hide resolved
app/api/crud.py Outdated Show resolved Hide resolved
app/api/crud.py Outdated Show resolved Hide resolved
app/api/crud.py Show resolved Hide resolved
tests/test_attributes.py Show resolved Hide resolved
tests/test_attributes.py Outdated Show resolved Hide resolved
tests/test_attributes.py Outdated Show resolved Hide resolved
tests/test_attributes.py Outdated Show resolved Hide resolved
tests/test_attributes.py Outdated Show resolved Hide resolved
@alyssadai alyssadai requested a review from surchs February 5, 2024 18:50
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice! thanks @alyssadai 🎉

🧑‍🍳

@alyssadai alyssadai merged commit b33c34c into main Feb 6, 2024
5 checks passed
@alyssadai alyssadai deleted the support-partial-term-fetching-failures branch February 6, 2024 00:35
@surchs
Copy link
Contributor

surchs commented Apr 11, 2024

🚀 PR was released in v0.1.0 🚀

@surchs surchs added the released This issue/pull request has been released. label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-minor-breaking Feature or enhancement that breaks compatibility, will increment minor version (0.+1.0) released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle failed requests for available controlled terms gracefully
3 participants