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

Implement indexing events to Elasticsearch using IndexedRecord #7875

Closed
rikukissa opened this issue Oct 30, 2024 · 0 comments · Fixed by #8087
Closed

Implement indexing events to Elasticsearch using IndexedRecord #7875

rikukissa opened this issue Oct 30, 2024 · 0 comments · Fixed by #8087
Assignees

Comments

@rikukissa
Copy link
Member

rikukissa commented Oct 30, 2024

Description

Implement a indexing function for event. All events should always have only one Elasticsearch entry, so id should always be unique in the index.

It is important to implement one pure function with a signature of

function eventToEventIndex(event: Event, eventConfig: EventConfig): EventIndex

As this function will be later on used to implement a full reindex. For this purpose, it's useful to write the side-effectful write function as function indexEvents(events: EventIndex[]) from the start

@rikukissa rikukissa self-assigned this Nov 26, 2024
@rikukissa rikukissa moved this from Backlog to In Code Review in OpenCRVS Core Nov 26, 2024
@rikukissa rikukissa linked a pull request Nov 26, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Code Review to Completed in OpenCRVS Core Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant