Skip to content

Create shared sfeos helpers module #376

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

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open

Create shared sfeos helpers module #376

wants to merge 30 commits into from

Conversation

jonhealy1
Copy link
Collaborator

@jonhealy1 jonhealy1 commented May 14, 2025

Related Issue(s):

Description:

  • This pr moves shared elasticsearch/ opensearch logic out of core and into the sfeos_helpers module.
  • Other code duplicated in es/ os database_logic files has been moved into the sfeos_helpers module as well.
  • The readme has been updated/ reorganized and a table of contents has been added.

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

@jonhealy1 jonhealy1 marked this pull request as ready for review May 20, 2025 16:15
@jonhealy1
Copy link
Collaborator Author

jonhealy1 commented May 20, 2025

This will be a difficult pr to review maybe?

  1. The core module should be database-agnostic, so code that relied on es/ os was moved to the best of my ability. I moved the aggregations code to sfeos_helpers but maybe some should have stayed?
  2. Code that was shared between both backends was also moved to sfeos_helpers. More code could potentially be moved?
  3. The readme was refactored and I hope that all of the information was retained correctly and that the bullet point format improves readability.

@jonhealy1
Copy link
Collaborator Author

50 files changed so yes, difficult to review :)

@jamesfisher-geo
Copy link
Collaborator

This is a great change. Maintaining the duplicate code was getting cumbersome. I'll dig into this PR over the weekend 👍

@jonhealy1
Copy link
Collaborator Author

jonhealy1 commented May 23, 2025

Still a lot of duplicate code, but it's a start hopefully that will help improve maintenance and also keep the core module database agnostic.

@jonhealy1
Copy link
Collaborator Author

Sharing too much code could be troublesome in the future as well as the two projects diverge more from each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants