-
Notifications
You must be signed in to change notification settings - Fork 18
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
Create Common opensearch/ elasticsearch core package #186
Conversation
Looks great. After #187 is merged, the only backend-specific code will be in the |
I think I have moved everything around properly. I am not a git expert so I didn't know the easiest or best way to do this. Have a look. I think the main thing we need to do is update the update_collection method in opensearch/database_logic.py. I haven't updated the Makefile yet either .... |
If you want we can merge your branch into main before we merge this. Up to you. Another thing to think about too is how the tests are duplicated right now. Maybe we want a separate package for the tests? |
Merged those changes into the add-opensearch branch. I included a couple changes to the makefile to run tests on one or both backends |
Cool, I think #188 is ready go. I will let you take a look and commit to main. Right now they are both passing the same set of tests. All the ES/OS calls are wrapped in the database_logic methods, so it seems to work fine for both. |
@jamesfisher-gis Hi. I think this is ready for review now. |
@gadomski @philvarner Adding you guys if you have time to review or even share your thoughts. |
This is actually a really long pr but the vast majority of it is only moving code around. |
Sounds good. Will review tomorrow eve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jonhealy1 this looks great.
Related Issue(s):
Description:
Create a common opensearch/ elasticsearch core package. Create separate stac-fastapi.opensearch and stac-fastapi.elasticsearch packages.
PR Checklist:
pre-commit run --all-files
)make test
)