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

SIMPLYE-395: Rewrite reservation history fetch logic #5

Merged
merged 1 commit into from
May 8, 2024

Conversation

ttuovinen
Copy link
Contributor

@ttuovinen ttuovinen commented May 8, 2024

Reservation history endpoint had a logical mishap and results in larger data amounts are broken.

History fetch logic rewritten to do the individual work reservation event count in OpenSearch with aggregation and fetch work info from work index in separate call. Pagination is removed.

NOTE: New environmental variable OPENSEARCH_WORK_INDEX

Context: https://jira.lingsoft.fi/browse/SIMPLYE-395

@ttuovinen ttuovinen marked this pull request as ready for review May 8, 2024 06:11
@ttuovinen ttuovinen merged commit 28e66b6 into main May 8, 2024
6 checks passed
@ttuovinen ttuovinen deleted the rewrite-reservation-history-fetch branch May 8, 2024 07:31
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