Skip to content

Conversation

@gpaoloni
Copy link
Collaborator

@gpaoloni gpaoloni commented Jan 5, 2026

Description

This PR fixes a noisy bug that we keep seeing in Datadog. The error occurs because 404s when attempting to delete a document raise an error. This PR gracefully handles such scenario by silently discarding said error.

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags / configuration added

Verification steps

AFTER YOU MERGE

  1. Cut a release tag using the GitHub workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

@gpaoloni gpaoloni changed the title chore: improve error handling around ES deletes chore: improve error handling around ES deletes [CHI-3516] Jan 5, 2026
@gpaoloni gpaoloni requested a review from stephenhand January 6, 2026 20:14
@gpaoloni gpaoloni marked this pull request as ready for review January 6, 2026 20:14
id: documentId.toString(),
});

if (isErr(result)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add some debug logging here?

@gpaoloni gpaoloni merged commit b1c3b24 into master Jan 7, 2026
16 checks passed
@gpaoloni gpaoloni deleted the gian_CHI-3516 branch January 7, 2026 19:01
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