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

Elastic search index not updated when reporter is anonymized #1478

Merged

Conversation

4c0n
Copy link
Contributor

@4c0n 4c0n commented Nov 20, 2024

Description

Currently the elastic search index is not updated when a reporter is anonymized. This PR aims to resolve that problem by sending a Django signal and handling it in a receiver that triggers a celery task to re-index the signal in the elastic search index.

Checklist

  • Keep the PR, and the amount of commits to a minimum
  • The commit messages are meaningful and descriptive
  • The change/fix is well documented, particularly in hard-to-understand areas of the code / unit tests
  • Are there any breaking changes in the code, if so are they discussed and did the team agreed to these changes
  • Check that the branch is based on main and is up to date with main
  • Check that the PR targets main
  • There are no merge conflicts and no conflicting Django migrations

How has this been tested?

  • Provided unit tests that will prove the change/fix works as intended
  • Tested the change/fix locally and all unit tests still pass
  • Code coverage is at least 85% (the higher the better)
  • No iSort, Flake8 and SPDX issues are present in the code

4c0n added 3 commits November 20, 2024 15:28
…l in receiver by kicking off celery task to re-index the signal in elastic search
@4c0n 4c0n merged commit 06e0479 into main Nov 22, 2024
3 checks passed
@4c0n 4c0n deleted the bug/elastic-search-index-not-updated-when-reporter-is-anonymized branch November 22, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants