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

[FIX] Fixed the condition for when federation API's nodes_response_status is fail #126

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

rmanaem
Copy link
Contributor

@rmanaem rmanaem commented Apr 12, 2024

Checklist

This section is for the PR reviewer

  • PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see our Contributing Guidelines 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.

rmanaem added 3 commits April 12, 2024 12:44
- changed `failure` to `fail`
- changed `failure` to `fail`
@rmanaem rmanaem added the pr-bug-fix Bug fix, will increment patch version when merged (0.0.+1) label Apr 12, 2024
Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for neurobagel-query ready!

Name Link
🔨 Latest commit d014167
🔍 Latest deploy log https://app.netlify.com/sites/neurobagel-query/deploys/661d514c13c7d40008425879
😎 Deploy Preview https://deploy-preview-126--neurobagel-query.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@surchs
Copy link
Contributor

surchs commented Apr 12, 2024

Thanks @rmanaem , this addressed the issue and looks good. I think we don't have to add a specific regression test here because of I had used the correct response body in the mocks the tests would have already failed, right?

If they would not have failed, then let's add a test to check that the error is handled correctly.

Otherwise 🧑‍🍳

@rmanaem rmanaem added the release Create a release when this PR is merged label Apr 15, 2024
@rmanaem
Copy link
Contributor Author

rmanaem commented Apr 15, 2024

this addressed the issue and looks good. I think we don't have to add a specific regression test here because of I had used the correct response body in the mocks the tests would have already failed, right?

Correct.

@rmanaem rmanaem merged commit 8f3ed6e into main Apr 15, 2024
9 checks passed
@rmanaem rmanaem deleted the bug-125 branch April 15, 2024 16:13
@surchs
Copy link
Contributor

surchs commented Apr 15, 2024

🚀 PR was released in v0.2.1 🚀

@surchs surchs added the released This issue/pull request has been released. label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bug-fix Bug fix, will increment patch version when merged (0.0.+1) release Create a release when this PR is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the condition for fail case nodes_response_status from federation API
2 participants