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

[Unticketed] Fix issue where opportunities aren't loaded to search index #3567

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

chouinar
Copy link
Collaborator

@chouinar chouinar commented Jan 17, 2025

Summary

Time to review: 1 mins

Changes proposed

Tell processor to allow the record even if attachments are missing

Context for reviewers

https://www.elastic.co/guide/en/elasticsearch/reference/current/foreach-processor.html

ignore_missing is defaulted to False. This means if the record has no attachments, it just drops it and moves on. This fix makes it not drop it, and just allow it.

Additional information

Set ENABLE_OPPORTUNITY_ATTACHMENT_PIPELINE=false in the local.env

Run make db-seed-local and make populate-search-opportunities, without this fix, nothing ends up in the search index.

@chouinar chouinar requested a review from babebe January 17, 2025 18:07
@chouinar chouinar requested a review from mdragon as a code owner January 17, 2025 18:07
babebe
babebe previously approved these changes Jan 17, 2025
Copy link
Collaborator

@babebe babebe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@acouch acouch left a comment

Choose a reason for hiding this comment

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

Can confirm this fixes the search server error locally.

@chouinar chouinar merged commit abd1111 into main Jan 17, 2025
2 checks passed
@chouinar chouinar deleted the chouinar/fix-pipeline-issue branch January 17, 2025 18:23
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