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

Aggregation Bugfix and Documentation Update #314

Merged
merged 3 commits into from
Nov 30, 2024
Merged

Conversation

jamesfisher-geo
Copy link
Collaborator

@jamesfisher-geo jamesfisher-geo commented Nov 24, 2024

Related Issue(s):

Description:

Includes a bugfix for Elasticsearch aggregation, the indices() function was only checking if the input was None. But in POST requests the input is an empty list ({}). So that was leading to some aggregations to search through all indices in an Elasticsearch cluster, not just the items indices.

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

@jamesfisher-geo
Copy link
Collaborator Author

Hey @jonhealy1

This should fix the issue you raised in #290. Thanks for that.

I still have no idea why that was only an intermittent issue with the test, but this should fix that.

I also moved the aggregation text from the core readme to the docs. Is this a good place for it? Felt like the aggregation text was making the core readme too long 😅

@jonhealy1
Copy link
Collaborator

Nice fix. Moving the documentation definitely works. I was also thinking before about having a table of contents at the top of the readme.

@StijnCaerts
Copy link
Collaborator

Looks good, thanks for the fix!

@jonhealy1 jonhealy1 merged commit 5ab4c4b into main Nov 30, 2024
15 checks passed
@jonhealy1 jonhealy1 deleted the aggregation_bugfix branch November 30, 2024 03:13
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