Skip to content

Conversation

@eos87
Copy link
Contributor

@eos87 eos87 commented Oct 31, 2025

Purpose

To fix the reindex command in newsroom given that it was not working for async services/resources.

What has changed

  • Fixed the elastic_reindex command to support async resources/services (agenda).
  • Added unit tests for elastic_reindex_handler covering invalid resources and data preservation during reindexing.
  • Minor cleanup in test_utils.py for readability.

How to test

  • Checkout this branch/PR
  • Run python manage.py elastic_reindex --resource agenda (should also work for items and history)

Resolves: STT-1412

- Fixed the `elastic_reindex` command to support async resources/services (agenda).
- Added unit tests for `elastic_reindex_handler` covering invalid resources and data preservation during reindexing.
- Minor cleanup in `test_utils.py` for readability.

STT-1412
@eos87 eos87 requested a review from MarkLark86 October 31, 2025 11:08
@eos87 eos87 added this to the v3.1 milestone Oct 31, 2025
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