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

Clear entries from the search index if they are not in db anymore #2003

Closed
nihal467 opened this issue Mar 21, 2024 · 9 comments
Closed

Clear entries from the search index if they are not in db anymore #2003

nihal467 opened this issue Mar 21, 2024 · 9 comments

Comments

@nihal467
Copy link
Member

Describe the bug

we are having multiple dolo in the medicine of the patient consultation

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

image

@rithviknishad
Copy link
Member

We only have one record in the DB however

image

Unable to reproduce it in develop. Reproducible only in staging

image

@rithviknishad
Copy link
Member

cc: @sainak

@rithviknishad rithviknishad changed the title multiple dolo in the medibase medibase medicines duplicated twice in staging Mar 22, 2024
@rithviknishad
Copy link
Member

rithviknishad commented Mar 22, 2024

All medicines were duplicated twice in staging

image

@sainak
Copy link
Member

sainak commented Mar 22, 2024

Ressolved, the medicines from the old db were still present causing the duplication

@sainak sainak transferred this issue from ohcnetwork/care_fe Mar 22, 2024
@sainak sainak changed the title medibase medicines duplicated twice in staging Clear entries from the search index if they are not in db anymore Mar 22, 2024
@ab1123
Copy link

ab1123 commented Mar 30, 2024

I would like to work on this issue!!!!

@ab1123
Copy link

ab1123 commented Mar 31, 2024

@rithviknishad I guess this issue is resolved for the Satging application too as I am unable to reproduce it. Can you please check??
image

@nihal467
Copy link
Member Author

it is resolved

@github-project-automation github-project-automation bot moved this from Up Next to Done in Care Mar 31, 2024
@rithviknishad
Copy link
Member

rithviknishad commented Apr 1, 2024

@nihal467 Although the initial issue has been fixed by recreating the search index, the reason for the occurrence of this issue has not been fixed yet.

To reproduce:

  • Load search index from one db
  • Load search index from another db (this DB would have different external ID's, and hence would cause duplicates in the search index)

@rithviknishad
Copy link
Member

@ab1123 unassigning as should be solved by #1941

cc: @sainak

@vigneshhari vigneshhari closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2025
@github-project-automation github-project-automation bot moved this from Up Next to Done in Care Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants