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 to return OK/200 and an empty result set when no data found #752

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

pooja1pathak
Copy link
Collaborator

Proposed changes

Removed 404 NOT FOUND in when no data found for query and returned 200 OK with empty set. Fix for issue #720 .

Types of changes

What types of changes does your code introduce to the project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Maintenance (update of libraries or other dependences)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have run all the existing tests locally (not just those related to my feature) and there are no errors
  • After the last push to the PR branch, I have run the lint script locally and there are no changes to the code base
  • I have updated the RELEASE NOTES
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

CLA Assistant Lite bot All contributors have signed the CLA ✍️

@c0c0n3 c0c0n3 self-requested a review January 3, 2024 15:02
Copy link
Member

@c0c0n3 c0c0n3 left a comment

Choose a reason for hiding this comment

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

excellent work @pooja1pathak, thanks so much for this!

@c0c0n3
Copy link
Member

c0c0n3 commented Jan 3, 2024

@pooja1pathak I've approved your PR but it looks like CircleCI isn't running our tests. Did you run the whole test suite locally? Did it pass?

@pooja1pathak
Copy link
Collaborator Author

pooja1pathak commented Jan 4, 2024

@c0c0n3 Yes I've checked and it passed. I have also checked on circle CI, only test_others is showing fail which is not related to my changes. Please find below detail of failing tests:
image

src/geocoding/tests/test_geocoding.py ......F.F...F. [ 93%]

@c0c0n3
Copy link
Member

c0c0n3 commented Jan 4, 2024

@pooja1pathak thanks that's great. I think the problem w/ CircleCI is on our side---not quite sure why, but it might be related to the fact we're merging a branch from your fork since the build seems to work fine if the branch is in the main repo.

re: failing tests, those geocoding tests were failing even before your PR. So I'm merging your PR. Thank you so much for this contrib!!

@c0c0n3 c0c0n3 merged commit bf64034 into orchestracities:master Jan 4, 2024
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants