Skip to content

Comments

chore: Create reindex cases admin endpoint [CHI-2759]#656

Merged
gpaoloni merged 8 commits intoCHI-2702-reindex-contactsfrom
gian_CHI-2759
Jun 10, 2024
Merged

chore: Create reindex cases admin endpoint [CHI-2759]#656
gpaoloni merged 8 commits intoCHI-2702-reindex-contactsfrom
gian_CHI-2759

Conversation

@gpaoloni
Copy link
Collaborator

@gpaoloni gpaoloni commented Jun 6, 2024

Description

Analogous to #651, this PR introduces an admin endpoint, admin-url.../cases/reindex that will trigger a reindex of the cases for the specified accountSid, which are within the range of dateFrom and dateTo.
This endpoint is also exposed via the admin-cli script introduced in #652.

Checklist

Verification steps

  • Make sure this PR is deployed to HRM development.
  • Connect to the devops instance.
  • From within it, run
    $ npm run admin-cli reindex hrm -- -a=ACd8a2e89748318adf6ddff7df6948deaf -e=development -r=us-east-1 -f=2024-01-01 -t=2024-03-01 --ca
  • Once above finishes:
    • Check the hrm logs in couldwatc and confirm the publishToSearchIndex debug logs are visible (use "filter pattern" feature here).
    • Go to ES cloud console and confirm that the cases are properly indexed.

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

Base automatically changed from CHI-2760-reindex-script to CHI-2702-reindex-contacts June 7, 2024 16:35
@gpaoloni gpaoloni requested a review from stephenhand June 7, 2024 16:42
@gpaoloni gpaoloni marked this pull request as ready for review June 7, 2024 16:42
@gpaoloni gpaoloni requested a review from mythilytm June 7, 2024 20:10
Copy link
Contributor

@mythilytm mythilytm left a comment

Choose a reason for hiding this comment

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

LGTM

@gpaoloni gpaoloni merged commit a88c913 into CHI-2702-reindex-contacts Jun 10, 2024
@gpaoloni gpaoloni deleted the gian_CHI-2759 branch June 10, 2024 18:43
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