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

refactor aggregate in database_logic #294

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

StijnCaerts
Copy link
Collaborator

@StijnCaerts StijnCaerts commented Sep 2, 2024

Related Issue(s):
N/A

Description:
Refactor aggregate() in database logic to allow extending the supported set of aggregations. The mapping of aggregation name to Elasticsearch/OpenSearch functionality was in the aggregate() function, which made it difficult to alter the set of supported aggregations. I moved the mapping to a property of the database logic, so it can be modified when the database logic is instantiated.

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

Copy link
Collaborator

@jamesfisher-geo jamesfisher-geo left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks @StijnCaerts

CHANGELOG.md Show resolved Hide resolved
@jonhealy1 jonhealy1 self-requested a review September 5, 2024 09:19
@jonhealy1 jonhealy1 merged commit c25229e into stac-utils:main Sep 5, 2024
15 checks passed
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.

3 participants